numworks / epsilon

Modern graphing calculator operating system.
https://www.numworks.com/resources/engineering/software/
1.75k stars 463 forks source link

Incorrect angle for vectors in degree mode #2083

Open artaxxx opened 1 year ago

artaxxx commented 1 year ago

Originally posted by @jrkimber

Hi,

When entering a vector in degree mode, the angle with the positive x axis is given incorrectly. If you enter the vector (2, -3), the calculator correctly calculates the arccos in degrees but then adds 2pi when it should add 360 deg, giving the wrong answer.

screenshot (26) screenshot (27) screenshot (28)

To Reproduce

  1. Go to Calculation app (make sure in degree mode)
  2. Type in the vector [2,-3] and press EXE
  3. Go to ...
  4. scroll down to see angle with positive x-axis.
  5. See that 2pi has been added instead of 360deg.

Expected behavior

The calculator should add 360, not 2pi.

Environment

version 21.2.2

artaxxx commented 1 year ago

Thanks for your bug report! We'll fix the bug in the next update

jrkimber commented 1 year ago

Thanks,

I forgot to say also that in degree mode, the angle does not display correctly on the drawing of the vector.