MathsLearner
New member
- Joined
- Aug 13, 2017
- Messages
- 27
I need to convert from rectangular to spherical coordinates (3,−1,23). The formulae are
ρ=(x2+y2+z2)−eq1x=ρsinϕcosθ;−eq2y=ρsinϕsinθ;−eq3z=ρcosϕ;−eq4ρ=(3+1+12)=4;cosϕ=423;ϕ=6πThe confusion is with the θ;. I can have two values using eq 2 and 3,
using eq1
cosθ=ρsinϕx=4sin(6π)3θ=6π;−r1 using eq2
sinθ=ρsinϕy=−4sin(6π)1=−21θ=−6π.
Since θ is negative. The angle is in the anti clockwise direction and lies in the 4th quadrant, the value in terms of clockwise is
2π−6π=611π. It also matches since y is negative.
Does it mean the r1 is wrong?
ρ=(x2+y2+z2)−eq1x=ρsinϕcosθ;−eq2y=ρsinϕsinθ;−eq3z=ρcosϕ;−eq4ρ=(3+1+12)=4;cosϕ=423;ϕ=6πThe confusion is with the θ;. I can have two values using eq 2 and 3,
using eq1
cosθ=ρsinϕx=4sin(6π)3θ=6π;−r1 using eq2
sinθ=ρsinϕy=−4sin(6π)1=−21θ=−6π.
Since θ is negative. The angle is in the anti clockwise direction and lies in the 4th quadrant, the value in terms of clockwise is
2π−6π=611π. It also matches since y is negative.
Does it mean the r1 is wrong?