• Support PF! Buy your school textbooks, materials and every day products Here!

Going from Spherical coordinates to Cartesian

  • Thread starter the7joker7
  • Start date
113
0
1. Homework Statement

Convert the point `(rho,theta,phi) = (6, (5pi)/4, pi/2)` to Cartesian coordinates. Give answers as positive values, either as expressions, or decimals to one decimal place.

3. The Attempt at a Solution

{x}=r*sintheta*cosphi
{y}=r*sintheta*sinphi
{z}=r*costheta

So

x = 6*sin(5pi/4)*cos(pi/2)
y = 6*sin(5pi/4)*sin(pi/2)
z = 6*cos(5pi/4)

x = 0
y = -4.242640687 (+2pi)
z = -4.242640687 (+2pi)

What did I do wrong?
 

Answers and Replies

Dick
Science Advisor
Homework Helper
26,258
618
Don't know. It looks reasonable so far. But you should be warned that mathematicians and physicists use different convention for the meaning of the angles in spherical coordinates. Are you sure you got the coordinate change from the same source as the problem? But I'm not sure what the (+2pi) is supposed to mean.
 
113
0
Because my answer is negative, don't I add 2pi to get the correct positive answer, as is the law of angles in this format?

FTR, here's the right answer.

`[(-4.24264068712,-4.24264068712,3.67381906147E-16)]`
 
Dick
Science Advisor
Homework Helper
26,258
618
Because my answer is negative, don't I add 2pi to get the correct positive answer, as is the law of angles in this format?

FTR, here's the right answer.

`[(-4.24264068712,-4.24264068712,3.67381906147E-16)]`
Your answer is {x,y,z}. Those aren't angles. You can't add anything to them. Where did you get that 'answer'? I'm guessing because of the E-16 from some kind a 'calculator device'. Are you sure that is using the same conventions as the problem source?
 
113
0
Yeah, it's an online homework system. WAMAP.
 
Dick
Science Advisor
Homework Helper
26,258
618
Oh, great. I don't know what WAMAP means either. But from the -4.24264068712 and E-16 which should in any reasonable universe be written as '0', you weren't completely off.
 
HallsofIvy
Science Advisor
Homework Helper
41,734
893
Is this an engineering class or a mathematics class?

The reason I ask is that engineers swap "[itex]\theta[/itex]" and "[itex]\phi[/itex]" from what mathematicians use. Is [itex]\phi[/itex] the "co-latitude" and [itex]\theta[/itex] the "longitude" or vice-versa?
 

Related Threads for: Going from Spherical coordinates to Cartesian

Replies
1
Views
848
Replies
6
Views
3K
  • Last Post
Replies
3
Views
668
Replies
1
Views
2K
Replies
3
Views
10K
Replies
8
Views
946
Replies
6
Views
5K
Top