Re: [sage-support] Re: Sage Install Matrix Problem

2013-11-14 Thread Santanu Sarkar
Thanks a lot. My version was Ubuntu 12.04. Now I can fix the problem. On 9 October 2013 15:56, Dima Pasechnik wrote: > On 2013-10-09, Santanu Sarkar wrote: > > I have installed sage 5.11 in the following way. > > > > santanu@santanu-Compaq-Presario-C700-Notebook-PC > :~/Desktop/sage-5.11-linu

[sage-support] Segmentation fault in ElimLin

2013-11-14 Thread sea21
Hi, I am trying to perform ElimLin on the PRESENT polynomial system of equations generated by present.py written by Martin Albrecht (available here: https://bitbucket.org/malb/research-snippets/src/0b91079cf8b2e71141dc800b811173c8b1f5dd02/present.py?at=default) I followed exactly the same co

[sage-support] Re: Log plots of points are blank when given small values

2013-11-14 Thread kcrisman
On Thursday, November 14, 2013 12:09:39 PM UTC-5, scma...@gmail.com wrote: > > This is mentioned in http://trac.sagemath.org/ticket/13430#comment:1, but > it is later stated that this is fixed by > http://trac.sagemath.org/ticket/13528. However, it appears that this > latter ticket was never a

Re: [sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread Georgi Guninski
On Thu, Nov 14, 2013 at 05:36:29PM +0100, Jeroen Demeyer wrote: > On 2013-11-14 12:40, Julian Rüth wrote: > > So this is a bug indeed. > Cremona already confirmed it is a bug, are you an ultrafinitarist about Qp() ? -- You received this message because you are subscribed to the Google Groups "

[sage-support] Log plots of points are blank when given small values

2013-11-14 Thread scmancuso
This is mentioned in http://trac.sagemath.org/ticket/13430#comment:1, but it is later stated that this is fixed by http://trac.sagemath.org/ticket/13528. However, it appears that this latter ticket was never applied, as the problem still exists in version 5.12. Since the ticket listing the prob

Re: [sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread Jeroen Demeyer
On 2013-11-14 12:40, Julian Rüth wrote: I do not know pari well but it seems to me that factorpadic() treats the input as an exact polynomial. As such t^2+241*t+1 is squarefree. I just sent a question to the pari-users list and that's exactly what happens: if you input an exact polynomial, it wi

Re: [sage-support] Factorial Carry Value in Python

2013-11-14 Thread Christophe Bal
Hello, I would do it like that. I think that in the question the 0! must be change to 1!. _ = """ S = u_1*(n - 1)! + u_2*(n - 2)! + ... + u_{n - 2}*2! + u_{n - 1}*1! S = [[ ... [[u_1*(n - 1) + u_2]*(n - 2)] + ... + u_{n - 2}] ... ]]*2 + u_{n - 1} """ def factrep(S): ans = [] d = 2

Re: [sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread Georgi Guninski
On Thu, Nov 14, 2013 at 01:44:02PM +0100, Jeroen Demeyer wrote: > On 2013-11-14 10:28, Georgi Guninski wrote: > >This appears a bug to me: > I would say it's not a bug. The problem is that your question "does > pol have a zero near 1?" depends on what's hidden in the O(3^5). > > For example: (t-1)

[sage-support] Re: Color in html output and rounding matrices

2013-11-14 Thread Jason Grout
On 11/14/13 7:57 AM, kcrisman wrote: But... just out of curiosity (and related to a recent ask.sagemath question), is it possible to use a stylesheet in any way in the cell or notebook? Presumably it would have to be linked from the body, not quite standards-compliant... (The question on ask is

[sage-support] Re: Color in html output and rounding matrices

2013-11-14 Thread kcrisman
On Thursday, November 14, 2013 3:01:02 AM UTC-5, Jason Grout wrote: > > On 11/13/13 9:45 PM, Jotace wrote: > > Hello to everyone, > > > > I was trying to make some camputational tool for my students, to allow > > them to compute powers of matrices quickly. I made a tiny htm page with > > som

Re: [sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread Jeroen Demeyer
On 2013-11-14 10:28, Georgi Guninski wrote: This appears a bug to me: I would say it's not a bug. The problem is that your question "does pol have a zero near 1?" depends on what's hidden in the O(3^5). For example: (t-1)^2 - 3^6 does have a zero near 1, but (t-1)^2 - 3^7 does not have a zero

RE: [sage-support] Factorial Carry Value in Python

2013-11-14 Thread Anthony Wickstead
I know of nothing built in to Sage, but this is easy to write. The following seems to work, even if it isn't very elegant: def factrep(nn): n=nn i=1 while factorial(i)<=n: i+=1 i-=1 ans=[] while i>0: d=n//factorial(i) ans.append(d) n-=d*fact

Re: [sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread Julian Rüth
* Georgi Guninski [2013-11-14 12:01:44 +0200]: > On Thu, Nov 14, 2013 at 09:39:58AM +, John Cremona wrote: > > On 14 November 2013 09:28, Georgi Guninski wrote: > > > This appears a bug to me: > > > > > > sage: Kz.=Qp(3,5)[];pol=t**2-2*t+1;ro=pol.roots(multiplicities=0);ro > > > [] > > > sag

Re: [sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread Georgi Guninski
On Thu, Nov 14, 2013 at 09:39:58AM +, John Cremona wrote: > On 14 November 2013 09:28, Georgi Guninski wrote: > > This appears a bug to me: > > > > sage: Kz.=Qp(3,5)[];pol=t**2-2*t+1;ro=pol.roots(multiplicities=0);ro > > [] > > sage: pol(1) > > O(3^5) > > I agree -- even I can solve (t-1)^2=0

Re: [sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread John Cremona
On 14 November 2013 09:28, Georgi Guninski wrote: > This appears a bug to me: > > sage: Kz.=Qp(3,5)[];pol=t**2-2*t+1;ro=pol.roots(multiplicities=0);ro > [] > sage: pol(1) > O(3^5) I agree -- even I can solve (t-1)^2=0. Perhaps the code does not correctly do an initial squarefree division? John

[sage-support] Bug in polynomia roots in Qp()

2013-11-14 Thread Georgi Guninski
This appears a bug to me: sage: Kz.=Qp(3,5)[];pol=t**2-2*t+1;ro=pol.roots(multiplicities=0);ro [] sage: pol(1) O(3^5) -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an em

[sage-support] Re: using cell server with moodle (problem with

2013-11-14 Thread Jason Grout
On 11/13/13 6:28 PM, mbuffa...@gmail.com wrote: Yes the html editor in moodle escape < i.e. if 1<2: print 'hi' is converted automatically if 1<2: print 'hi' however the code in written with one line, i.e. I am unable to insert multi-lines using only Moreover string enclosed with "" do

[sage-support] Re: Color in html output and rounding matrices

2013-11-14 Thread Jason Grout
On 11/13/13 9:45 PM, Jotace wrote: Hello to everyone, I was trying to make some camputational tool for my students, to allow them to compute powers of matrices quickly. I made a tiny htm page with some text giving explanations, and the following code embedden in a one-cell script DEF=[[0.25,0.5