Post Reply 
The tanh-sinh quadrature
03-08-2017, 09:19 AM
Post: #18
RE: The tanh-sinh quadrature
(03-08-2017 02:42 AM)Paul Dale Wrote:  This method looks interesting but I'm not convinced it should be part of the standard 34S firmware.

I originally used a Gauss-Kronrod quadrature in the 34S. As with all quadrature methods, it didn't always work and it wasn't adaptive but it was pretty fast. Enough people pointed out specific failure cases and wanted Romberg that I changed the method over. Rapidly oscillating functions and some exponential were bad from memory.

Still, publish the code please,

- Pauli

In fact this is an adaptive quadrature. The number of abscissas is doubled on each iteration and the method stops when the computed integral changes by less than the needed precision. The difference with the previous Gauss-Kronrod method on the wp34s is, I think, that here the abscissas and weights are computed on the fly, so you are not constrained to a given number of precomputed samples.

In any case, my implementation of this method for the wp34s does stop the algorithm when the needed precision has been reached or after a number of functions evaluations has been reached. Relaxing this criteria will give better results for such problematic functions. I'll test it.

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


Messages In This Thread
The tanh-sinh quadrature - emece67 - 01-31-2017, 03:19 PM
RE: The tanh-sinh quadrature - emece67 - 01-31-2017, 10:03 PM
RE: The tanh-sinh quadrature - Namir - 02-01-2017, 04:13 PM
RE: The tanh-sinh quadrature - Namir - 02-05-2017, 02:23 AM
RE: The tanh-sinh quadrature - emece67 - 02-05-2017, 09:25 AM
RE: The tanh-sinh quadrature - Namir - 02-05-2017, 01:35 PM
RE: The tanh-sinh quadrature - Pekis - 02-05-2017, 05:25 PM
RE: The tanh-sinh quadrature - Namir - 02-07-2017, 09:26 PM
RE: The tanh-sinh quadrature - emece67 - 02-07-2017, 10:59 PM
RE: The tanh-sinh quadrature - Namir - 02-07-2017, 11:18 PM
RE: The tanh-sinh quadrature - Namir - 02-07-2017, 11:48 PM
RE: The tanh-sinh quadrature - emece67 - 02-08-2017, 02:59 PM
RE: The tanh-sinh quadrature - Namir - 02-08-2017, 03:20 PM
RE: The tanh-sinh quadrature - Namir - 02-08-2017, 10:25 PM
RE: The tanh-sinh quadrature - Namir - 02-08-2017, 02:19 PM
RE: The tanh-sinh quadrature - emece67 - 03-08-2017, 01:52 AM
RE: The tanh-sinh quadrature - Paul Dale - 03-08-2017, 02:42 AM
RE: The tanh-sinh quadrature - emece67 - 03-08-2017 09:19 AM
RE: The tanh-sinh quadrature - emece67 - 03-09-2017, 11:30 AM
RE: The tanh-sinh quadrature - emece67 - 03-08-2017, 06:18 PM
RE: The tanh-sinh quadrature - Paul Dale - 03-09-2017, 02:32 AM



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