changecoords
change expression in cartesian coordinates to a new coordinate system
Calling Sequence
Parameters
Description
Examples
changecoords(expr, vars, coord, new_vars)
expr
-
expression
vars
list of 2 or 3 variables
coord
name; new coordinate system
new_vars
(optional) list of 2 or 3 variables
The changecoords(expr, vars, coord, new_vars) calling sequence changes the expression expr in cartesian coordinates vars to an expression in the new coordinate system coord. The new expression is written in terms of the original variables. An optional fourth argument new_vars can be used to specify the set of variables for the new coordinate system.
The argument coord must be from the set of accepted coordinate types.
In three dimensions:
bipolarcylindrical
bispherical
cardioidal
cardioidcylindrical
casscylindrical
confocalellip
confocalparab
conical
cylindrical
ellcylindrical
ellipsoidal
hypercylindrical
invcasscylindrical
invellcylindrical
invoblspheroidal
invprospheroidal
logcoshcylindrical
logcylindrical
maxwellcylindrical
oblatespheroidal
paraboloidal
paraboloidal2
paracylindrical
prolatespheroidal
rosecylindrical
sixsphere
spherical
spherical_math
spherical_physics
tangentcylindrical
tangentsphere
toroidal
In two dimensions:
bipolar
cardioid
cassinian
elliptic
hyperbolic
invcassinian
invelliptic
logarithmic
logcosh
maxwell
parabolic
polar
rose
tangent
The conversions from the coordinate systems to cartesian coordinates are listed in the help page for coords.
There are two widely used conventions for how to represent spherical coordinates. When you use the coordinate system name spherical, Maple uses one of those conventions depending on whether you are using the Physics (and VectorCalculus) package or not. You can specify which definition is used by providing either the coordinate system name spherical_math or spherical_physics. For more information, see coords.
New coordinate systems can be introduced by using the addcoords routine. Once introduced, they are recognized by the changecoords command.
See also the plots[changecoords] command. Note that issuing with(plots) rebinds the name changecoords, so :-changecoords must be used to run this command.
changecoords⁡x2+y2,x,y,polar
x2⁢cos⁡y2+x2⁢sin⁡y2
changecoords⁡x2+y2,x,y,polar,r,θ
r2⁢cos⁡θ2+r2⁢sin⁡θ2
changecoords⁡x−y,x,y,logarithmic
ln⁡x2+y2−2⁢arctan⁡yxπ
changecoords⁡x⁢y⁢z,x,y,z,bipolarcylindrical
sinh⁡y⁢sin⁡x⁢zcosh⁡y−cos⁡x2
changecoords⁡x⁢y+x⁢z−y,x,y,z,tangentcylindrical,u,v,w
u3⁢w+u⁢v2⁢w−u2⁢v−v3+u⁢vu2+v22
changecoords⁡x⁢y⁢z,x,y,z,spherical,r,θ,φ
r3⁢cos⁡θ⁢sin⁡φ2⁢sin⁡θ⁢cos⁡φ
See Also
addcoords
coords
plots[changecoords]
Download Help Document