[npl] / trunk / NationalProblemLibrary / Union / setIntRiemannSums / riemann-sum-estimate-text.pg Repository:
ViewVC logotype

View of /trunk/NationalProblemLibrary/Union/setIntRiemannSums/riemann-sum-estimate-text.pg

Parent Directory Parent Directory | Revision Log Revision Log


Revision 248 - (download) (annotate)
Thu Jun 1 18:19:46 2006 UTC (7 years ago) by jj
File size: 573 byte(s)
New files.

    1 $offset = 0 unless defined $offset;
    2 $percent = 100*$offset;
    3 if ($offset == 0)  {$points = "left endpoints";}
    4      elsif ($offset == 1)  {$points = "right endpoints";}
    5      elsif ($offset == .5) {$points = "midpoints";}
    6      else  {$points = "points that are $percent $PERCENT of the way from
    7              left to right";}
    8 
    9 $ans=RiemannSum($a,$b,$n,$offset);
   10 
   11 BEGIN_TEXT
   12 Estimate
   13 \( \displaystyle\int_{$a}^{\,$b} $f \,dx\)
   14 using $points for \( n = $n \) approximating rectangles.
   15 $PAR
   16 \( \displaystyle\int_{$a}^{\,$b} $f \,dx\) is approximately \{ans_rule(45)\}
   17 END_TEXT

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9