Post Reply 
Acron RPN announces v3.0 BETA
09-07-2017, 10:34 AM
Post: #17
RE: Acron RPN announces v3.0 BETA
I'm with Dieter, pick a better algorithm. For example, a two point Gaussian quadrature is exact for cubic polynomials which includes the x2 example. Romberg is an easy choice and is adaptive. Also interesting are the Gauss–Kronrod quadratures, although they will need to be made adaptive.

As for trapezoidal vs rectangular, it depends how you define the latter. Using the function value at the middle of the rectangles for the height (rather than at the left or right edge) produces an error term twice that of the trapezoidal for one less function evaluation. Using either edge to define the rectangles is worse. Wikipedia illustrates this okay. Computationally, they are about the same (but trapezoidal requires one more function evaluation).


Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Acron RPN announces v3.0 BETA - vanLudwig - 08-27-2017, 05:49 PM
RE: Acron RPN announces v3.0 BETA - Dieter - 09-07-2017, 06:51 AM
RE: Acron RPN announces v3.0 BETA - Dieter - 09-07-2017, 07:59 PM
RE: Acron RPN announces v3.0 BETA - Paul Dale - 09-07-2017 10:34 AM
RE: Acron RPN announces v3.0 BETA - Dieter - 09-07-2017, 06:29 PM
RE: Acron RPN announces v3.0 BETA - Dieter - 06-15-2018, 06:26 PM



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