# HP Forums

Full Version: Bug in converting complex numbers?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

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?

Attached a picture

Thank
I have tested this behaviour a little bit more.
It looks like there is a serious bug in the Prime.

If i extract the RE part within the CAS it gives me the correct value of 50.
If i extract the exact same thing withing the Calculator it gives me -95.

If i approx the value within the CAS, also the CAS fails to convert correctly!

Take a look at the pictures.
I do not have a Prime, however, this sems to be a problem misrepresenting input is in degree or radian and further result representation.

Do you have to set independently degree and radian for each calculator mode (HOME/CAS)?

If you check manually, you will see that second result is correct if numbers are expected in radian: sin(60)=-0,3048106211 and so on.
(07-03-2018 08:59 AM)sasa Wrote: [ -> ]Do you have to set independently degree and radian for both calculator modes (HOME/CAS)?

If you check manually, you will see that second result is correct if numbers are expected in radian: sin(rad(60))=-0,3048106211 and so on.

Ok interessting.
I have set the CAS and calculator to Degrees.
You can see this also on the top right corner where you see the green Dregree symbol.
I have also swithed to radians without success.

But you are right. If i enter radians, the answer is correct.