-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ka Wa Yip edited this page Jul 3, 2017
·
6 revisions
A List of mathematical integrators: Romberg integrator, Composite trapezoid rule, Composite midpoint rule, Composite Three-point Gaussian, Composite Simpson 1/3 rule
github: kwyip
Code: romberg.m
It produces a matrix r of size (n+1,n+1). The entry of r(n+1,n+1) contains accurate solution.
Code: compositetrapezoid.m
Code: compositemidpoint.m
Code: composite3pointgaussian.m
Code: compositesimpson13.m
Code: exampletesting32intervals.m
Output:
A colored plot of the function that needs to be integrated: