cartesian to polar equations

I am trying to convert equations from cartesian to polar and spherical expecting Maple to change the variables from x,y and z to r, theta, etc. I presume I am using the wrong commands.

convert(exp(sqrt(x^2+y^2)),polar)

returns the same expression in x and y. What is the correct command?

thanks

acer's picture

changecoords

Do you mean like this?

> changecoords(x^2+y^2,[x,y],polar):
> lprint(%);
x^2*cos(y)^2+x^2*sin(y)^2

> changecoords(x*y*z,[x,y,z],spherical,[r,theta,phi]):
> lprint(%);
r^3*sin(phi)^2*cos(theta)*sin(theta)*cos(phi)

acer

cartesian to polar equations

changecoords(exp(sqrt(x^2 + y^2)), [x,y], polar, [r,theta]);

simplify(%) assuming r>0;

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}