Numerical integration: Difference between revisions
m
→{{header|[MATLAB]}} / {{header|Octave}}: Fix bad header markup. Not the place for tutorials
m (I have added the link which can guide more to the readers about what Matlab Tutorials) |
Thundergnat (talk | contribs) m (→{{header|[MATLAB]}} / {{header|Octave}}: Fix bad header markup. Not the place for tutorials) |
||
Line 3,569:
{18000003., 18000009., 18000006., 18000000., 18000000.}}</pre>
=={{header|
For all of the examples given, the function that is passed to the method as parameter f is a function handle.
Line 3,612:
end</lang>
Simpson's rule for numerical integration is already included in
<lang MATLAB>integral = quad(f,a,b,tol)</lang>
|