Post Reply 
Coordinate Conversions: Rectangular, Cylindrical, Spherical
10-03-2016, 11:51 PM
Post: #7
RE: Coordinate Conversions: Rectangular, Cylindrical, Spherical
Sorry Eddie if I misled you. What I mean is this. You have the first section below, but should be the second section. ρ*COS(θ)]; should be ρ*COS(φ)];

First section
IF ch==6 THEN
INPUT({ρ,θ,φ});
RETURN [ρ*COS(θ)*SIN(φ),ρ*SIN(θ)*SIN(φ),
ρ*COS(θ)]; error
END;

Second section
IF ch==6 THEN
INPUT({ρ,θ,φ});
RETURN [ρ*COS(θ)*SIN(φ),ρ*SIN(θ)*SIN(φ),
ρ*COS(φ)]; correct
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 - 10-03-2016 11:51 PM



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