learning how to do Polar Coordinates and add them.
|
05-16-2019, 11:19 PM
Post: #1
|
|||
|
|||
learning how to do Polar Coordinates and add them.
[attachment=7270] I was doing this example in HP27s Manual page 155.
It was quite a task to do it in HP Prime. programmed this in: I used a Matrix to input on the calculator line polar_coordinates(rectangular_coordinates(polar_point(M2))) on the calculator line as a function it worked. Tried to make it a program it did not work: #cas PP_PC():= BEGIN polar_coordinates(rectangular_coordinates(polar_point(M2))) END; #end It gives an answer that is totally wrong does the programmer mode treat Matrix differently and how so? |
|||
05-17-2019, 12:01 AM
Post: #2
|
|||
|
|||
RE: learning how to do Polar Coordinates and add them.
(05-16-2019 11:19 PM)tom234 Wrote: I was doing this example in HP27s Manual page 155. On the Prime in Home you can do: 150∡30+80∡105 and you'll get: 187.381047821∡54.3550581337 I get the same result in CAS but it is displayed as a complex number. Copy the result to the command line and you'll see it in polar coordinates. |
|||
05-17-2019, 12:18 AM
Post: #3
|
|||
|
|||
RE: learning how to do Polar Coordinates and add them.
(05-17-2019 12:01 AM)Didier Lachieze Wrote:(05-16-2019 11:19 PM)tom234 Wrote: I was doing this example in HP27s Manual page 155. Thank you that works. Funny I thought I tried this in CAS and may have been put off by the complex number(know as old timers). However, learned the definitive today regarding this adding of polar/vector/coordinates. Thank you for your help. I had the last point discovering why the Matrix does not work in the program and the error. any Ideas on that programming? |
|||
05-17-2019, 09:53 AM
Post: #4
|
|||
|
|||
RE: learning how to do Polar Coordinates and add them.
If this is your matrix: M2:=[[150,30],[80,105]];
Use the individual row vectors. For example: [HOME] polar_coordinates(rectangular_coordinates(M2(1))+rectangular_coordinates(M2(2))); |
|||
05-17-2019, 03:59 PM
Post: #5
|
|||
|
|||
RE: learning how to do Polar Coordinates and add them.
(05-17-2019 09:53 AM)DrD Wrote: If this is your matrix: M2:=[[150,30],[80,105]]; That runs on the home just fine TY but putting that line in the program has a terminal error. |
|||
05-17-2019, 04:30 PM
(This post was last modified: 05-17-2019 04:43 PM by DrD.)
Post: #6
|
|||
|
|||
RE: learning how to do Polar Coordinates and add them.
I offered that command line approach as general information. An example, (for your CAS program):
[CAS] Code:
You could also run the CAS program from [HOME] ==> Command Line: CAS("PP_PC()") |
|||
05-18-2019, 11:41 AM
Post: #7
|
|||
|
|||
RE: learning how to do Polar Coordinates and add them.
(05-17-2019 04:30 PM)DrD Wrote: I offered that command line approach as general information. An example, (for your CAS program): my original line was used in the Home under both regular and CAS mode it showed kinda spooky entanglement like behaviour when it added the matrix and produce the same result. My only question now is how do I get that function program PP_PC to the same.? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)