Showing results for 
Search instead for 
Did you mean: 
New member
4 2 0 1
Message 1 of 4
Flag Post

Wrong conversion of complex number

HP Recommended
HP Prime


I have tried to convert a complex number in the style of 100*exp(60 Deg)
Usually they should be converted to something like:

100*(cos(60)+i*sin(60)) = 50+86.6*i

But the Prime converts the expression 100*exp(60 Deg) to -95.24 - 30.48*i
This is a strange behaviour to me.

Do i have to enter the complex number in an other way?
Or is this a software bug?


XCAS is also failing the same way

Attached a picture


Hopefully someone can help


Thank Bug1.jpgBug2.jpgBug3.jpgxcas.jpg

0 Kudos
New member
4 2 0 1
Message 2 of 4
Flag Post
HP Recommended

Ok, problem got solved quickly.


The angle must be in rad instead of degrees.

I have selected degrees in the settings but this doesnt seem to make a difference.

0 Kudos
Level 6
Level 6
252 251 42 77
Message 3 of 4
Flag Post
HP Recommended



The degree/rad/grad only affects trigonometric operations.


Complex exponentials are not affected by them.



I am an HP Employee
0 Kudos
Level 8
628 615 119 211
Message 4 of 4
Flag Post
HP Recommended

exp(60_deg) would be the way to raise e to the 60-degrees power, but that generates an error because it doesn't make any sense.


If what you're trying to do is convert the vector "100 units at 60 degrees" from polar notation to rectangular notation, just set degree mode and type 100 [angle] 60 Enter, then press the [angle] key again, and you'll see the result shown below. (The angle symbol is keyed by pressing Shift multiply).




Converting from rectangular to polar can also be done the same way.


Disclaimer: I don't work for HP, but HP calculators work for me.


† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation