bugGNU Octave - Bugs: bug #60032, [octave forge] (matgeom)...


bug #60032: [octave forge] (matgeom) sph2cart2d help text shows incorrect input order

Submitted by:  Nicholas Jankowski <nrjank>
Submitted on:  Tue 09 Feb 2021 03:11:58 PM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  None Assigned to:  None
Originator Name:  Nicholas Jankowski Open/Closed:  Open
Release:  other Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 09 Feb 2021 03:11:58 PM UTC, original submission:  

as per https://octave.discourse.group/t/error-in-sph2cart2d-function-help-in-package-matgeom-octave-6-1/724

help for 2ph2cart2d shows the following input order:

SPH2CART2 Convert spherical coordinates to cartesian coordinates.

   C = SPH2CART2(S)
   C = SPH2CART2(THETA, PHI)       (assume rho = 1)
   [X, Y, Z] = SPH2CART2(THETA, PHI, RHO);

   S = [phi theta rho] (spherical coordinate).
   C = [X Y Z]  (cartesian coordinate)

note the input order difference for the single array input S.

Looking at the code, it appears that the single array is handled expecting the same order as the separate inputs. The help also mentions that there was a change made to the input order:

03/11/2006: change convention for angle: uses order [THETA PHI RHO]

I suspect this was just a missed doc change.

cc'd package maintainer

Nicholas Jankowski <nrjank>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by nrjank (Submitted the item)
  • -email is unavailable- added by nrjank

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-09 nrjank Carbon-Copy- => Added ajuanpi+dev@gmail.com

    Back to the top

    Powered by Savane 3.5