(PC-12xx~14xx) qthsh Tanh-Sinh quadrature
|
04-07-2021, 07:31 PM
(This post was last modified: 04-07-2021 07:32 PM by emece67.)
Post: #34
|
|||
|
|||
RE: (PC-12xx~14xx) qthsh Tanh-Sinh quadrature
Hi,
Just uploaded to GitHub a new version of the Python script. Based on the ideas of Rob about applying strength reduction. The speed increase is about 20%. Precision and TNFE suffered a little bit, though. Variables j and t have vanished, the latter was replaced by expt —being equal to exp(t)— and j is no longer needed. The inner loop only needs an exp() function and no sqrt() (as Rob showed). Surely the wp34s code will also benefit from this (provided someone does it, I'm not inclined now to work on it). Also, fixed a problem on Rob's code that made the sinh-sinh case not to work (r was twice than expected). Thanks & regards. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)