(PC-12xx~14xx) qthsh Tanh-Sinh quadrature
|
04-18-2021, 12:56 PM
(This post was last modified: 04-19-2021 07:01 PM by robve.)
Post: #65
|
|||
|
|||
RE: (PC-12xx~14xx) qthsh Tanh-Sinh quadrature
(04-17-2021 11:45 PM)Albert Chan Wrote: With sign checking method, both will suggest optimal d ~ 700. Edit: I've updated the document with an improved version of the predictor (shown below) and an explanation how it works. The following update sets d=1/700 for this case, so d is now either increased or decreased towards an optimum: Code: else if (isfinite(a)) { This is a rough predictor that could be further improved. But this predictor is already reasonably effective to increase or decrease d in order to reduce the number of points evaluated by Exp-Sinh. The predictor evaluates points too, but quits when an optimal d is found. There are ways to reduce this overhead, e.g. taking larger steps for d and perhaps followed by a second refinement step to adjust d. With the simple predictor I've tested 208 integrals on [a,+inf) in the zip file with eps=1e-9: 29 are improved with 61 fewer points on average to integrate each of those. - Rob "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: 2 Guest(s)