Function: maximaPurpose Execute a function with several arguments in Maxima and retrieve result. Synopsis
Description Use restricted to Maxima functions returning a single symbolic object, otherwise a string is returned instead of a sym-object. Type mhlp name_of_maxima_function for a description of the Maxima function.Note that, when the result is not as expected, the function str2max2sym invoked with option 'vec' might be complementary for understanding the problem. In case of unrecoverable problem invoke the function restartserver in order to re-initialize Maxima. Input arguments
Output argument
See also: str2max2sym, mexec, mhlp, syml.
EXAMPLES
x = maxima('factorsum','a*x*z+a*z+a*w*x+v*x+u*x+a*w+v+u')
p1=sym('-a*b^2-3*b^2+a^2*b+3*a*b+3*b+a^2+a');
p2=sym('-a*b^3-3*b^3-a*b^2+a^3*b+3*a^2*b+a*b+3*b+a^3+a');
maxima('gcd',p1,p2)
p=sym('a^2*b^2-3+a*b*(a-b)*b^6');
maxima('scsimp',p,'a=b')
p=maxima('solve',syml(['a*x+b*y=3','a*x*y = 2']),syml(['x','y']))
p.x
|