HP Forums
HP Prime Bug: CAS Polar Form Complex Number Copy-Paste - 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: HP Prime Bug: CAS Polar Form Complex Number Copy-Paste (/thread-20912.html)



HP Prime Bug: CAS Polar Form Complex Number Copy-Paste - NullGeodesic - 11-27-2023 04:00 PM

In the latest HP Prime firmware (20230413) there is a serious bug that leads to wrong results when copy-pasting calculations involving polar form complex numbers in the CAS view.

The bug can easily be reproduced as follows:

First, a calculation involving polar form complex numbers is input into the entry line in CAS mode:
[attachment=12952]

Next, "Enter" is pressed to successfully display the input and result of the operation. So far, so good:
[attachment=12953]

However, if the previous input is copied and pasted from the history, a wrong result with missing brackets is returned to the entry line. This pasted result does not contain the proper brackets around the polar form complex numbers, making the arguments and magnitudes ill-defined:
[attachment=12954]

As expected, trying to run this pasted command leads to a syntax error:
[attachment=12955]

This bug appears to affect all CAS calculations that include complex numbers entered in polar form. Sometimes it is still possible to run the pasted commands, but in such cases the command result is still wrong because the previously entered brackets are missing, which leads to different arguments and magnitudes due to a different order of operations.

I would greatly appreciate it if this bug was resolved in the next firmware update as I frequently use complex numbers in complex form. Unfortunately I was not able to find an official bug tracker for the HP Prime, so please send me the link if such a tracker exists.


RE: HP Prime Bug: CAS Polar Form Complex Number Copy-Paste - komame - 12-03-2023 10:22 PM

Indeed, this is a bug. At first glance, it may look similar to [copy bug].
However, upon closer analysis, it appears to be an entirely different case.
I'll report it.

Thanks.


RE: HP Prime Bug: CAS Polar Form Complex Number Copy-Paste - amv2002 - 12-04-2023 08:35 AM

Just found this bug out today and it was driving me crazy doing my EE homework. Thanks for reporting.