Ticket #10367: trac_10367_docfix.patch

File trac_10367_docfix.patch, 1.5 KB (added by benjaminfjones, 3 years ago)

fix documentation error in Spherical and Cylindrical

  • sage/plot/plot3d/plot3d.py

    # 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  
    397397        sage: T.transform(radius=r, azimuth=theta, inclination=phi) 
    398398        (r*sin(phi)*cos(theta), r*sin(phi)*sin(theta), r*cos(phi)) 
    399399     
    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 
    402402    azimuth and the inclination (in that order):: 
    403403 
    404404        sage: plot3d(phi * theta, (theta, 0, pi), (phi, 0, 1), transformation=T) 
     
    530530        sage: T.transform(radius=r, azimuth=theta, height=z) 
    531531        (r*cos(theta), r*sin(theta), z) 
    532532 
    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 
    535535    radius and the azimuth (in that order):: 
    536536 
    537537        sage: plot3d(9-r^2, (r, 0, 3), (theta, 0, pi), transformation=T)