HP-35s Cos[x] and Tan[x] bugs resolved?



#4

I just got the HP-35s and checked for the Cos(x) and Tan(x) bugs,
For Cos[90deg] the 35s gives 0.0174524064373 (0.017452406437284)
and
for Cos[89.99999] I get 1.7453292 E-7 (1.7453292519943 E-7)

Is it possible that HP removed those bugs?


#5

First of all, cos 90° should return zero, and so does the 35s. On the other hand, cos 89° gives 0,0174524064373, the value you posted. And cos 89,99999° returns 1,7453292 E-7 both on your machine as well as on my early 35s bought in 2007.

So I do not think that anything has changed - the results of my early and your current 35s agree. The "bug" you mentioned refers to the loss of accuracy with arguments close to 90 degrees. In this case, the second result carries merely eight significant digits (out of twelve) with the last one truncated, not rounded:

 cos 89,9999       1,74532925 E-6
cos 89,99999 1,7453292 E-7
cos 89,999999 1,745329 E-8
cos 89,9999999 1,74532 E-9
cos 89,99999999 1,74532925199 E-10 ...back again ;-)
Dieter
#6

I just found some notes re. the 35s tangent bug. According to an earlier examination, the loss of accuracy occurs at results in the order of 10-3 to 10-9. These values have only 11 ... 6 valid digits, the last of which usually is truncated or 1 unit low.

Example:

tan 0,2°      = 3,490 6726 8160 E-3  (rounded up from ..81596)
35s result: 3,490 6726 8159 E-3 (truncated to ...8159)
Valid digits = 15 - 3 = 12 digits -1 ULP
 
tan 0,01° = 1,745 3292 6972 E-4
35s result: 1,745 3292 6964 E-4
Valid digits = 15 - 4 = 11 digits -1 ULP
 
tan 0,001° = 1,745 3292 5217 E-5
35s result: 1,745 3292 5117 E-5
Valid digits = 15 - 5 = 10 digits -1 ULP
 
tan 0,00001° = 1,745 3292 5199 E-7
35s result: 1,745 3292 0000 E-7
Valid digits = 15 - 7 = 8 digits -1 ULP
 
tan 1 E-7° = 1,745 3292 5199 E-9
35s result: 1,745 3200 0000 E-9
Valid digits = 15 - 9 = 6 digits -1 ULP
 
tan 1 E-9° = 1,745 3292 5199 E-11
35s result: 1,745 3292 5199 E-11 ' we left the danger zone ;-)
Dieter


Edited: 31 Oct 2013, 1:26 p.m.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Digging for bugs Stefan Dröge (Germany) 2 1,571 11-13-2013, 04:39 PM
Last Post: Stefan Dröge (Germany)
  [HP-Prime] Simple Game (Bugs) CompSystems 1 1,445 11-01-2013, 10:18 AM
Last Post: Han
  RPN bugs both present in Prime Calc and emulator Eelco Rouw 9 2,827 10-16-2013, 12:22 PM
Last Post: Eelco Rouw
  [HP-Prime] AND, OR BUGs? CompSystems 0 947 10-04-2013, 04:03 PM
Last Post: CompSystems
  HP 50g: question about bugs Miguel Toro 2 1,467 09-26-2013, 01:27 PM
Last Post: Miguel Toro
  [HP-Prime xcas] operations with complex numbers + BUGs + Request CompSystems 9 3,538 09-08-2013, 10:40 PM
Last Post: CompSystems
  [HP_Prime] definition of functions, APPLY command and BUGs CompSystems 1 1,342 09-05-2013, 03:59 PM
Last Post: CompSystems
  [HP-Prime xCAS] Review Polynomial Tools + BUGs + Request CompSystems 0 989 09-05-2013, 12:53 PM
Last Post: CompSystems
  HP-Prime: Solution to ambiguity with [ ... ] & another BUGs CompSystems 12 3,796 08-28-2013, 08:48 AM
Last Post: CompSystems
  [HP Prime CAS] Solve Commands (Bugs and Request) CompSystems 10 3,973 08-08-2013, 12:34 PM
Last Post: Gilles Carpentier

Forum Jump: