HP 35s trigonometric functions alternative « Next Oldest | Next Newest »

 ▼ Lyuka Member Posts: 169 Threads: 12 Joined: Aug 2007 08-30-2007, 09:11 AM To all who might be interested, here is another trigonometric program specially for the HP 35s. Quote: The HP 35s's built-in trigonometric functions seems to lose its accuracy around }ƒÎ/2, }ƒÎ/4, }ƒÎ3/2 and so on. In some case its accuracy goes down to seven digits or less which is not acceptable as the scientific calculator that features internal 15 digits precision. Anyway as it was necessary, I wrote the alternative trigonometric functions for the HP 35s. [Aug. 30, 2007] Best regards, Lyuka ▼ Ed Look Posting Freak Posts: 801 Threads: 36 Joined: Nov 2005 08-30-2007, 12:22 PM Impressive! I applaud and appreciate your mathematical and coding passion. Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 08-30-2007, 03:28 PM Congratulations! Alternative trigonometric functions for the HP-35s are always welcome. Hopefully at least until the next ROM revision :-) Saving the stack and the LastX register is nice. It's a pity the 35s is not as fast as the 33s. I'd like to know what your other references are, since you've used a different approach. Best regards, Gerson. ▼ Lyuka Member Posts: 169 Threads: 12 Joined: Aug 2007 08-31-2007, 04:41 AM Thanks. I really want the bug-fixed version of the HP 35s. By the way, I have no other reference since it is a kind of my original. Taylor series, the continued fraction, Chebyshev approximation, and Pade approximation itself are all well known mathematical method. However, I thought a method that optimise only the coefficients of the parts which have smaller computational error sensitivity, based on rational Chebyshev approximation. 'pi' in my program is coded as builtin PI (3.14159265359) - 2.06761537357E-13 this yields 25 digits pi approximation 3.141592653589793238462643. Regards, Lyuka ▼ Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 08-31-2007, 12:18 PM Quote: 'pi' in my program is coded as builtin PI (3.14159265359) - 2.06761537357E-13 this yields 25 digits pi approximation 3.141592653589793238462643. Oops! I ought to have paid attention to the constant in line J078. Thanks again for the very original contribution! Gerson. Gerson W. Barbosa Posting Freak Posts: 2,761 Threads: 100 Joined: Jul 2005 08-30-2007, 10:01 PM Both your program and the built-in sine function give the same answer for ```sin(3.1415926535) -> 8.97932384626E-11 ``` This means pi does not have to be hard-coded to 24 digits for this result to be possible, contrary to what I thought: The 2-second running time is very good. Too bad on the 35s at least THREE keystrokes are required before programs start running... Regards, Gerson.

 Possibly Related Threads... Thread Author Replies Views Last Post [Download] PrimeComm: Alternative small utility to upload/download programs to the HP Prime Erwin Ried 6 1,596 11-17-2013, 10:18 AM Last Post: Erwin Ried HP Prime - CAS functions in Spreadsheet App CR Haeger 6 1,541 11-11-2013, 12:37 AM Last Post: Michael de Estrada [41CL] New Extra Functions version Monte Dalrymple 0 732 11-08-2013, 04:32 PM Last Post: Monte Dalrymple HP Prime: in need of help with defining functions Alberto Candel 14 2,717 10-27-2013, 10:48 AM Last Post: Alberto Candel HP Prime spreadsheet functions SanS 0 1,341 10-04-2013, 04:23 AM Last Post: SanS Stats functions on the HP34S Nicholas van Stigt 5 1,385 09-24-2013, 02:45 AM Last Post: Nick_S Trig Functions Howard Owen 11 2,404 09-16-2013, 02:53 PM Last Post: Fred Lusk 50g piecewise functions Kurt Fankhauser 6 1,630 09-15-2013, 08:01 PM Last Post: Kurt Fankhauser Computer-scientist functions on HP Prime? Michael O. Tjebben 12 2,332 08-22-2013, 06:59 PM Last Post: plivesey Missing functions on the HP Prime!!!??? :-( Namir 6 1,546 08-22-2013, 08:40 AM Last Post: Gilles Carpentier

Forum Jump: