Post Reply 
Coordinate Conversions: Rectangular, Cylindrical, Spherical
03-23-2016, 11:13 PM
Post: #5
RE: Coordinate Conversions: Rectangular, Cylindrical, Spherical
I notice that in the section below "ρ*COS(θ)];" should theta be replaced with 'phi'.
I tried X=8, Y=6, Z=4 it returns 10.77, 68.2, 36.87. Working it in reverse = 8, 6, 8.62.
That's 8.62 instead of 4.

IF ch==6 THEN
INPUT({ρ,θ,φ});
RETURN [ρ*COS(θ)*SIN(φ),ρ*SIN(θ)*SIN(φ),
ρ*COS(θ)];
END;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Coordinate Conversions: Rectangular, Cylindrical, Spherical - BERNARD MICHAUD - 03-23-2016 11:13 PM



User(s) browsing this thread: 1 Guest(s)