On Dec 3, 2008, at 12:46 AM, Stan Schymanski wrote:
>
> There seems to be a bug in numerical_integral in sage 3.2:
>
> ----------------------------------------------------------------------
> | Sage Version 3.2, Release Date: 2008-11-20 |
> | Type notebook() for the GUI, and license() for information. |
> ----------------------------------------------------------------------
>
> sage: numerical_integral(250*cos(pi*x/180)^1.8 + 170.35,x,
> 0,18)
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (308, 0))
>
> ----------------------------------------------------------------------
> -----
> TypeError Traceback (most recent call
> last)
>
> /Users/sschym/<ipython console> in <module>()
>
> /Users/sschym/Programs/sage/local/lib/python2.5/site-packages/sage/
> gsl/
> integration.so in sage.gsl.integration.numerical_integral (sage/gsl/
> integration.c:1989)()
>
> TypeError: invalid integration algorithm
>
>
> Or is this a problem with my installation of sage?
No, it's an inconsistency in the interface. numerical_integral
assumes a single free variable, so it doesn't accept that as an
option. See the docstring. The error should be much better.
sage: numerical_integral(250*cos(pi*x/180)^1.8 + 170.35,0,18)
(7435.2795815640275, 8.2548185859776822e-11)
- Robert
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---