Post Reply 
(PC-12xx~14xx) qthsh Tanh-Sinh quadrature
04-12-2021, 03:58 PM
Post: #52
RE: (PC-12xx~14xx) qthsh Tanh-Sinh quadrature
(04-12-2021 12:20 PM)Albert Chan Wrote:  To reduce noise, we should quit summing, if we actually hit the finite edge.
So this is the proposed patch:

Code:
      else {                // Exp-Sinh
        x = c + d/r;
        if (x == c) break;  // x hit finite edge
        y = f(x);
        if (isfinite(y)) q += y/w;
      }

And remove the guard x<b for Exp-Sinh and Sinh-Sinh:

Code:
        x = c + d*r;
        y = f(x);
        if (isfinite(y))       // if f(x) is finite, add to local sum
          q += y*w

"I count on old friends to remain rational"
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (PC-12xx~14xx) qthsh Tanh-Sinh quadrature - robve - 04-12-2021 03:58 PM



User(s) browsing this thread: 6 Guest(s)