Opened 6 years ago

Closed 6 years ago

#3013 closed defect (fixed)

[with patch, positive review] bug in integrate (found during a talk!)

Reported by: was Owned by: was
Priority: major Milestone: sage-3.1.2
Component: calculus Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

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)

Attachments (1)

trac_3103.patch (911 bytes) - added by mabshoff 6 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 6 years ago by was

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) 

comment:2 Changed 6 years ago by mabshoff

This is fixed in Maxima 5.15.

Cheers,

Michael

comment:3 Changed 6 years ago by mabshoff

  • Summary changed from bug in integrate (found during a talk!) to [fix in upstream Maxima] bug in integrate (found during a talk!)

comment:4 Changed 6 years ago by mabshoff

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

Changed 6 years ago by mabshoff

comment:5 Changed 6 years ago by mabshoff

  • Summary changed from [fix in upstream Maxima] bug in integrate (found during a talk!) to [with patch, needs review] bug in integrate (found during a talk!)

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

Cheers,

Michael

comment:6 Changed 6 years ago by mhansen

  • Summary changed from [with patch, needs review] bug in integrate (found during a talk!) to [with patch, positive review] bug in integrate (found during a talk!)

comment:7 Changed 6 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

Merged in Sage 3.1.2.alpha0

Note: See TracTickets for help on using tickets.