--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
At first, my vote was to deprecate, then delete the function. However,
I think some people might argue that a trapezoid function was not a
riemann sum since it is not of the form (width)*(f(point)) like the
left, right, and midpoint sums. So maybe a new function that absorbs
all of these called approximate_integral or something is in order?
Jason
In this case, I vote for an only one (if possible) function
numerical_integral with a new option in
the parameter algorithm (or method)
algorithm="Riemann", algorithm="trapezoid" or algorithm="Simpson",
algorithm="GaussLegendre"...
I don't find any riemann_sum_integral_approximation nor rieman_sum
functions in my 4.6 Sage.
F.
A Riemann sum is a sum of areas of rectangles (equivalently, a
weighted sum of evaluations). The trapezoid rule is equivalent to
taking rectangles of half the width, alternating taking the left and
right endpoints as the heights. (Or, again equivalently, letting all
the "middle" rectangles be twice the width of the two side ones.)
>> 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 <jason-s...@creativetrax.com> wrote:
>>
>>
>>
>> > On 1/11/11 6:06 PM,GaganSekhon 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_approximation and wanted to take a vote on how
>> > > many people think trapezoid function should stay, should be deprecated
>> > > or completely deleted
>>
>> > At first, my vote was to deprecate, then delete the function. However,
>> > I think some people might argue that a trapezoid function was not a
>> > riemann sum since it is not of the form (width)*(f(point)) like the
>> > left, right, and midpoint sums. So maybe a new function that absorbs
>> > all of these called approximate_integral or something is in order?
>>
>> > Jason
>