Martinez's Octave Assignment
Jump to navigation
Jump to search
Evaluating an Integral
To evaluate an integral you must first define the function y = f(x). Follow the simple steps below.
>function y= f(x) y= sin(x); endfunction ># We are trying to integrate x from 0,2. > [area]=quad("f",0,2) area = 1.4161.