• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
HP Recommended

I'm trying to find a way to quickly put complex numbers in the stack, either in a (x,y) format, this being an abbreviation for X+Yi, or a (x,<y) format, this being an absolute and argument format.

 

So far I've managed to create a custom menu with the functions  R->C, RECT, and CYLIN

R->C lets meput my first two numbers in the stack in (x,y) form, which is lovely, and with RECT and CYLIN I can quickly switch between how it's displayed on screen, so I can see either real+imaginary or abs+argument

 

But I haven't been able to find a way to input a complex number in argument form like I do the other way. That is, I want to put my first to numbers x and y of the stack into a single number (x,<y).

 

If I want to do that I have to open brackets, place x, then a comma, then the angle (alpha rshift 6) and then y.

 

Is there a function that'll do this?

3 REPLIES 3
HP Recommended

"If I want to do that I have to open brackets, place x, then a comma, then the angle (alpha rshift 6) and then y."

 

Hi there is no need of comma (in RPL)

open brackets, place x, then then the angle (alpha rshift 6) and then y. 

 

"Is there a function that'll do this?"

No for what I know. You can easily create a   program for this with 2 argument in input  (abs and argument) and then calculate the real and imaginary part and display this with CYLIN :

 

«  DUP2 COS * UNROT SIN * R->C CYLIN »

 

in degree :

 

100 20 MyPgm

you get : (100, \</ 20)              \>/ is the angle symbol

 

 

HP Recommended

Hello,

The function you seek is  ->V2 (to 2 dimentional vector).  It's located in the "VECTR" tab of the "MTH" menu.  It will return the contents of stack levels 1 and 2 as the augument and absolute value, respectively, of a polar complex number.  Note that the calcualtor must be in POLAR mode for this to work.  While in POLAR mode, you can also put your rectangular coordinates in the stack and use R>C, and the resultant complex number will display in polar form.  

One last thing...be sure flag 19 is checked, so the calc treats a 2d vector as a complex number.

Best regards, Hal  

HP Recommended

hi, can be very instructive to read  Complex Numbers Marathon --> http://www.hpcalc.org/details.php?id=5114

 

best regards

Simone

Archived This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.