On Dec 31, 2007 9:00 PM, Mike Hansen <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> Sympy provides it's own matrices. As mentioned before, there needs to
> be more work done with sympy in Sage so that what you tried does work.
> In the meantime, look at the following example:
>
> sage: import sympy
>
Hello,
Sympy provides it's own matrices. As mentioned before, there needs to
be more work done with sympy in Sage so that what you tried does work.
In the meantime, look at the following example:
sage: import sympy
sage: x = sympy.Symbol('x')
sage: m = sympy.Matrix([[1,x],[x,1]])
sage: m
1 x
x
> > sage: var(x)
> > x
> > sage: time sum(((x+sin(i))/x+(x-sin(i))/x).rational_simplify() for i
> > in xrange(100))
> > 200
> > CPU time: 5.29 s, Wall time: 39.10 s
> > sage: time maxima('sum(ratsimp((x+sin(i))/x+(x-sin(i))/x),i,1,100)')
> > 200
> > CPU time: 0.02 s, Wall time: 0.55 s
>
> Those
On Dec 27, 2007 1:53 PM, pgdoyle <[EMAIL PROTECTED]> wrote:
> I'm having problems doing symbolic computations in Sage. Calls to
> rational_simplify() seem to take about .2 seconds each. Working
> directly in Maxima is about 100 times faster. Mathematica is
> something like 500 times faster.
>
>
On Dec 27, 9:57 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> The reason why the symbolic stuff in Sage is slow is that it uses a
> psuedo-tty interface to talk to Maxima. There is a lot of overhead
> with this due to waiting, synchronization, parsing the string output,
> etc. One
Hello,
The reason why the symbolic stuff in Sage is slow is that it uses a
psuedo-tty interface to talk to Maxima. There is a lot of overhead
with this due to waiting, synchronization, parsing the string output,
etc. One way to get the symbolic stuff to be faster is to make using
Sympy since i