abs binomial complex cos cosh d degree erf exp factorial float gamma int integral log parfrac polar poly polyroot power radian rational sgn sin sinh sum trig trigh x!Check the list above for all known types of conversions for more possibilities. Conversions to more advanced mathematical functions are shown below.
Convert can be used to convert numbers between bases. See the help pages convert/decimal, convert/base, convert/binary, convert/octal, and convert/hex for more information and examples. > convert sin(x) to exp 0.5*i*e^((-i)*x)+(-0.5*i)*e^(i*x) (1) Convert between degrees and radians. See the help pages convert/degrees and convert/radians for more information. > convert(pi,degrees) 180degrees (2) Convert to rational expressions or floating-point numbers. See the help pages convert/float and convert/rational for more information. > convert(1.23456,rational) 38583125 (3) > convert(18,float) 0.125 (4) Convert between units. See the help page convert/units for more information. Also, see the Units package. > convert(22,units,inches,m) 13972500 (5) Convert a rational expression to partial fraction form. See the help page convert/parfrac for more information. > f:=(x^3+x)/(x^2-1) f:=(x^3+x)/(x^2-1) (11) > convert(f,parfrac) x+1/(x-1)+1/(x+1) (12) Convert a series to a polynomial by dropping the order term. See the help page convert/poly for more information. > s:=series(f,x,4) s:=-x-2x^3+O(x^5) (13) > convert(s,poly) -2x^3-x (14) Convert a complex expression to polar coordinates. See the help page convert/polar for more information. > convert(12+2i,polar) polar(1/2*sqrt(2),1/4 pi) (15) Convert an expression to trigonometric or exponential form, if possible. See the help pages convert/exp and convert/trig for more information. > g:=sinh(x)+sin(x) g:=sinh(x)+sin(x) (16) > convert(g,exp) 1/2e^x-1/2e^(-x)-1/2I(e^(I*x)-e^(-I*x)) (17) > convert gamma(x) to x! (-1+x)!