Mercurial > hg > octave-lyh
comparison scripts/general/cart2sph.m @ 9168:742cf6388a8f
Update section 17.7 (Coordinate Transformations) of arith.txi
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sat, 02 May 2009 07:20:35 -0700 |
parents | eb63fbe60fab |
children | a8ce6bdecce5 |
comparison
equal
deleted
inserted
replaced
9167:1231b1762a9a | 9168:742cf6388a8f |
---|---|
16 ## along with Octave; see the file COPYING. If not, see | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | 17 ## <http://www.gnu.org/licenses/>. |
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {[@var{theta}, @var{phi}, @var{r}] =} cart2sph (@var{x}, @var{y}, @var{z}) | 20 ## @deftypefn {Function File} {[@var{theta}, @var{phi}, @var{r}] =} cart2sph (@var{x}, @var{y}, @var{z}) |
21 ## Transform cartesian to spherical coordinates. | 21 ## Transform Cartesian to spherical coordinates. |
22 ## @var{x}, @var{y} and @var{z} must be of same shape, or scalar. | 22 ## @var{x}, @var{y} and @var{z} must be the same shape, or scalar. |
23 ## @var{theta} describes the angle relative to the x-axis. | 23 ## @var{theta} describes the angle relative to the positive x-axis. |
24 ## @var{phi} is the angle relative to the xy-plane. | 24 ## @var{phi} is the angle relative to the xy-plane. |
25 ## @var{r} is the distance to the origin (0, 0, 0). | 25 ## @var{r} is the distance to the origin (0, 0, 0). |
26 ## @seealso{pol2cart, cart2pol, sph2cart} | 26 ## @seealso{pol2cart, cart2pol, sph2cart} |
27 ## @end deftypefn | 27 ## @end deftypefn |
28 | 28 |