[sage-support] Re: Bug in compiled functions

2008-02-11 Thread William Stein
On Feb 11, 2008 8:52 AM, Georg <[EMAIL PROTECTED]> wrote: > > Ohh yes.., this was a very bad demonstration of the real problem, > actually i have a for loop in my .spyx file (for a quick and dirty > matrix exponentiation): > s = sage.all_cmdline > for i in s.srange(1, k): >factor = factor * M

[sage-support] Re: Bug in compiled functions

2008-02-11 Thread Georg
Ohh yes.., this was a very bad demonstration of the real problem, actually i have a for loop in my .spyx file (for a quick and dirty matrix exponentiation): s = sage.all_cmdline for i in s.srange(1, k): factor = factor * M * (1/k) srange applied in an .spyx file, i.e. without preparsin

[sage-support] Re: Bug in compiled functions

2008-02-11 Thread William Stein
On Feb 11, 2008 4:54 AM, Georg <[EMAIL PROTECTED]> wrote: > > Hi, > using sage-2.10.1 on a 32-bit core duo with Debian Etch, > considering 2 simple files, > sa.sage: > > load "sb.spyx" > def matmul(M): > return M * (1/2) spyx files are not "preparsed", so 1/2 is a Python "1/2", which is just

[sage-support] Re: Why does "==" not return True or False?

2008-02-11 Thread Jason Grout
Jurgis Pralgauskis wrote: > Hello, > >>> If not ==, what would you propose for creating symbolic expression >>> objects? The other obvious choice is eq(f, g), but I think that this >>> is inferior since it is much harder to guess. >> How often does one need an equation *outside solve*? I never di

[sage-support] Bug in compiled functions

2008-02-11 Thread Georg
Hi, using sage-2.10.1 on a 32-bit core duo with Debian Etch, considering 2 simple files, sa.sage: load "sb.spyx" def matmul(M): return M * (1/2) sb.spyx: def matmulspyx(M): return M * (1/2) -- | SAGE Version 2.10.1, Re