Notice first and second are very similar except for the cos() and exp
().

Why first one ok but second bombs?


sage: numerical_integral(sin(pi*cos(x/2)),0,2)[0]
0.85397903781471396

sage: numerical_integral(sin(pi*exp(x/2)),0,2)[0]
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call
last)

/home/seb/<ipython console> in <module>()

/usr/local/sage-3.4/local/lib/python2.5/site-packages/sage/gsl/
integration.so in sage.gsl.integration.numerical_integral (sage/gsl/
integration.c:1229)()

ValueError: Integrand has wrong number of parameters

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to