Previous Up Next

19.4.2  Computing the area under a curve

The area command approximates the area under a graph.

Examples

area(x^2,x=0..1,8,trapezoid)
     
0.3359375           
area(x^2,x=0..1,8,rombergm)
     
0.333333333333           
area(x^2,x=0..1,3,gauss15)
     
0.333333333333           
area(x^2,x=0..1)
     
1
3
          

Previous Up Next