HP Forums
possible BUG when simplifying expressions with units - 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: possible BUG when simplifying expressions with units (/thread-22702.html)



possible BUG when simplifying expressions with units - compsystems - 11-14-2024 05:32 PM

Hello

There is a possible BUG when simplifying expressions with units

74_deg + 42_mn*(1_deg/60_mn) + 15_s *(1_deg/3600_s); [Enter] 74.7041666667_deg

but

60_min/1_deg = 1_deg/1_deg [Enter] (60_(mn*deg^-1)) = (1_(deg*deg^-1))
expected 60_mn/1_°= 1

https://www.wolframalpha.com/input?i=60+min%2F1+deg+%3D+1+deg%2F1+deg


RE: possible BUG when simplifying expressions with units - compsystems - 11-18-2024 03:12 PM

a similar case

(60_mn = 1_deg)/(1_deg) [Enter] (60_(mn*deg^-1)) = (1_(deg*deg^-1))

simplify(60_(mn*deg^-1) =1_(deg*deg^-1)) [Enter] (60_(mn/deg)) = (1_1)


RE: possible BUG when simplifying expressions with units - parisse - 11-18-2024 05:05 PM

_mn is a time unit.
_deg is not a real unit (angle unit do not have a physical dimension), it's just 2*pi/360.
You can check that with mksa(...)


RE: possible BUG when simplifying expressions with units - JMB - 12-21-2024 03:49 PM

In HOME the units for angular dimensions are:
  • Degree: _deg
  • Minute: _arcmin
  • Second: _arcs
USIMPLIFY(60_arcmin/1_deg) gives the correct answer: 1