Hello,

Does Maxima (or indeed any software) allow one to

convert from say, this:

x = cos(theta) * r

y = sin(theta) * r

...to this:

r = sqrt(x*x + y*y)

theta = atan2(y,x)

In other words, it will automatically extract the variables

(theta and r), and then have only those to the left of the equals sign.

Here's another more complicated example:

FROM:

r = sqrt (x*x + y*y + z*z )

theta = atan2(sqrt(x*x + y*y),z )

phi = atan2(y,x)

...TO:

x = r * sin(theta)*cos(phi);

y = r * sin(theta)*sin(phi);

z = r * cos(theta)

Once again, the variables x, y and z are extracted from the

first simultaneous equation.

I tried this:

solve(,)

However, it returns just "". If I replace, x and y with actual numbers, it

seems to work okay, but I need the answer expressed with the variable names

intact.

The final thing I need would be for this to work through the

CLI, because I use a programming language, so would like to

feed a text file to the program, and for the program to output

a text file with the solution/s.