Re: [sage-support] using a base other then base 10.

2012-05-18 Thread D. S. McNeil
The following: sage: z = pi.n(100) sage: z.str(base=4) '3.0210033310202011220300203103010301212022023200' should get you started. Doug -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups

[sage-support] using a base other then base 10.

2012-05-18 Thread Eric Kangas
Hi, I tried finding out how to switch over to another base, but couldn't find any information on how to. Here is the code I have right now for another project. I just need to figure out where to place the base change code. a = 1000 p = list(str(n(pi, digits = a))) p.remove('.') p = [int(i)

Re: [sage-support] Sage-5.0 under solaris 10

2012-05-18 Thread Rob McMahon
On 17/05/2012 20:41, David Kirkby wrote: On 17 May 2012 16:57, Rob McMahon wrote: Answering my own question: it's this line from spkg/build/prereq-1.0/configure{,.ac} if test "x`file $SAGE_FORTRAN_LIB | grep 32-bit | grep \"dynamic lib\" `" = 'x' Having set my path up to get GNU make, it

Re: [sage-support] Re: Sage 5.0 crashing, is unusable

2012-05-18 Thread Dima Pasechnik
On Friday, 18 May 2012 22:36:06 UTC+2, Jeroen Demeyer wrote: > > On 2012-05-18 20:12, kcrisman wrote: > > > > How hard would it be for someone to bdist an app and non-app dmg of Sage > > 5.0 for Intel Core Duo and then just make sure the download page makes > > this clear? This would be a go

[sage-support] bison needed for lie-2.2.2.p3

2012-05-18 Thread Greg Marks
Dear SAGE Developers, When building SAGE from source on a Linux machine, I noticed that the parser generator "bison" is needed in order to install the database lie-2.2.2.p3. Perhaps you might consider mentioning bison along with the development tools listed (gcc, make, m4, perl, ranlib, tar) in t

Re: [sage-support] Re: Sage 5.0 crashing, is unusable

2012-05-18 Thread Jeroen Demeyer
On 2012-05-18 20:12, kcrisman wrote: > > How hard would it be for someone to bdist an app and non-app dmg of Sage > 5.0 for Intel Core Duo and then just make sure the download page makes > this clear? This would be a good stopgap solution. Presumably others > might download it and then just deci

Re: [sage-support] Re: run sage directly from terminal

2012-05-18 Thread arshpreet singh
>> Since you talked about moving a script and changing SAGE_ROOT, I figured >> you were an expert! >> >> You will probably have a file called .profile or .bashrc in your home >> directory.  It depends on what "shell" you use, or if you have a Mac or >> Linux, or some other things.  If you add a lin

Re: [sage-support] Re: `maximum recursion depth exceeded` when starting notebook in sage-5.0

2012-05-18 Thread Benjamin Jones
On Fri, May 18, 2012 at 2:08 PM, Jason Grout wrote: > On 5/18/12 1:19 PM, Benjamin Jones wrote: >> >> When starting up the sage-5.0 notebook (with the new notebook from trac >> #11080 and the sagecell-0.9.0 spkg installed) with >> directory='/home/sageserver/sage_notebook.sagenb' pointing to a not

Re: [sage-support] Re: run sage directly from terminal

2012-05-18 Thread Daniel Krenn
Am Freitag, 18. Mai 2012 21:16:08 UTC+2 schrieb kcrisman: > On Friday, May 18, 2012 2:49:49 PM UTC-4, arshpreet singh wrote: >> >> > If you just append the right directory to your PATH in a .bashrc or >> .profile >> > that should work. I have >> > >> > export PATH=$PATH:'/Applications/MathApp

Re: [sage-support] Re: run sage directly from terminal

2012-05-18 Thread kcrisman
On Friday, May 18, 2012 2:49:49 PM UTC-4, arshpreet singh wrote: > > > If you just append the right directory to your PATH in a .bashrc or > .profile > > that should work. I have > > > > export PATH=$PATH:'/Applications/MathApps/' > > > > (which is where I create a symbolic link to my Sage

[sage-support] Re: `maximum recursion depth exceeded` when starting notebook in sage-5.0

2012-05-18 Thread Jason Grout
On 5/18/12 1:19 PM, Benjamin Jones wrote: When starting up the sage-5.0 notebook (with the new notebook from trac #11080 and the sagecell-0.9.0 spkg installed) with directory='/home/sageserver/sage_notebook.sagenb' pointing to a notebook directory containing many existing user accounts and worksh

Re: [sage-support] Re: run sage directly from terminal

2012-05-18 Thread arshpreet singh
> If you just append the right directory to your PATH in a .bashrc or .profile > that should work.  I have > > export PATH=$PATH:'/Applications/MathApps/' > > (which is where I create a symbolic link to my Sage, but whatever) in my > .profile file.  You probably can do something similar.  The error

[sage-support] `maximum recursion depth exceeded` when starting notebook in sage-5.0

2012-05-18 Thread Benjamin Jones
When starting up the sage-5.0 notebook (with the new notebook from trac #11080 and the sagecell-0.9.0 spkg installed) with directory='/home/sageserver/sage_notebook.sagenb' pointing to a notebook directory containing many existing user accounts and worksheets from a previous sage-4.7.1 install,

[sage-support] Re: run sage directly from terminal

2012-05-18 Thread kcrisman
> > > i want to run sage directly from terminal by typing sage so for this i > changed the SAGE_ROOT path in sage script and placed it to > /usr/local/bin but after typing sage in terminal i am getting the > following output.please help to reply this > > If you just append the right directory

Re: [sage-support] Re: Sage 5.0 crashing, is unusable

2012-05-18 Thread kcrisman
How hard would it be for someone to bdist an app and non-app dmg of Sage 5.0 for Intel Core Duo and then just make sure the download page makes this clear? This would be a good stopgap solution. Presumably others might download it and then just decide not to bother getting it once it causes

Re: [sage-support] Re: Sage 5.0 crashing, is unusable

2012-05-18 Thread Niles Johnson
On Friday, May 18, 2012 1:59:02 PM UTC-4, Niles Johnson wrote: > > I have the same problems. > > Hardware Overview: > > Model Name: MacBook Pro > Model Identifier: MacBookPro5,3 > Processor Name: Intel Core 2 Duo > Processor Speed: 2.66 GHz > Number Of Processors

[sage-support] run sage directly from terminal

2012-05-18 Thread arshpreet singh
hello sage and sage users i want to run sage directly from terminal by typing sage so for this i changed the SAGE_ROOT path in sage script and placed it to /usr/local/bin but after typing sage in terminal i am getting the following output.please help to reply this Error: SAGE_ROOT is set to a ba

Re: [sage-support] Re: Sage 5.0 crashing, is unusable

2012-05-18 Thread Niles Johnson
I have the same problems. Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro5,3 Processor Name: Intel Core 2 Duo Processor Speed: 2.66 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 3 MB Memory: 4 GB Bu

Re: [sage-support] IntegerVectors question

2012-05-18 Thread Emil
On 18 May 2012 18:48, Emil wrote: > Looking at the code, the cardinality() is done sensibly for > IntegerVectors_nkconstraints, but not for IntegerVectors_nk, which is > what will be used by default. It should be a simple patch (I can do it > if no-one else wants to) - as the code is essentially a

Re: [sage-support] Re: Sage 5.0 crashing, is unusable

2012-05-18 Thread Dima Pasechnik
By the way, I tried the binary sage-5.0-OSX-64bit-10.6-x86_64-Darwin.dmg on my Mac Air running OSX 10.6.8, and it crashes on sage: int(2.75) as already reported. Here is the machine data: Model Name: MacBook Air Model Identifier: MacBookAir3,2 Processor Name: Intel Core 2 Duo Processor

Re: [sage-support] IntegerVectors question

2012-05-18 Thread Emil
Looking at the code, the cardinality() is done sensibly for IntegerVectors_nkconstraints, but not for IntegerVectors_nk, which is what will be used by default. It should be a simple patch (I can do it if no-one else wants to) - as the code is essentially already there in IntegerVectors_nkconstraint

[sage-support] Sage 5.0 on Ubuntu 12.04 from PPA

2012-05-18 Thread Jan Groenewald
Hi I will update the PPA to sage5 shortly. > This is now available (on Ubuntu 12.04): apt-add-repository -y ppa:aims/sagemath apt-get update apt-get install sagemath-upstream-binary Let me know any problems. Regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ --

[sage-support] Re: Number of digits in html

2012-05-18 Thread Johan Grönqvist
2012-05-18 11:03, Prof. Dr. Ulrich Tipp skrev: If I write the following code X = [0.1, 0.2] html("Values: %s"%X) the output is Values: [10.1, 0.200] How can I suppress the trailing zeros? How can I change the number of digits shown? The % operator between the " and

[sage-support] Number of digits in html

2012-05-18 Thread Prof. Dr. Ulrich Tipp
If I write the following code X = [0.1, 0.2] html("Values: %s"%X) the output is Values: [10.1, 0.200] How can I suppress the trailing zeros? How can I change the number of digits shown? -- To post to this group, send email to sage-support@googlegroups.com To unsubs

[sage-support] Re: Unintuitive behavior of round()

2012-05-18 Thread Daniel Krenn
This is now #12968 . (I couldn't find a ticket for it, but the problem was documented in the source code (see other answers to that posting). Does someone know that there is a ticket for it already?) Am Sonntag, 13. Mai 2012 18:50:11 UTC+2 schrie

[sage-support] Re: error in comparison of pi

2012-05-18 Thread Daniel Krenn
This is now #12967 . Am Freitag, 11. Mai 2012 10:58:53 UTC+2 schrieb Robert Samal: > > Hi! > > By some random experiments I discovered the following weirdness: > > sage: bool(pi False > sage: bool(pi>Infinity) > True > > So far it seems that pi <

Re: [sage-support] IntegerVectors question

2012-05-18 Thread David Loeffler
The size of this set is the binomial coefficient (m + n - 1) choose ( n - 1 ). David On 17 May 2012 14:26, Martin Albrecht wrote: > Hi, > > currently when running e.g. > > sage: IV53 = IntegerVectors(5,3) # length 3 vectors that sum to 5 > sage: IV53.cardinality() > > The algorithm is simply to