On Saturday, March 31, 2012 11:01:57 PM UTC+2, William wrote: > > This is pretty nice. >
I'm really glad you like it. > I used it for some basic mathematica-like stuff, and it seemed to work > fine. I did try an integral though: > > Integrate[Sin[x]*Cos[x+1],x] > > and I seem to be able to count to 10 before getting the answer, even > if I retry it several times in the session. That > seems surprisingly slow, given: > > sage: time integrate(sin(x)*cos(x+1), x) > -1/2*x*sin(1) - 1/4*cos(2*x + 1) > Time: CPU 0.01 s, Wall: 0.01 s > sage: time integrate(sin(x)*cos(x+1), x, algorithm='sympy') > -1/2*x*sin(x + 1)*cos(x) + 1/2*x*sin(x)*cos(x + 1) + 1/2*sin(x + 1)*sin(x) > Time: CPU 0.53 s, Wall: 0.53 s > > I do realize sympy is way slower than maxima at this, but still it's > much faster than the website. I wonder what happens behind the scenes > to make that slow... > There's really not much overhead in Integrate over SymPy's integration. Some problems on my web server caused the slow queries. By the way, you can use SageIntegrate (instead of Integrate) to use Sage (i.e. Maxima) as a back-end (instead of SymPy); this is faster and gives better results. > -- 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 URL: http://www.sagemath.org