(35S) Accurate Trig Functions Corrected - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (35S) Accurate Trig Functions Corrected (/thread-4258.html) |
(35S) Accurate Trig Functions Corrected - Gerald H - 06-29-2015 03:33 PM All of the copies of Hosoda's improved trig functions I have found err in missing out lines H005 & H006 - I have at last decided to supply the lack. Code:
RE: HP 35S: Accurate Trig Functions Corrected - Marcio - 07-24-2015 02:46 AM Dear Gerald, Have you ever used Hosoda's to solve an equation inside a program? I do hope I am missing something because it seems to me that the 35s's solver enters an infinite loop when I try to solve equations as simple as \(y=sin(p)\). This is the program I am using, assuming \(y=1\): F001 LBL F F002 RCL P F003 XEQ H001; F004 1 F005 - F006 RTN FN = F Solve for P. The 35s, 50g and Prime will get at least 4 digits correct for this specific example, the final digits will vary based on the start guess provided. \(p=89.9999....\) Thanks. Marcio RE: HP 35S: Accurate Trig Functions Corrected - Gerald H - 07-24-2015 05:34 AM This is a question about the Solver, Marcio, so please start a new thread, best place is general forum. RE: HP 35S: Accurate Trig Functions Corrected - Gerald H - 07-24-2015 05:35 AM Here's a link to Hosoda's original article: http://www.finetune.co.jp/~lyuka/technote/trig/tan-hp35s.html RE: HP 35S: Accurate Trig Functions Corrected - Marcio - 07-24-2015 10:07 AM (07-24-2015 05:34 AM)Gerald H Wrote: This is a question about the Solver, Marcio, so please start a new thread, best place is general forum. I suspect Hosoda's gets affected by bug 20: Code: BUG 20: Solve infinite loops for some program based functions. Assign FN=D and SOLVE the following for X. but I have not had the time to check if the workaround will actually work in this case. I will open a new thread as soon as I am back from work. Thanks. RE: HP 35S: Accurate Trig Functions Corrected - lyuka - 08-02-2015 05:04 PM (06-29-2015 03:33 PM)Gerald H Wrote: All of the copies of Hosoda's improved trig functions I have found err in missing out lines H005 & H006 - I have at last decided to supply the lack. Thanks Gerald. I corrected the missing two lines of the code on my websites now. RE: HP 35S: Accurate Trig Functions Corrected - Gerald H - 08-02-2015 05:58 PM Pleased to see the corrected programme. Nice work. |