﻿30/05/2013 04:56:08 p.m. [->] solve({((-150*1/4+Ta*sin(70*Pi/180)*2/5+Ta*cos(70*Pi/180)*3/20)=0)},Ta)
30/05/2013 04:56:08 p.m. [->] c:\Temp\tmp5D65.tmp:
interface(quiet=true);
with(linalg):with(inttrans):with(plots):
writeto("c:\\Temp\\tmp5D66.tmp"):
smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: 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 := \
solve((((-150*1/4+Ta*sin(70*Pi/180)*2/5+Ta*cos(70*Pi/180)*3/20)=0)),Ta\
):
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:

30/05/2013 04:56:08 p.m. [<-] c:\Temp\tmp5D66.tmp:
750/(8*sin(7/18*Pi)+3*cos(7/18*Pi))
30/05/2013 04:56:08 p.m. [<-] 750/(8*sin(7/18*π)+3*cos(7/18*π))

30/05/2013 04:56:08 p.m. [->] solve({(((750/(8*sin({((7*Pi)/18)})+3*cos({((7*Pi)/18)}))*sin(70*Pi/180)+(750/(8*sin({((7*Pi)/18)})+3*cos({((7*Pi)/18)}))*cos(70*Pi/180))/cos(theta)*sin(theta))-150)=0)},theta)
30/05/2013 04:56:08 p.m. [->] c:\Temp\tmp5F99.tmp:
interface(quiet=true);
with(linalg):with(inttrans):with(plots):
writeto("c:\\Temp\\tmp5F9A.tmp"):
smath_line := proc() local i: for i from 1 to nargs - 2 do args[i]; od: 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 := \
solve(((((750/(8*sin((((7*Pi)/18)))+3*cos((((7*Pi)/18))))*sin(70*Pi/18\
0)+(750/(8*sin((((7*Pi)/18)))+3*cos((((7*Pi)/18))))*cos(70*Pi/180))/co\
s(theta)*sin(theta))-150)=0)),theta):
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:

30/05/2013 04:56:08 p.m. [<-] c:\Temp\tmp5F9A.tmp:
arctan(3/5*(sin(7/18*Pi)+cos(7/18*Pi))/cos(7/18*Pi))
30/05/2013 04:56:08 p.m. [<-] arctan(3/5*(sin(7/18*π)+cos(7/18*π))/cos(7/18*π))

