Re: [sage-support] Re: Map fom ZZ^3 to Hom(ZZ^3,Z)

2010-11-19 Thread Johannes
I just started to play around with "Hom()" and tryed to create a function mapping phi:x -> ; phi(x)(y) = with as element in Hom(ZZ^3,Z) and i was looking for a way to do this without using matrixes. greatz Why precisely do you want to do this? Is it entirely so you can write > f(v), where f i

[sage-support] Re: Bug (?) in full_simplify()

2010-11-19 Thread BFJ
The two expressions you give may be algebraically equivalent, but they're not identical. There is no canonical "fully simplified" form for a general algebraic expression, so you can't expect full_simplify() to output this non-existant form. If the expressions are simple enough, like polynomials, yo

[sage-support] Bug (?) in full_simplify()

2010-11-19 Thread pevzi
I have two expressions: (x/(2*sqrt(x+1)) + 1/(2*sqrt(x+1)*(sqrt(x+1)+1))) ((x*(sqrt(x+1)+1)+1)/(2*sqrt(x+1)*(sqrt(x+1)+1))) As you see, they are identical, so full_simplify() method should return the same result for both expressions. But: sage: (x/(2*sqrt(x+1)) + 1/(2*sqrt(x+1)*(sqrt(x +1)+1))).

[sage-support] Re: Any way to call a sage function with a time limit?

2010-11-19 Thread Derrick
thanks, I got it. On Nov 19, 1:56 pm, Alex Leone wrote: > I think the @fork decorator might do what you want.  I've never used it > though. > > @fork(timeout=5.0) > def f(...): >     ... > >  - Alex -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this

Re: [sage-support] Any way to call a sage function with a time limit?

2010-11-19 Thread Alex Leone
I think the @fork decorator might do what you want. I've never used it though. @fork(timeout=5.0) def f(...): ... - Alex -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more

[sage-support] Any way to call a sage function with a time limit?

2010-11-19 Thread Derrick
Suppose I use a sage function and it's taking too long. Is there a way to invoke the function with a specified time so that when it exceeds that given time, it will terminate gracefully without completing the computation? -- To post to this group, send email to sage-support@googlegroups.com To un

Re: [sage-support] Re: Map fom ZZ^3 to Hom(ZZ^3,Z)

2010-11-19 Thread William Stein
On Fri, Nov 19, 2010 at 9:55 AM, BFJ wrote: > It seems to me that the issue might be that Sage doesn't understand > how Hom(ZZ^3, ZZ^1) is a (free) module over ZZ. Correct. H=Hom(ZZ^3, ZZ^1) is a homset in the category of "modules with basis over ZZ". In Sage, H simply doesn't also have the str

[sage-support] Re: Map fom ZZ^3 to Hom(ZZ^3,Z)

2010-11-19 Thread BFJ
It seems to me that the issue might be that Sage doesn't understand how Hom(ZZ^3, ZZ^1) is a (free) module over ZZ. If you could coerce it into that category, then the object H = Hom(ZZ^3, ZZ^1) would have generators induced by those of ZZ^3 and ZZ^1 and then specifying a map in Hom( ZZ^3, Hom( ZZ^

[sage-support] Re: sagetex -- how to get started?

2010-11-19 Thread John Cremona
I failed to get this to work last time I tried, so gave up. Maybe I will try again. Thanks, John On Nov 19, 3:14 am, Dan Drake wrote: > On Sat, 30 Oct 2010 at 02:53PM -0700, John Cremona wrote: > > Thanks to both for the advice.  The minimal tex file from Jason works > > fine.  I do have all t

[sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-19 Thread Jean-Pierre Flori
Hi, Everything runs fine now (after fighting with nfs). I've even built the new maxima and ecl, patched everything (one hunk failed, looked at it, it must be a test which has benn added after 4.5.1 release...) I'm now trying to run doctests of interfaces/maxima.py. I'll run it on the Sunblade 1500

Re: [sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-19 Thread David Kirkby
On 18 November 2010 13:07, Jean-Pierre Flori wrote: > You were right, there is something wrong with the libgfortran file > under SAGE_ROOT/local/lib/ . > It was a symlink to "./../lib/libgfortran.so", strange. > > Sage is working with the libraries you posted above. Thanks ! I'll need to make sur

Re: [sage-support] Re: Sage Solaris binary distribution and libgfortran

2010-11-19 Thread David Kirkby
On 18 November 2010 09:01, Jean-Pierre Flori wrote: > Hi, > >> Can you send me the output of >> >> $ gcc -v >> $ gfortran -v >> $ command -v gcc >> $ cmmand -v gfortran >> >> on your system. >> > Here it is: > bash-3.00$ gcc -v > Reading specs from /usr/local/packages/gcc3/bin/../lib/gcc/sparc-sun