On Wed, 26 Aug 2009, kcrisman wrote:

>> sage: var('x,y')
>> (x, y)
>> sage: f = -x-y
>> sage: integrate(f)
>> -1/2*x^2 - x*y
>> sage: integrate(f+x)  # unambiguous?
>> -1/2*y^2
>> sage: integrate(f+y)  # unambiguous?
>> -1/2*x^2
>> sage: integrate(f) + integrate(x)
>> -x*y
>> sage: integrate(f) + integrate(y)
>> -1/2*x^2 - x*y + 1/2*y^2
>>
>
> I meant single-variable.  No, none of these are unambiguous.

"f+x" and "f+y" are "single-variable." (Note the definition of f.) This 
has bitten me before.

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an 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