(PC-12xx~14xx) qthsh Tanh-Sinh quadrature
|
04-08-2021, 01:29 AM
Post: #35
|
|||
|
|||
RE: (PC-12xx~14xx) qthsh Tanh-Sinh quadrature
(04-07-2021 07:31 PM)emece67 Wrote: 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. Well, this is wrong I'm afraid. I ran a comparison of the original WP34S code written in C and the optimized WP34S code written in C. I only made the small change to replace: Code: double ch = cosh(t); Code: ex = eh = exp(h); The optimized code evaluates the same number of functions for all 818 integrals. There is no difference. Secondly, the absolute error of the results to the exact result is actually smaller for every integral with the optimized version! I will be happy to share the spreadsheet but you can run the experiment with the zip file I shared earlier by making the changes to the wp34s.sh code as shown above. - Rob "I count on old friends to remain rational" |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 7 Guest(s)