[sage-support] equation vs. equality

2010-01-28 Thread zieglerk
Hi, My problem is, how to transform a polynomial, say f(x)=x^2+1 into the corresponding equation f(x)==0? For example, I start with R = PolynomialRing(ZZ,x) f = R.random_element(degree = 3) Then f == 0 returns false. And that's a good thing, of course. But now I want to solve f == 0 mod 7,

Re: [sage-support] equation vs. equality

2010-01-28 Thread Mike Hansen
Hello, On Thu, Jan 28, 2010 at 2:26 AM, zieglerk konstantin.zieg...@gmail.com wrote: My problem is, how to transform a polynomial, say f(x)=x^2+1 into the corresponding equation f(x)==0? For example, I start with R = PolynomialRing(ZZ,x) f = R.random_element(degree = 3) You could convert

[sage-support] Re: installation problems for Sage binary on Mac

2010-01-28 Thread Harald Schilly
On Jan 26, 8:54 pm, gsw georgswe...@googlemail.com wrote: it seems that there are two different people reporting two different problems here. Hi, I'm the one doing the mirror pages. I don't know all the different types of apple osx systems, so I can only upload what I get. Does anybody have

[sage-support] Re: equation vs. equality

2010-01-28 Thread Simon King
Hi! On Jan 28, 10:36 am, Mike Hansen mhan...@gmail.com wrote: You could convert to the SymbolicRing SR where the equations live: Or you could avoid the SymbolicRing (I don't know what is better). For example: sage: R = PolynomialRing(ZZ,x) sage: f = R.random_element(degree = 3) sage: f -6*x^3

[sage-support] Re: equation vs. equality

2010-01-28 Thread Simon King
Postscriptum: On Jan 28, 10:26 am, zieglerk konstantin.zieg...@gmail.com wrote: ... returns false. And that's a good thing, of course.  But now I want to solve f == 0 mod 7, then I would naturally use ... And for solving modulo something, this should work: sage: f.roots(ring=GF(7)) [] sage:

[sage-support] Re: equation vs. equality

2010-01-28 Thread Harald Schilly
On Jan 28, 11:50 am, Simon King simon.k...@nuigalway.ie wrote: And for solving modulo something, this should work: sage: f.roots(ring=GF(7)) [] sage: f.roots(ring=GF(5)) [(4, 1), (3, 2)] Just because I tried and failed, could this also be made possible for polynomials in more than 1

[sage-support] Creating real number from iterator on infinite list ?

2010-01-28 Thread ablondin
Hello, everyone, I would like to create a real number from its continued fraction expansion. I know it is possible to call ``CFF([0,1,1,1,1,1,1]).value() `` to have an approximation of the golden ratio, but I would like to pass an iterator as an argument to the function ``CFF(...)`` so that I can

[sage-support] Re: equation vs. equality

2010-01-28 Thread Simon King
Hi Harald, On Jan 28, 11:56 am, Harald Schilly harald.schi...@gmail.com wrote: Just because I tried and failed, could this also be made possible for polynomials in more than 1 variable? I don't know. Would be nice, though. i.e. is there something that can do this? sage: f(x,y) =

[sage-support] Re: Old Notebook retrieval

2010-01-28 Thread Jason Grout
TimP wrote: This is apparently an old subject. My new 4.3 version of SAGE can not open current copies of the notebooks I have in the earlier version of SAGE (4.2.1). The old version seems unable to download current editions of the notebook's worksheets. Or--the new version can't find them.

[sage-support] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
Hi all, it is with pleasure that we (finally) officially release MPIR 1.3.0. It is available at our website http://www.mpir.org/ Please note the following important things: * I have been unable to get any tests to pass on ultrasparc2 machines, including t2 (solaris) and gcc54 (linux). I am

[sage-support] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Dr. David Kirkby
Bill Hart wrote: Hi all, it is with pleasure that we (finally) officially release MPIR 1.3.0. It is available at our website http://www.mpir.org/ Please note the following important things: * I have been unable to get any tests to pass on ultrasparc2 machines, including t2 (solaris) and gcc54

Re: [sage-support] Re: Can Sage handle large integers?

2010-01-28 Thread Martin Rubey
Mike Hansen mhan...@gmail.com writes: I'm not sure whether you saw my answer yet... It shows that you can have full evaluation (as in Python), and still work modulo n. William was just saying that the mod function in mod(2^(2^517)+1,84977118993*2^520+1) couldn't easily recognize of the

Re: [sage-support] Re: Can Sage handle large integers?

2010-01-28 Thread Robert Bradshaw
On Jan 28, 2010, at 11:14 AM, Martin Rubey wrote: Mike Hansen mhan...@gmail.com writes: I'm not sure whether you saw my answer yet... It shows that you can have full evaluation (as in Python), and still work modulo n. William was just saying that the mod function in

[sage-support] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Dr. David Kirkby
Bill Hart wrote: Hi all, it is with pleasure that we (finally) officially release MPIR 1.3.0. It is available at our website http://www.mpir.org/ Please note the following important things: * I have been unable to get any tests to pass on ultrasparc2 machines, I've just tried on an

[sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
2010/1/28 Dr. David Kirkby david.kir...@onetel.net: Bill Hart wrote: Hi all, it is with pleasure that we (finally) officially release MPIR 1.3.0. It is available at our website http://www.mpir.org/ Please note the following important things: * I have been unable to get any tests to pass

[sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
2010/1/28 Dr. David Kirkby david.kir...@onetel.net: Bill Hart wrote: Hi all, it is with pleasure that we (finally) officially release MPIR 1.3.0. It is available at our website http://www.mpir.org/ Please note the following important things: * I have been unable to get any tests to pass

[sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
So on t2 there is no /usr/local/lib/sparcv9, so that's a bit useless! Does this mean t2 is not capable of running 64 bit binaries? 2010/1/28 Dr. David Kirkby david.kir...@onetel.net: Bill Hart wrote: Hi all, it is with pleasure that we (finally) officially release MPIR 1.3.0. It is

[sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
On t2 all the tests fail, complaining of the same issue. If I actually go into the tests directory and run one of the test scripts directly, here is what it does: ./t-modlinv ld.so.1: t-modlinv: fatal: libmpir.so.8: open failed: No such file or directory Killed So let's see what the script does:

[sage-support] Re: MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
I forgot to mention, the long deprecated function mpz_random has also finally been removed. Bill. 2010/1/28 Bill Hart goodwillh...@googlemail.com: Hi all, it is with pleasure that we (finally) officially release MPIR 1.3.0. It is available at our website http://www.mpir.org/ Please note

[sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Craig Citro
So it can't find libmpir.so.8. But I don't see why. echo $LD_LIBRARY_PATH /usr/lib/sparcv9:/home/wbhart/mpir-1.3.0/.libs Total random guess: could it be that you need this to be in your DYLD_LIBRARY_PATH, too? -cc -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
As far as I know that is only necessary on OS X. Anyhow, I tried it just in case, and no change. Thanks for the suggestion though. Bill. 2010/1/28 Craig Citro craigci...@gmail.com: So it can't find libmpir.so.8. But I don't see why. echo $LD_LIBRARY_PATH

[sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
OK, on gcc54 only the C++ tests fail. But they always did. There is actually a library missing from the machine which is needed to run binaries compiled by the C++ compiler. All the C test binaries pass on gcc54. So the only issue is actually on t2. Basically I think there is a whole pile of

Re: [sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Dr. David Kirkby
Bill Hart wrote: 2010/1/28 Dr. David Kirkby david.kir...@onetel.net: The problem is that 64-bit libraries should never be in /usr/local/lib. Instead they should be in /usr/local/lib/sparcv9. I am not installing MPIR on these machines, as I do not have root access on either. Thus whatever is

Re: [sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Dr. David Kirkby
Bill Hart wrote: So on t2 there is no /usr/local/lib/sparcv9, so that's a bit useless! Does this mean t2 is not capable of running 64 bit binaries? No, since gcc is not installed under /usr/local, there is no /usr/local/lib/sparcv9. What few programs do exist in /usr/local are probably just

[sage-support] Re: [sage-edu] probability

2010-01-28 Thread David Joyner
Sorry, I don't know. But I'm cc'ing the sage-support list, whichmight have more people who know more about Sage's functionality for doing probability and statistic computations. On Thu, Jan 28, 2010 at 4:09 PM, michel paul mpaul...@gmail.com wrote: Next week we start probability, and I'm

Re: [sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
2010/1/28 Dr. David Kirkby david.kir...@onetel.net: Bill Hart wrote: 2010/1/28 Dr. David Kirkby david.kir...@onetel.net: The problem is that 64-bit libraries should never be in /usr/local/lib. Instead they should be in /usr/local/lib/sparcv9. I am not installing MPIR on these machines, as

Re: [sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread Bill Hart
One sensible solution would seem to be to set LD_LIBRARY_PATH_64=/usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 on t2, but this actually doesn't seem to work. I'm not sure why. However it seems that one can just add /usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 to the LD_LIBRARY_PATH (it doesn't

[sage-support] sagenb - logged on but can't edit published notebooks

2010-01-28 Thread Bruce Cohen
I am logged on as math.cohen, and can edit my notebooks. I can see all of the published notebooks, but when I click edit a copy I get error messages. e.g. http://sagenb.org/home/pub/1445/ edit leads to http://sagenb.org/home/pub/1445/edit_published_page The worksheet operation

[sage-support] examples of using R

2010-01-28 Thread Ondrej Certik
Hi, are there some examples how to use R from Sage? I tried to search here: http://www.sagemath.org/help.html http://www.sagemath.org/doc/reference/ I also tried to search sage-devel, for R and R statistics and R statistical, but didn't find anything. So the next time, I'll at least find my

Re: [sage-support] sagenb - logged on but can't edit published notebooks

2010-01-28 Thread William Stein
On Thu, Jan 28, 2010 at 5:37 PM, Bruce Cohen math.co...@gmail.com wrote: I am logged on as math.cohen, and can edit my notebooks.  I can see all of the published notebooks, but when I click edit a copy I get error messages. e.g. http://sagenb.org/home/pub/1445/ edit leads to

Re: [sage-support] Re: [mpir-devel] Re: [sage-devel] MPIR 1.3.0 released (at last)

2010-01-28 Thread David Kirkby
On 28 January 2010 23:46, Bill Hart goodwillh...@googlemail.com wrote: One sensible solution would seem to be to set LD_LIBRARY_PATH_64=/usr/local/gcc-4.4.1-sun-linker/lib/sparcv9 on t2, but this actually doesn't seem to work. I'm not sure why. However it seems that one can just add