(PC-12xx~14xx) qthsh Tanh-Sinh quadrature
|
04-07-2021, 12:15 PM
(This post was last modified: 04-07-2021 02:25 PM by robve.)
Post: #31
|
|||
|
|||
RE: (PC-12xx~14xx) qthsh Tanh-Sinh quadrature
(04-06-2021 06:26 PM)emece67 Wrote: OK, I see now. I've changed it to: There is also this part: Code: while True: We can try a little harder to avoid computation of too many functions. Strength reduction is also applicable to the WP34S code to remove an exp() and then a sqrt() from the inner loop: Code: ex = eh = exp(t) Another sqrt() can be removed from the inner loop by reusing exp(pi2sh) to replace cosh(pi2sh) and to get tanh(pi2sh) almost for free: Code: ch = (ex+1/ex)/2 # cosh(t) - Rob Edit: corrected code in the last block, typo made when translating from C "I count on old friends" -- HP 71B,Prime|Ti VOY200,Nspire CXII CAS|Casio fx-CG50...|Sharp PC-G850,E500,2500,1500,14xx,13xx,12xx... |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)