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

bug in integrate (found during a talk!) #3013

Closed
williamstein opened this issue Apr 23, 2008 · 7 comments
Closed

bug in integrate (found during a talk!) #3013

williamstein opened this issue Apr 23, 2008 · 7 comments

Comments

@williamstein
Copy link
Contributor

sage: integrate(sin(x)*cos(10*x)*log(x))
Traceback (most recent call last):
...
TypeError: Error executing code in Maxima
CODE:
sage22 : integrate(sage21,sage3)$
Maxima ERROR:


Too many contexts.
sage: show(integrate(sin(x^2)

Component: calculus

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

@williamstein williamstein added this to the sage-3.1.2 milestone Apr 23, 2008
@williamstein williamstein self-assigned this Apr 23, 2008
@williamstein
Copy link
Contributor Author

comment:1

This is also a Maxima bug:

Last login: Wed Apr 23 16:43:25 on ttys014
teragon-2:~ was$ sage -maxima
Maxima 5.13.0 http://maxima.sourceforge.net
Using Lisp CLISP 2.41 (2006-10-13)
Distributed under the GNU Public License. See the file COPYING.
Dedicated to the memory of William Schelter.
This is a development version of Maxima. The function bug_report()
provides bug reporting information.
(%i1) integrate(sin(x)*cos(10*x)*log(x),x);

Too many contexts.
 -- an error.  To debug this try debugmode(true);
(%i2) 

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Jun 15, 2008

comment:2

This is fixed in Maxima 5.15.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title bug in integrate (found during a talk!) [fix in upstream Maxima] bug in integrate (found during a talk!) Jul 31, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Aug 22, 2008

comment:4

This now works:

mabshoff@sage:/scratch/mabshoff/release-cycle/sage-3.1.2.alpha0$ ./sage
----------------------------------------------------------------------
| SAGE Version 3.1.1, Release Date: 2008-08-17                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

sage: integrate(sin(x)*cos(10*x)*log(x))
(9*integrate(cos(11*x)/x, x) - 11*integrate(cos(9*x)/x, x) - 9*log(x)*cos(11*x) + 11*log(x)*cos(9*x))/198

So once we add a doctest we can close this ticket.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Aug 22, 2008

Attachment: trac_3103.patch.gz

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Aug 22, 2008

comment:5

Maxima returns a solution that is partially unevaluated, so merging this might or might not be a good idea.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin changed the title [fix in upstream Maxima] bug in integrate (found during a talk!) bug in integrate (found during a talk!) Aug 22, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Aug 23, 2008

comment:7

Merged in Sage 3.1.2.alpha0

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Aug 23, 2008
@fchapoton

This comment has been minimized.

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

3 participants