[sage-support] Decimal form of a unit converted answer

2012-05-20 Thread Justin
I was wondering what a good way might be to get a decimal answer when using units. For example, say I try For example, say I do #define units ft = units.length.foot m = units.length.meter #add some lengths and output in ft (3*ft + 4*m).convert(units.length.ft) I get back

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

2012-05-20 Thread Keshav Kini
Greg Marks gtma...@gmail.com writes: 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,

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

2012-05-20 Thread Keshav Kini
Keshav Kini keshav.k...@gmail.com writes: Greg Marks gtma...@gmail.com writes: 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

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

2012-05-20 Thread Graham Gerrard
Hi My original version was compiled from source under 11.10 then copied to 12.04, but I would welcome a binary version supported by someone else! Am I trying too soon? Should I delete the current version before attempting recipe below? 50? successful lines then Any thoughts? Graham

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

2012-05-20 Thread Jan Groenewald
Hi Graham, On 20 May 2012 17:58, Graham Gerrard graham.gerr...@gmail.com wrote: Hi My original version was compiled from source under 11.10 then copied to 12.04, but I would welcome a binary version supported by someone else! Am I trying too soon? Should I delete the current version

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

2012-05-20 Thread Graham Gerrard
Thanks Jan Just successfully downloaded. Very impressive! Less than 30 minutes to download and install. Thanks for the encouragement. No sign of previous problems this time. I note that I now have to use sudo sage -i ... to install optional packages to ensure suitable access to the filestore.

[sage-support] Generator of Finite Field

2012-05-20 Thread Oleksandr Kazymyrov
Hello all. I have encountered the following problem In Sage 5.0: sage: R.x=ZZ[] sage: k=GF(2^8,name='a',modulus=x^8+x^4+x^3+x+1) sage: k(ZZ(3).digits(2)) a + 1 sage: k.gen()^ZZ(k(ZZ(3).digits(2)).log_repr()) a sage: k.gen()^ZZ(k(ZZ(3).digits(2)).log_repr()) == k(ZZ(3).digits(2)) False sage:

[sage-support] Methods in GF

2012-05-20 Thread Oleksandr Kazymyrov
Dear all, 1. Why important next functions? k.a_times_b_minus_c k.a_times_b_plus_c k.c_minus_a_times_b sage: k.some_elements ? ... Returns a collection of elements of this finite field *for use in unit testing.* Why this function are defined as public? 2. Also a few misunderstanding

[sage-support] Re: Decimal form of a unit converted answer

2012-05-20 Thread Justin
It turns out the solution is quite simple. (I feel stupid for not figuring this one out on my own) In order to get an answer in decimal form, all i have to do is... #define units ft = units.length.foot m = units.length.meter #add some lengths and convert to ft (3.0*ft +