On Tue, Aug 25, 2009 at 3:44 PM, Jason Grout<[email protected]> wrote:
>
> Golam Mortuza Hossain wrote:
>> Hi,
>>
>> I am preparing patches that will resolve
>>
>> http://trac.sagemath.org/sage_trac/ticket/6465
>>
>> and will also move symbolic integration as a sub-class
>> of SFunction into new symbolics.
>>
>>
>> Currently, Sage allows omitting variable of integration for convenience.
>> However, this convenience comes at a hefty price by making Sage
>> syntax highly inconsistent. On top of this, it mask genuine typing error
>> as a valid input.
>>
>> For example: "integrate(f(x), x, a, )" is treated as "integrate(f(x), x, x, 
>> a)"
>> where user may have wanted to type "integrate(f(x), x, a, b)" but
>> missed the "b".
>>
>> Given we are moving to a new settings, I am proposing that we make
>> integration syntax bit stricter and consistent now. In particular, we allow 
>> only
>> following inputs as valid
>>
>> (1) integrate( f(x), x)
>> (2) integrate( f(x), (x,a,b) )
>> (3) integrate( f(x), x, a, b)
>>
>
>
> See also the very old tickets that requested such changes:
>
> http://trac.sagemath.org/sage_trac/ticket/1221
>
> http://trac.sagemath.org/sage_trac/ticket/2787
>
> I noticed the other day that integrate(sin(x), (x, 0, pi)) seemed to
> just hang.  There was no error--it just hung.

That is WEIRD given that maxima doesn't go interactive or anything and
works fine:

sage: maxima.eval('integrate(sin(x),x,0,%pi)')
'2'
sage: sage.calculus.calculus.maxima.eval('integrate(sin(x),x,0,%pi)')
'2'
sage: integrate(sin(x),(x,0,pi))
[hang forever]

William

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

Reply via email to