c3d / db48x

RPL runtime for the DM42 calculator, in the spirit of HP48/49/50
http://48calc.org
GNU Lesser General Public License v3.0
63 stars 9 forks source link

Argument of complex numbers computed in radian, irrespective of angle mode #270

Open c3d opened 11 months ago

c3d commented 11 months ago

Discussed in https://github.com/c3d/DB48X-on-DM42/discussions/174

Originally posted by **camillew** July 23, 2023 Hello, I was trying to use complex numbers, and noticed that the ARG function (as well as the polar rendering) seems to always return a number in radians, irrespective of the angle mode. In the same way, I see that the rendering of the polar mode changes (with the degree, rad, grad, npi suffixes), but the argument does not change. However, the ATAN function seems to respect the angle mode. In any case, than you for this nice project! Camille
c3d commented 11 months ago

@camillew Thanks. Will probably be fixed by https://github.com/c3d/DB48X-on-DM42/commit/1eae092e1d50288b439ebd12d5f8b1e8ae756e49

camillew commented 11 months ago

Yes, this is fixed with this change, thank you!