Hi,

While testing new integral SFunction class for Sage,
I encountered this weird bug.

----------
sage: f(x) = function('f',x)

sage: f(x).integral(x)
integrate(f(x), x)

sage: f(x).integral(x^2)
x^2*f(x)
-----------

It appears to be a Maxima bug
----------
(%i10) integrate(f(x), x^2);
                                     2
(%o10)                              x  f(x)
----------

However, even "integral" of calculus.py seems to do crazy thing as well.
In line 566, it does

elif not is_SymbolicVariable(v):
        v = var(repr(v))

Above imply

--------
sage: v = var(repr(x^2))
sage: v
x^2
sage: v.diff(x)
0
-------

The next commented out line in calculus.py seems to be the right
thing do here!!

Cheers,
Golam

--~--~---------~--~----~------------~-------~--~----~
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