Re: [sage-devel] Re: Riemann sums , trapezoid mode

2011-01-24 Thread Robert Bradshaw
On Mon, Jan 24, 2011 at 10:58 PM, Dima Pasechnik wrote: > > > On Jan 12, 2:09 pm, mhampton wrote: >> It is a Riemann sum with a non-constant width. > trapezoid rule is what you get if you take  the average of the left- > point and the right-point ones. > (for an obvious geometric reason) > > I do

[sage-devel] Re: Riemann sums , trapezoid mode

2011-01-24 Thread Dima Pasechnik
On Jan 12, 2:09 pm, mhampton wrote: > It is a Riemann sum with a non-constant width.   trapezoid rule is what you get if you take the average of the left- point and the right-point ones. (for an obvious geometric reason) I don't see why width is relevant here. > The usual definition > allows

[sage-devel] Re: Riemann sums , trapezoid mode

2011-01-12 Thread kcrisman
These are very old methods that David Joyner put in Sage when there was virtually nothing for calculus - particularly pedagogical examples - in Sage. I believe they only work with the Piecewise class, and return Piecewise functions (which can't do much). In sage.functions.piecewise.py : - David

Re: [sage-devel] Re: Riemann sums , trapezoid mode

2011-01-11 Thread Francois Maltey
Hello, (and copy to Sage-edu) Currently, both riemann_sum and riemann_sum_integral_approximation does not support trapezoid mode. But instead there are separate function which computes these for trapezoid mode . I am added this mode to both riemann_sum and riemann_sum_integral_approximati

[sage-devel] Re: Riemann sums , trapezoid mode

2011-01-11 Thread mhampton
It is a Riemann sum with a non-constant width. The usual definition allows that as long as the widths of each interval have a limit of zero. -Marshall On Jan 11, 9:51 pm, Jason Grout wrote: > On 1/11/11 6:06 PM, Gagan Sekhon wrote: > > > Currently, both riemann_sum and riemann_sum_integral_appr

[sage-devel] Re: Riemann sums , trapezoid mode

2011-01-11 Thread Jason Grout
On 1/11/11 6:06 PM, Gagan Sekhon wrote: Currently, both riemann_sum and riemann_sum_integral_approximation does not support trapezoid mode. But instead there are separate function which computes these for trapezoid mode . I am added this mode to both riemann_sum and riemann_sum_integral_approxim