Ticket #9200 (closed enhancement: fixed)
Add left and right directions to limits
| Reported by: | DanaErnst | Owned by: | burcin |
|---|---|---|---|
| Priority: | minor | Milestone: | sage-4.6 |
| Component: | calculus | Keywords: | |
| Cc: | jason, rbeezer | Work issues: | |
| Report Upstream: | N/A | Reviewers: | Rob Beezer |
| Authors: | Dana Ernst, Burcin Erocal | Merged in: | sage-4.6.alpha1 |
| Dependencies: | Stopgaps: |
Description
- Add from_left and from_right for dir keyword.
- Improve error message dir keyword.
- Add doctests and tests.
Attachments
Change History
comment:1 Changed 3 years ago by DanaErnst
Patch passes tests in sage/calculus. Need to test full Sage library.
Changed 3 years ago by DanaErnst
-
attachment
trac_9200-left-right-limits-v2.patch
added
stand alone patch
comment:3 Changed 3 years ago by DanaErnst
- Status changed from new to needs_review
- All tests passed on version 4.5.1 (running OSX 10.6)
- HTML & PDF reference built without problem
comment:4 Changed 3 years ago by rbeezer
- Status changed from needs_review to positive_review
- Reviewers set to Rob Beezer
Applies, builds, passes all tests, and docs look fine; on 4.5.2.alpha0. So this is a positive review.
Nice job on your first contribution!
comment:5 Changed 3 years ago by burcin
- Status changed from positive_review to needs_info
Do we really need new keywords for this? And if we do, should it be from_{right,left}?
I think a user interface decision like this needs more input from other developers. I'll post to sage-devel with this question.
comment:6 Changed 3 years ago by DanaErnst
The idea for this came up during one of the online sessions for the MAA PREP Workshop for Sage (organized by Rob Beezer, Jason Grout, and Karl-Dieter Crisman) that I am currently enrolled in. While we were discussing calculus during one of our workshop sessions, one of the participants remarked that most students learn one-sided limits as "from the left" and "from the right." Rob, Jason, and Karl-Dieter knew that I was interested in getting involved in Sage development and remarked that I could add that this terminology to Sage if I was interested. I figured that it was an easy way to get my feet wet.
I have been using Sage for almost a year, so I would consider myself a newbie. I'm not personally attached to this patch and if others feel that it is unnecessary bloat, then my feelings won't be hurt.
comment:7 Changed 3 years ago by burcin
- Status changed from needs_info to needs_review
- Authors changed from Dana Ernst to Dana Ernst, Burcin Erocal
This was discussed in the thread:
http://groups.google.com/group/sage-devel/t/9dd6dfe26f09be93
The resulting decision was to deprecate 'above' and 'below' and add support for '+', '-', 'right', and 'left'.
attachment:trac_9200-deprecation.patch makes the necessary changes, on top of Dana's patch.
Patches to be applied in this order:
comment:8 Changed 3 years ago by DanaErnst
Burcin,
Thanks for picking up the ball on this. I was planning on attacking this in a few weeks after the initial craziness of my semester settled down. Now, I get to cross something off my todo list:)
Dana
comment:9 Changed 3 years ago by rbeezer
I noticed while reviewing this that there are two "TEST" headers in the docstring for limit(). So I removed the second one and uploaded a new version of the "documentation" patch - only change is the removal of the header (still has Burcin's name on it too).
I'm running tests overnight and then plan to give this a positive review.
Burcin - I'll wait for you to check-off on the one change to your patch.
Rob
comment:10 Changed 3 years ago by burcin
Thanks for taking care of the TEST headers Rob. I'm ok with your change. Looking forward to that positive review. :)
comment:11 Changed 3 years ago by rbeezer
- Status changed from needs_review to positive_review
Thanks, Burcin, for the go-ahead and for prompting the discussion on this one. Builds (on 4.5.2), docs look good, passes all tests (sage -testall) and is consistent with discussion on sage-devel. Positive review.
Congrats to Dana Ernst on his first contribution. Next one will probably engender less discussion. ;-)
Release Manager
Patches to be applied in this order:
Dana Ernst is first-time contributor (for release notes).
comment:12 Changed 3 years ago by mpatel
- Status changed from positive_review to closed
- Resolution set to fixed
- Merged in set to sage-4.6.alpha1
