Numerical integration vs. integrals that are zero
|
03-06-2019, 05:27 PM
Post: #11
|
|||
|
|||
RE: Numerical integration vs. integrals that are zero
(03-06-2019 02:19 PM)Thomas Klemm Wrote: Cf. About the Algorithm Noticed a typo, transformed integral involve 2 substitutions, not 1: x = (b-a)/2 * v + (b+a)/2, to transform integration range from [a,b] to [-1,1] v = 3u/2 - u³/2, nonlinear transformed, integration range from [-1,1] to (-1, 1) PHP Code: def nonlinear(f, a, b): With nonlinear defined, integrate(f, a, b) = integrate(nonlinear(f, a, b), -1, 1) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)