# HG changeset patch
# User Benjamin Jones <benjaminfjones@gmail.com>
# Date 1291579190 21600
# Node ID eaa3c0e0fba49f8debd729b7536b2b13b42ed8c5
# Parent c0a15f41a85b11cf5aad0860ccd9e8578938d0cf
Trac 10367: fixed documentation error in ``Spherical`` and ``Cylindrical``
diff -r c0a15f41a85b -r eaa3c0e0fba4 sage/plot/plot3d/plot3d.py
|
a
|
b
|
|
| 397 | 397 | sage: T.transform(radius=r, azimuth=theta, inclination=phi) |
| 398 | 398 | (r*sin(phi)*cos(theta), r*sin(phi)*sin(theta), r*cos(phi)) |
| 399 | 399 | |
| 400 | | We can plot with this transform. Remember that the independent |
| 401 | | variable is the radius, and the dependent variables are the |
| | 400 | We can plot with this transform. Remember that the dependent |
| | 401 | variable is the radius, and the independent variables are the |
| 402 | 402 | azimuth and the inclination (in that order):: |
| 403 | 403 | |
| 404 | 404 | sage: plot3d(phi * theta, (theta, 0, pi), (phi, 0, 1), transformation=T) |
| … |
… |
|
| 530 | 530 | sage: T.transform(radius=r, azimuth=theta, height=z) |
| 531 | 531 | (r*cos(theta), r*sin(theta), z) |
| 532 | 532 | |
| 533 | | We can plot with this transform. Remember that the independent |
| 534 | | variable is the height, and the dependent variables are the |
| | 533 | We can plot with this transform. Remember that the dependent |
| | 534 | variable is the height, and the independent variables are the |
| 535 | 535 | radius and the azimuth (in that order):: |
| 536 | 536 | |
| 537 | 537 | sage: plot3d(9-r^2, (r, 0, 3), (theta, 0, pi), transformation=T) |