-
-
Notifications
You must be signed in to change notification settings - Fork 488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Riemann sums, added trapezoid option #10597
Comments
Attachment: riemann_sums.patch.gz Attachment: trac_10597.patch.gz |
comment:1
changed file name and commit message to reflect trac number. Pleases use trac_10597.patch only. |
Reviewer: Dmitrii Pasechnik |
comment:6
There is a doctest failure:
|
comment:7
A further small comment: in the docstrings, you should use |
Changed reviewer from Dmitrii Pasechnik to Dmitrii Pasechnik, Jeroen Demeyer |
comment:8
There is a discussion regarding this ticket on sage-devel. Until we come to a consensus, I think we should not merge it. |
comment:9
Replying to @sagetrac-gagansekhon:
Do you refer to the objection that trapezoid rule is not a Riemann sum? IMHO it is moot. |
comment:11
While helping a high school Calculus student with basic integration I tried to use Sage to do some computational examples, and when it didn't work as I expected it to I came across this ticket. The student's textbook considered a trapezoidal sum to be a Riemann sum, so I think pushing this ticket through would be helpful from the standpoint of wanting Sage to be a useful educational tool. It seems that only minor updates are needed to get this patch to a point where it would be acceptable. I would be willing to make these small changes. However, based on the discussion cited above, which didn't seem to come to any sort of conclusion, I am hesitant to do so. Any thoughts on whether this patch is worth cleaning up and adding to the Sage source? I vote yes, but of course I am no Sage guru. |
comment:15
Patch is outdated after replacement of the piecewise implementation in #14801. |
comment:16
I was asked about this ticket recently by a beginner, since it has the beginner keyword. But after looking at the ticket, I think this is not a good beginner ticket, especially now that the underlying code has been completely rewritten since this was first proposed. I'm removing the beginner tag. But I also suggest that this ticket be closed --- there are no longer any Riemann sums here, so the discussion as to whether a trapezoidal sum should be considered no longer applies. |
For piecewise functions, added trapezoid option to riemann_sum and riemann_sum_integral_approximation to already existing option of left, right and midpoint.
Deprecated, trapezoid_integral_approximation and trapezoid
Component: calculus
Keywords: riemann sums, trapezoid
Author: Gagan Sekhon
Reviewer: Dmitrii Pasechnik, Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/10597
The text was updated successfully, but these errors were encountered: