Skip to content
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

enable abs_integrate package from maxima #11483

Closed
kcrisman opened this issue Jun 14, 2011 · 18 comments
Closed

enable abs_integrate package from maxima #11483

kcrisman opened this issue Jun 14, 2011 · 18 comments

Comments

@kcrisman
Copy link
Member

This is the followup to #8624, as suggested in #10434.

We want to do more integrals! There are lots at the patch at #8624 which it would be great to add.

Depends on #12094

CC: @burcin @jasongrout

Component: calculus

Author: Michael Orlitzky, Jason Grout

Reviewer: Karl-Dieter Crisman

Merged: sage-5.0.beta3

Issue created by migration from https://trac.sagemath.org/ticket/11483

@kcrisman kcrisman added this to the sage-5.0 milestone Jun 14, 2011
@kcrisman
Copy link
Member Author

comment:1

This would fix #11594.

@kcrisman
Copy link
Member Author

comment:2

See this sage-support thread for another example.

@kcrisman
Copy link
Member Author

comment:3

See this sage-devel discussion for someone working on this!

Also, see #11966 for a newer spkg to base upon.

@orlitzky
Copy link
Contributor

comment:4

Here's my shot at this. There's one regression (a Maxima bug) that's fixed by Maxima 5.24.0, thus the dependency.

@orlitzky
Copy link
Contributor

Dependencies: #12094

@kcrisman
Copy link
Member Author

Reviewer: Karl-Dieter Crisman

@kcrisman
Copy link
Member Author

Author: Michael Orlitzky

@kcrisman
Copy link
Member Author

comment:6

Ok, this looks good, and is the proper way to deal with this. All tests pass.

Should we add Jason as an author due to his work at #8624? Up to him, probably.

@kcrisman
Copy link
Member Author

comment:7

Scratch that - Michael, can you update and give a proper commit message etc.? Also, the documentation is incorrectly formatted with double colons etc. - including the zXXX comment, which should have the double colon for EXAMPLES made single and then have a double colon after "subject to change".

@kcrisman
Copy link
Member Author

Work Issues: commit message, formatting

@orlitzky
Copy link
Contributor

Updated patch addressing reviewer comments.

@orlitzky
Copy link
Contributor

comment:8

Attachment: sage-trac-11483.patch.gz

That should be a little bit better.

Jason should get author credit too. I unfortunately didn't realize there was a patch at #8624, since it's closed: fixed, until after I had created my patch. Once I saw his, I went back and added some of his doctests to mine.

If he doesn't get author credit, then it looks like I just stole everything =)

@kcrisman
Copy link
Member Author

Changed author from Michael Orlitzky to Michael Orlitzky, Jason Grout

@kcrisman
Copy link
Member Author

comment:9

In retrospect, I realize that this file (maxima_lib) isn't even in the reference manual, and it might be nice to have some of these examples in more places (note that x.integrate? is horrible, though it points to a better place). Anyway, this is all fine now.

@jdemeyer
Copy link

jdemeyer commented Feb 3, 2012

Changed work issues from commit message, formatting to none

@jdemeyer
Copy link

jdemeyer commented Feb 6, 2012

Merged: sage-5.0.beta3

@dimpase
Copy link
Member

dimpase commented Dec 17, 2012

comment:12

abs_integrate can't do easy things like integrate(abs(cos(x)),x) right.

(%i8) integrate(abs(cos(x)),x);

log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
log: encountered log(0).
(%o8) 2*((1/2-sin(x)/((cos(x)+1)*(sin(x)^2/(cos(x)+1)^2+1)))
        *signum(sin(x)/(cos(x)+1)-1)
        +1)*signum(sin(x)/(cos(x)+1)+1)

and the resulting expression is wrong, as it is 1 at 0, and not 0. As a result, we get integrate(abs(cos(x)),x,0,pi)==-1.
Needless to say, same happens in Sage:

sage: integrate(abs(cos(x)),(x,0,pi))
-1

This is with maxima 5.26, as well as with 5.29, see #13364.

@rwst
Copy link

rwst commented Mar 7, 2015

comment:13

Please don't add to this closed ticket. The current ticket about abs_integrate is #12731.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants