-
-
Notifications
You must be signed in to change notification settings - Fork 487
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
Add doctest for elliptic integrals of the second kind #26563
Comments
comment:1
I think that this actually is due to
(although it's quite interesting what sage does with the result...) |
This comment has been minimized.
This comment has been minimized.
Changed keywords from integration to integration, abs_integrate |
comment:5
fixed by #27958, that needs review |
New commits:
|
Author: Michael Orlitzky |
Branch: u/mjo/ticket/26563 |
Commit: |
comment:7
red branch => needs work |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:9
Rebased onto develop. |
Reviewer: Travis Scrimshaw |
comment:10
LGTM. |
comment:12
What about the time it takes ? Do we really need this doctest ? |
comment:13
It takes about 15s on my computer. While it is not very long, it still is a bit long. It is important to have a regression test, which is why I gave it a positive review. Yet, I do see your point about not increasing the (long) test time too much. It suggests a change in the overall testing framework in Sage with respect to the symbolics. Perhaps we need to add the tests explicitly to the installation check? Although I lean towards keeping this at least for now to demonstrate where we have had issues. Frédéric, your thoughts? |
comment:14
It's slow but it's also kind of a cool example. Personally I'd prefer to delete ten other symbol-salad integration tests to make up for the time this one takes =) (IMO anything tested by the upstream test suite is a waste of time to duplicate within the sage library, since users have the option to run those test suites as well.) |
comment:15
Well, my point is that if everybody happily adds new doctests, only a few people care about how long it takes, and nobody at all cares about the ever-increasing time required to doctest sage. May I recall that a long doctest should rather not take more than 5s ? https://doc.sagemath.org/html/en/developer/doctesting.html#run-long-doctests Maybe specifying the algorithm that works would shorten the test time by not trying the failing algorithms ? |
comment:16
In this case the point of the test is that maxima "fails to integrate it incorrectly," after which sympy produces the correct result. When maxima returns a wrong answer (rather than giving up), sympy is never tried and we just return the wrong thing. Maxima gives up quickly, but the rest of the time spent in the doctest is just sympy performing the integral and getting the right answer. I'm fine if we want to leave this doctest out. I was just trying to help close out an old ticket by providing a test that shows that it's fixed. (And in general, if you ever want to propose that we go back and delete all of the "fixed in a new version of $package" doctests, I'd be all for it. I already run the test suites for maxima, pari, flint, etc. and don't need to test for those bugs all over again when I build sage.) |
Changed branch from u/mjo/ticket/26563 to |
Inspiration this ask.sagemath question.Edit: this one seems to be another instance of the same problem.
A lot of tickets describe indefinite integral bugs attributable to
maxima
, most notably itsabs_integrate
package ; see #12731 for a sample of the latter, and the list of integration tickets for somother infamous examples...However, Sage, which is becoming a mature system, seems to have become able to screw up things by itself on its own, without any external help. Case in point :
which is wrong, wrong, wrong...
CC: @mforets @fchapoton
Component: symbolics
Keywords: integration, abs_integrate
Author: Michael Orlitzky
Branch/Commit:
8a052c5
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/26563
The text was updated successfully, but these errors were encountered: