6/1/2013 3:31:53 PM [->] smath_int(sin(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1CEC.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1CED.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(sin(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1CED.tmp: -1/c*cos(c*x) 6/1/2013 3:31:53 PM [<-] -1/c*cos(c*x) 6/1/2013 3:31:53 PM [->] smath_int(x*cos(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1DC8.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1DC9.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(x*cos(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1DC9.tmp: 1/c^2*(cos(c*x)+c*x*sin(c*x)) 6/1/2013 3:31:53 PM [<-] 1/c^2*(cos(c*x)+c*x*sin(c*x)) 6/1/2013 3:31:53 PM [->] smath_int(x*cos(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1E08.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1E09.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(x*cos(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1E09.tmp: 1/c^2*(cos(c*x)+c*x*sin(c*x)) 6/1/2013 3:31:53 PM [<-] 1/c^2*(cos(c*x)+c*x*sin(c*x)) 6/1/2013 3:31:53 PM [->] smath_int(tan(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1E49.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1E4A.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(tan(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1E4A.tmp: 1/2/c*ln(1+tan(c*x)^2) 6/1/2013 3:31:53 PM [<-] 1/2/c*ln(1+tan(c*x)^2) 6/1/2013 3:31:53 PM [->] smath_int(cot(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1E89.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1E8A.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(cot(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1E8A.tmp: -1/2/c*ln(cot(c*x)^2+1) 6/1/2013 3:31:53 PM [<-] -1/2/c*ln(cot(c*x)^2+1) 6/1/2013 3:31:53 PM [->] smath_int(csc(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1EF8.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1EF9.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(csc(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1EF9.tmp: -1/c*ln(csc(c*x)+cot(c*x)) 6/1/2013 3:31:53 PM [<-] -1/c*ln(csc(c*x)+cot(c*x)) 6/1/2013 3:31:53 PM [->] smath_int(sec(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1F58.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1F59.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(sec(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1F59.tmp: 1/c*ln(sec(c*x)+tan(c*x)) 6/1/2013 3:31:53 PM [<-] 1/c*ln(sec(c*x)+tan(c*x)) 6/1/2013 3:31:53 PM [->] smath_int(sin(c*x)*cos(c*x),x) 6/1/2013 3:31:53 PM [->] C:\Users\omorjan\AppData\Local\Temp\tmp1F89.tmp: interface(quiet=true); with(linalg):with(inttrans):with(plots): writeto("C:\\Users\\omorjan\\AppData\\Local\\Temp\\tmp1F8A.tmp"): smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: end: smath_sum := proc() if nargs = 1 then sum( args[1] ); elif nargs = 2 then sum( args[1], args[2] ); elif nargs = 4 then sum( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_product:= proc() if nargs = 1 then product( args[1] ); elif nargs = 2 then product( args[1], args[2] ); elif nargs = 4 then product( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_int := proc() if nargs = 2 then int( args[1], args[2] ); elif nargs = 4 then int( args[1], args[2] = args[3] .. args[4] ); fi: end: smath_diff := proc() if nargs = 2 then diff( args[1], args[2] ); elif nargs = 3 then diff( args[1], args[2] $ args[3] ); fi: end: smath_sys := proc() { args[i] $ i = 1 .. nargs - 2 }; end: smath_el := proc() args[1][ args[2] ]; end: smath_mat := proc() local i, j, out: out := [ args[j] $ j = 1 .. args[ nargs ] ]: for i from 2 to args[ nargs - 1 ] do out := out, [ args[j] $ j = ( i - 1 ) * args[ nargs ] + 1 .. ( i - 1 ) * args[ nargs ] + args[ nargs ] ]: od: convert( [ out ], array ); end: smath_submatrix := proc() submatrix( args[1], args[2] .. args[3], args[4] .. args[5] ); end: ans := \ smath_int(sin(c*x)*cos(c*x),x): if ( whattype( ans ) = `exprseq` ) then convert( convert( cat( `mat(`, substring( convert( [ans], string ), 2..-2 ), `,`, nops( [ans] ), `,1)` ), string ), symbol ); elif ( whattype( ans ) = `set` ) then convert( convert( cat(`mat(`,substring(convert(map2(op,2,[ans[i]$i=1..nops(ans)]),string),2..-2),`,`,nops(ans),`,1)`), string ), symbol ); elif ( whattype( ans ) = `symbol` ) then convert( convert( eval( ans ), string ), symbol ); elif ( whattype( ans ) = `series` ) then convert( convert( ans, polynom) , symbol ); elif ( whattype( ans ) = `string` ) then convert( ans, symbol ); else convert( convert( ans, string ), symbol ); fi; quit: 6/1/2013 3:31:53 PM [<-] C:\Users\omorjan\AppData\Local\Temp\tmp1F8A.tmp: 1/2*sin(c*x)^2/c 6/1/2013 3:31:53 PM [<-] 1/2*sin(c*x)^2/c