The second derivative would be done the same way. Matlab
has its own routines for
10.2 Definite Integrals
method is shown in Fig. 10.2. Notice that this method
should work pretty well over subintervals
If you need to do a definite integral in Matlab, this is
an easy way to do it. And to see
And if you need to find the indefinite integral, in
Chapter 12 there is a piece of code
10.3 Matlab Integrators
Note that these integration routines need function M- les,
as f zero did . These will be
Or you can use an inline function like this to avoid making another le:
And if parabolas are good, why not use cubics , quartics,
etc. to do an even better job?
Matlab also has a command dblquad that does double integrals. Here's how to use it.
Copyright © 2007-2015, algebra-online.com. All rights reserved.