On Mon, Nov 24, 2008 at 8:29 AM, Tim Lahey <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> In exploring integration using FriCAS vs. Maxima, I've
> noticed that timeit doesn't seem to want to work
> for integration.

Precisely *exactly* how are you using timeit?!  Paste in an exact session.

Also, note that there is timeit('stuff'), which is a function call, and
  %timeit stuff
which is an ipython magic command that is "buggy" in that it doesn't
preparse its input.

>
> Taking an example from the Axiom Wiki,
>
> If I do:
> var('x')
> f = 2*x/sin(x)^2
> f.integrate(x)
> axiom.integrate(f,x)
>
> all is fine. However, as soon as I try to put a timeit
> around the f.integrate or the axiom.integrate, I get an
> error. Is there a specific reason why this doesn't work?
>
> On a different note, the results returned by FriCAS are
> much nicer than those returned by Maxima.
>
> Maxima:
> 2*((sin(2*x)^2 + cos(2*x)^2 - 2*cos(2*x) + 1)*log(sin(x)^2 + cos(x)^2
> + 2*cos(x) + 1) + (sin(2*x)^2 + cos(2*x)^2 - 2*cos(2*x) +
> 1)*log(sin(x)^2 + cos(x)^2 - 2*cos(x) + 1) - 4*x*sin(2*x))/
> (2*sin(2*x)^2 + 2*cos(2*x)^2 - 4*cos(2*x) + 2)
>
> FriCAS:
>                sin(x)                      2
>   2sin(x)log(----------) - 2sin(x)log(----------) - 2x cos(x)
>              cos(x) + 1               cos(x) + 1
>   -----------------------------------------------------------
>                              sin(x)
>
> Cheers,
>
> Tim.
>
> ---
> Tim Lahey
> PhD Candidate, Systems Design Engineering
> University of Waterloo
>
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

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