-
-
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
Get integral of abs(sin(x)) and abs(cos(x)) right #17511
Comments
comment:1
Worse,
|
Changed upstream from Not yet reported upstream; Will do shortly. to Reported upstream. Developers acknowledge bug. |
This comment has been minimized.
This comment has been minimized.
Stopgaps: #12731 |
comment:5
Reported again at https://groups.google.com/forum/#!topic/sage-support/1Hcv29UyqVo |
Changed keywords from none to abs_integrate |
comment:7
Everything works in 8.9.b7 after #27958. Some doctests were added there. Maybe one could add one doctest for
|
comment:8
I have added a doctest. New commits:
|
Commit: |
Author: Frédéric Chapoton |
Branch: u/chapoton/17511 |
comment:9
This answer
is very wrong (outside of [-pi, pi])! It takes negative values
and the integral is supposed to go to |
Reviewer: Vincent Delecroix |
comment:10
But this is correct
|
comment:11
And I like very much
|
comment:12
Indeed. Giac is responsible for the wrong answer. This should be reported upstream.
|
comment:13
But giac is also providing the correct answer for the definite integral, where sympy fails to deliver:
|
comment:14
Replying to @fchapoton:
which should also be reported upstream I guess... |
Changed branch from u/chapoton/17511 to none |
Changed commit from |
comment:16
Samuel, would you please report to giac the failure of comment:12 ? |
comment:17
I emailed Bernard Parisse, here is his reply:
which roughly translates as
|
comment:18
Ticket retargeted after milestone closed |
comment:19
Moving tickets to milestone sage-9.2 based on a review of last modification date, branch status, and severity. |
comment:21
Moving this ticket to 9.4, as it seems unlikely that it will be merged in 9.3, which is in the release candidate stage |
comment:22
Setting a new milestone for this ticket based on a cursory review. |
comment:23
Stalled in |
See this comment, discussion in #13364, the supposed fix at https://sourceforge.net/p/maxima/bugs/2520/, this ask.sagemath question, and so forth.
E.g. this is annoying (but apparently right)
but it doesn't do the definite integral at all, even the easy ones where abs does nothing on the interval!
Upstream: Reported upstream. Developers acknowledge bug.
CC: @slel
Component: calculus
Keywords: abs_integrate
Stopgaps: #12731
Author: Frédéric Chapoton
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/17511
The text was updated successfully, but these errors were encountered: