Thanks. I consider this a bug though it might be
more precisely described as an unimplemented feature
(I'm guessing that there is no __mul__ method in the appropriate
class). Until it gets fixed, here is a workaround:

sage: f = maxima.function('x', 'sin(x)')
sage: g = f.integrate("x")
sage: h = maxima.function('x', "("+str(f)+")*("+str(g)+")")
sage: f; g; h
 sin(x)
 -cos(x)
 (sin(x))*(-cos(x))

Could you please post this to the bug tracker?

+++++++++++++++++++++++++++++++++++++++

On 10/15/06, Tang Hai Tuan Minh <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am having a little trouble finding out why the following code segment
> doesn't work as expected
>
> f = maxima.function('x', 'sin(x)')
> g = f.integrate('x')
> h = f*g                                 // Here sage return different answers 
> on different executions
>
> If I define h as
>
> def h(n):
>         return f(n)*g(n)
>
> then everything seems to work fine.
>
> I have attached a hopefully small (42.8 KB) png image showing the above
> mentioned code executed inside a sage notebook.
>
> Thanks,
> Minh
>
> --
> philosophy:
>         The ability to bear with calmness the misfortunes of our friends.
>
>
>

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to