Adaptive Simpson and Romberg integration methods
|
03-24-2021, 11:51 PM
(This post was last modified: 03-25-2021 01:28 AM by robve.)
Post: #4
|
|||
|
|||
RE: Adaptive Simpson and Romberg integration methods
(03-24-2021 10:19 PM)Albert Chan Wrote: FYI, you can avoid infinity by doing atan(1/x) = sign(x)*pi/2 - atan(x) Quote right. Point taken. But not everyone will see or understand your smart change. I picked this example a bit arbitrarily to show that there are cases when the integral may be not be evaluable at an endpoint when in fact it is if no floating point exception is raised. If an exception is raised, then there are two options: either rewrite the integrand (if possible) or use quadratures that are applicable to open intervals. - 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: 1 Guest(s)