[sage-support] Re: Error calling plots.

2008-02-04 Thread adrianmatematico
Hmmm... I will look into it. Anyway, it is not critical, since I have firefox running almost all the time. If I find something, I will let you guys know. Thanks a bunch! -Adrian. On Feb 4, 10:49 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > Hello, > > > /usr/lib/firefox/firefox-bin: symbol l

[sage-support] Re: Error calling plots.

2008-02-04 Thread Mike Hansen
Hello, > /usr/lib/firefox/firefox-bin: symbol lookup error: /usr/lib/libxml2.so. > 2: undefined symbol: gzopen64 This looks like this bug: https://bugs.launchpad.net/ubuntu/+source/libxml2/+bug/151045 --Mike --~--~-~--~~~---~--~~ To post to this group, send emai

[sage-support] Re: Error calling plots.

2008-02-04 Thread adrianmatematico
I just compiled from source; it took forever. THE PROBLEM IS NOW SOLVED!!! There is however another, independent issue. Whenever I try to run sage -notebook or notebook() inside of sage, if firefox is already running, it opens a new tab and everything works nicely. But if firefox is not alread

[sage-support] Re: eigenvalues

2008-02-04 Thread William Stein
On Feb 4, 2008 8:12 PM, mb <[EMAIL PROTECTED]> wrote: > > Hi, > > I am trying to compute eigenvectors and eigenvalues of a matrix and I > don't understand the output. > > sage: R=RealField(30) > sage: M=matrix(R,2,[2,1,1,1]) > sage: M.eigenspaces() > > [ > (2.6180340, [ > > ]), > (0.38196601, [ >

[sage-support] eigenvalues

2008-02-04 Thread mb
Hi, I am trying to compute eigenvectors and eigenvalues of a matrix and I don't understand the output. sage: R=RealField(30) sage: M=matrix(R,2,[2,1,1,1]) sage: M.eigenspaces() [ (2.6180340, [ ]), (0.38196601, [ ]) ] If "30" is replaced with "100" the second eigenspace gets printed out, but

[sage-support] Re: Bug in function save...

2008-02-04 Thread Carl Witty
On Feb 4, 7:18 am, Georg <[EMAIL PROTECTED]> wrote: > Hi, > start sage-2.10.1 in a directory which contains a subdirectory 'foo': > > sage: a = srange(3) > sage: save(a, 'foo/foo') > sage: b = load('foo/foo') > sage: b > [0, 1, 2] > sage: save(a, './foo/foo') >

[sage-support] Re: A simple question about plot

2008-02-04 Thread Justin C. Walker
On Feb 4, 2008, at 13:10 , Jason Grout wrote: > > Justin C. Walker wrote: >> >> On Feb 4, 2008, at 10:51 AM, Jason Grout wrote: >>> Justin C. Walker wrote: >> [snip] >>> I agree with Justin's comments on how to ask good, detailed >>> questions >>> about functionality. This question was also a

[sage-support] Re: A simple question about plot

2008-02-04 Thread Justin C. Walker
On Feb 4, 2008, at 13:11 , Jason Grout wrote: > > Justin C. Walker wrote: >> >> On Feb 4, 2008, at 10:51 AM, Jason Grout wrote: >>> Justin C. Walker wrote: >> [snip] >>> I agree with Justin's comments on how to ask good, detailed >>> questions >>> about functionality. This question was also a

[sage-support] Re: A simple question about plot

2008-02-04 Thread Jason Grout
Jaap Spies wrote: > Jason Grout wrote: > >> *thinking out loud* Is this maybe related to the fast_float stuff that >> Robert did in 2.10.1 if the error doesn't show up in 2.10? Justin, if >> you have 2.10.1 handy, can you try the plot command in there? >> > > Don't think so! See IRC, thanks w

[sage-support] Re: A simple question about plot

2008-02-04 Thread Jaap Spies
Jason Grout wrote: > > *thinking out loud* Is this maybe related to the fast_float stuff that > Robert did in 2.10.1 if the error doesn't show up in 2.10? Justin, if > you have 2.10.1 handy, can you try the plot command in there? > Don't think so! See IRC, thanks wjp! Why should Sage plot a

[sage-support] Re: A simple question about plot

2008-02-04 Thread Jason Grout
Justin C. Walker wrote: > > On Feb 4, 2008, at 10:51 AM, Jason Grout wrote: >> Justin C. Walker wrote: > [snip] >> I agree with Justin's comments on how to ask good, detailed questions >> about functionality. This question was also asked on IRC and resolved >> in the same way. >> >> I did open a

[sage-support] Re: A simple question about plot

2008-02-04 Thread Jason Grout
Justin C. Walker wrote: > > On Feb 4, 2008, at 10:51 AM, Jason Grout wrote: >> Justin C. Walker wrote: > [snip] >> I agree with Justin's comments on how to ask good, detailed questions >> about functionality. This question was also asked on IRC and resolved >> in the same way. >> >> I did open a

[sage-support] Re: A simple question about plot

2008-02-04 Thread Justin C. Walker
On Feb 4, 2008, at 10:51 AM, Jason Grout wrote: > Justin C. Walker wrote: [snip] > I agree with Justin's comments on how to ask good, detailed questions > about functionality. This question was also asked on IRC and resolved > in the same way. > > I did open a trac ticket since the error message

[sage-support] Re: A simple question about plot

2008-02-04 Thread Jason Grout
Justin C. Walker wrote: > Hi, > > On Feb 4, 2008, at 6:16 AM, vgermrk wrote: > >> I want to plot a simple function: sqrt(1-x^2) >> i tried plot(sqrt(1-x^2),(x,1,10)) and plot((1-x^2)^(0.5),(x, >> 1,10)) , >> but i doesn't work. > > Please, in the future, include a little information with

[sage-support] Re: A simple question about plot

2008-02-04 Thread Justin C. Walker
Hi, On Feb 4, 2008, at 6:16 AM, vgermrk wrote: > I want to plot a simple function: sqrt(1-x^2) > i tried plot(sqrt(1-x^2),(x,1,10)) and plot((1-x^2)^(0.5),(x, > 1,10)) , > but i doesn't work. Please, in the future, include a little information with your question. It is not easy to diag

[sage-support] Re: Signum function?

2008-02-04 Thread David Joyner
I think it is pretty easy to make one using piecewise. On Feb 4, 2008 9:19 AM, vgermrk <[EMAIL PROTECTED]> wrote: > > I think it would be nice to have a signum-function (i.e. > sign(x)=abs(x)/x or sign(x)=cmp(x,0) ) in sage. > There is none, right? > > Of course it should work on integers, floa

[sage-support] Re: Signum function?

2008-02-04 Thread Marshall Hampton
There is one in scipy, but that is not loaded by default. It might be a good place to start; I think we should use scipy more by default than we do currently. -M. Hampton ps. in case its not obvious, here's an example: sage: import scipy sage: map(scipy.sign,range(-3,3)) [-1, -1, -1, 0, 1, 1]

[sage-support] Re: Signum function?

2008-02-04 Thread David Harvey
On Feb 4, 2008, at 9:19 AM, vgermrk wrote: > > I think it would be nice to have a signum-function (i.e. > sign(x)=abs(x)/x or sign(x)=cmp(x,0) ) in sage. > There is none, right? > > Of course it should work on integers, floats, lists, etc. Yep, just noting that this has been requested before:

[sage-support] Signum function?

2008-02-04 Thread vgermrk
I think it would be nice to have a signum-function (i.e. sign(x)=abs(x)/x or sign(x)=cmp(x,0) ) in sage. There is none, right? Of course it should work on integers, floats, lists, etc. -vgermrk- --~--~-~--~~~---~--~~ To post to this group, send email to sage-su

[sage-support] A simple question about plot

2008-02-04 Thread vgermrk
I want to plot a simple function: sqrt(1-x^2) i tried plot(sqrt(1-x^2),(x,1,10)) and plot((1-x^2)^(0.5),(x, 1,10)) , but i doesn't work. What i am doing wrong? Thanks in advance -vgermrk- --~--~-~--~~~---~--~~ To post to this group, send email to sage-suppo

[sage-support] 0^0 in sage-2.10.1 still undefined for Rationals...

2008-02-04 Thread Georg
Hi, sage: Rational(0)^Rational(0) --- Traceback (most recent call last) /home/georg/ in () /home/georg/rational.pyx in sage.rings.rational.Rational.__pow__() : 0^0 is undefined. should not be, or? Georg --~--~-

[sage-support] Bug in function save...

2008-02-04 Thread Georg
Hi, start sage-2.10.1 in a directory which contains a subdirectory 'foo': sage: a = srange(3) sage: save(a, 'foo/foo') sage: b = load('foo/foo') sage: b [0, 1, 2] sage: save(a, './foo/foo') --- Traceback (most recent