On Sun, Mar 29, 2009 at 5:36 PM, kcrisman <kcris...@gmail.com> wrote:
>
>> But that sure looks stupid!  numerical_integral and integral have
>> incompatible inputs, i.e., this is an error:
>>
>>    numerical_integral(f(x), x, a, b)
>>
>> as is this
>>
>>    numerical_integral(f(x), (x, a, b))
>
> Yup, I've run into that a lot. The parameter handling is convoluted
> too; perhaps the following should work?
> sage: var('b')
> sage: g(x)=b*x
> sage: g.subs(b=3)
> 3*x
> sage: [numerical_integral(g.subs(b=n),0,1) for n in range(5)]
> ValueError
> <snip>
> ValueError: Integrand has wrong number of parameters
>
> A lot of the code for numerical_integral is C-related, but if you
> think this is worth a ticket I think at least the first issue is
> within my ability ... maybe?

Definitely (1) it is worth a ticket, and (2) it is within your ability.

William

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

Reply via email to