[sage-support] Re: Two equivalent ways of inputting a function involving gamma function yield different result?

2010-12-23 Thread KvS
On Dec 23, 6:42 pm, Jason Grout jason-s...@creativetrax.com wrote: On 12/23/10 1:02 AM, KvS wrote: In addition to the previous post, if I change the contents of the first cell to f=BetaLP1.getkthMomentAt(1,1) g=symbolic_expression(str(f(x))).function(x) print g(0) it does yield 1

[sage-support] Re: Two equivalent ways of inputting a function involving gamma function yield different result?

2010-12-23 Thread KvS
On Dec 23, 6:42 pm, Jason Grout jason-s...@creativetrax.com wrote: On 12/23/10 1:02 AM, KvS wrote: In addition to the previous post, if I change the contents of the first cell to f=BetaLP1.getkthMomentAt(1,1) g=symbolic_expression(str(f(x))).function(x) print g(0) it does yield 1

[sage-support] Weird *** longjmp causes uninitialized stack frame *** error?

2010-12-23 Thread KvS
Hi all, I'm very sorry, but I have yet another error I don't understand. I was playing around with evaluating the gamma function. The following piece of code is fine (on Sage v 4.6): i=sqrt(-1) for k in range(100): print k; r1=random(); r2=random() #try: #xx=100*r1-i; yy=100*r2

[sage-support] Re: Weird *** longjmp causes uninitialized stack frame *** error?

2010-12-23 Thread Volker Braun
I'm getting the somewhat expected result: sage: i=sqrt(-1) sage: for k in range(100): : print k; r1=random(); r2=random() : try: : xx=100*r1-i; yy=100*r2 : res=gamma(xx)*gamma(yy)/gamma(xx+yy) : except: : pass :

[sage-support] Re: Weird *** longjmp causes uninitialized stack frame *** error?

2010-12-23 Thread KvS
On Dec 23, 10:17 pm, Volker Braun vbraun.n...@gmail.com wrote: I'm getting the somewhat expected result: sage: i=sqrt(-1) sage: for k in range(100): :         print k; r1=random(); r2=random() :     try: :             xx=100*r1-i; yy=100*r2 :        

[sage-support] Re: Weird *** longjmp causes uninitialized stack frame *** error?

2010-12-23 Thread Volker Braun
My guess would be #8 0x008eef06 in rtodbl (x=0xb7d3d708) This is where the over flow occurs, raises signal #7 0x00b49f0e in pari_err (numerr=15) at ../src/language/init.c:980 it is handled by the pari error handler, which attempts to longjmp back into rtodbl or some cleanup routine (did

[sage-support] Re: Two equivalent ways of inputting a function involving gamma function yield different result?

2010-12-23 Thread Jason Grout
On 12/23/10 2:19 AM, KvS wrote: On Dec 23, 6:42 pm, Jason Groutjason-s...@creativetrax.com wrote: On 12/23/10 1:02 AM, KvS wrote: In addition to the previous post, if I change the contents of the first cell to f=BetaLP1.getkthMomentAt(1,1) g=symbolic_expression(str(f(x))).function(x)

[sage-support] Re: Two equivalent ways of inputting a function involving gamma function yield different result?

2010-12-23 Thread Jason Grout
On 12/23/10 7:22 AM, Jason Grout wrote: Definitely weird. Apparently subtracting mygammaexpr from gamma(-x-1/2) makes mygammaexpr suddenly realize that it's okay to evaluate it at x=0. And lest we think the errors are something from Kees's install, those computations were done on

[sage-support] Re: Weird *** longjmp causes uninitialized stack frame *** error?

2010-12-23 Thread KvS
On Dec 23, 11:25 pm, Volker Braun vbraun.n...@gmail.com wrote: My guess would be #8  0x008eef06 in rtodbl (x=0xb7d3d708) This is where the over flow occurs, raises signal #7  0x00b49f0e in pari_err (numerr=15) at ../src/language/init.c:980 it is handled by the pari error handler, which

[sage-support] Re: Two equivalent ways of inputting a function involving gamma function yield different result?

2010-12-23 Thread KvS
On Dec 24, 12:29 am, Jason Grout jason-s...@creativetrax.com wrote: On 12/23/10 7:22 AM, Jason Grout wrote: Definitely weird.  Apparently subtracting mygammaexpr from gamma(-x-1/2) makes mygammaexpr suddenly realize that it's okay to evaluate it at x=0. And lest we think the errors are

[sage-support] Re: Weird *** longjmp causes uninitialized stack frame *** error?

2010-12-23 Thread Volker Braun
Unless you are running precisely 32bit ubuntu 10.04 lts there is nothing that Sage can do about it. -- 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 options, visit this group

[sage-support] Help

2010-12-23 Thread vijay sharma
Hello Could you help me to install the binaries of SAGE? I downloaded the SAGE binary for Fedora. But when I ran *./sage* command, I am getting the following error: - cannot execute the binary. Regards Vijay -- To post to this group, send email to sage-support@googlegroups.com To