HP Forums
Vectors in polar coordinates - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Vectors in polar coordinates (/thread-5152.html)



Vectors in polar coordinates - retoa - 11-18-2015 09:32 AM

Hello !

Is there a way to work with vectors in polar coordinates (respectively spherical or cylindrical for 3D) like you do with complex numbers?

In 2D you can write the vectors as polar complex numbers for sums, but you can not do dot multiplication between complex numbers, nor cross multiplication as you need a third dimension.

With my 48sx I could do it, is it possible on the prime too, or do I have to convert all vectors in rectangular and then reconvert the result in polar after calculation?


RE: Vectors in polar coordinates - Tim Wessman - 11-18-2015 03:38 PM

It is not currently possible at this time to work that way...

Yeah, I'm not happy about it either and really hope to be able to resolve it at some point before too much longer.

Right now though you can work directly in 2D using complex numbers. For example, turn on the complex (x,y) form in page 1 of the home settings. Now type (x,y) just like you did with the 48sx. Pressing the angle key will toggle the selected history item to rectangular/polar. You can also enter directly by doing (d,<angle>num). Note that whether a complex item is in rectangular or polar is *part* of the complex number itself. So they stay in that form instead of all switching back and forth based on a display setting.


RE: Vectors in polar coordinates - retoa - 11-19-2015 08:35 AM

Yes, I already use this solution when I only have to do vector addition (same problem on the 35s by the way) but this is the only thing you can do.
You can not do "dot" nor "cross" product, this does not exist for complex numbers.
Matrix multiplication (e.g. with a rotation matrix) will also not give the same result with complex numbers as with vectors (obviously).