<< mathieu_cart2ell Mathieu mathieu_ell2cart >>

Mathieu >> Mathieu > mathieu_cart2pol

mathieu_cart2pol

Transform from Cartesian to polar (cylindrical) coordinates.

Calling Sequence

[theta, rho [, z]] = mathieu_cart2pol(x, y [, z])

Parameters

x

Cartesian x.

y

Cartesian y.

z

(optional) Cartesian z.

theta

polar angle.

rho

polar radius.

z

(optional) polar height.

Description

Transform from Cartesian coordinates to polar (or cylindrical) using the following formulas:

;

;

Examples

// draw a unit square
[th, r]=mathieu_cart2pol([1 -1 -1 1 1]/2,[1 1 -1 -1 1]/2);
polarplot(th, r, strf='131', style=2); xgrid;
xtitle('From Cartesian to polar coordinates (unit square)', 'x', 'y');

See Also

Authors

R.Coisson and G. Vernizzi, Parma University

X. K. Yang

2011 - DIGITEO - Michael Baudin

N. O. Strelkov, NRU MPEI


Report an issue
<< mathieu_cart2ell Mathieu mathieu_ell2cart >>