[sage-support] Re: URGENT: Putting a 2d circle into my animation

2013-12-11 Thread John H Palmieri
On Wednesday, December 11, 2013 2:20:51 PM UTC-8, willg...@hotmail.co.uk wrote: > > Please help, my coursework deadline is tomorrow. > I'm doing a piece on circular motion, I have a simple animation of a point > moving in a circle, and a static circle I want the point to move around on > but I

[sage-support] URGENT: Putting a 2d circle into my animation

2013-12-11 Thread willgoodson
Please help, my coursework deadline is tomorrow. I'm doing a piece on circular motion, I have a simple animation of a point moving in a circle, and a static circle I want the point to move around on but I want the circle to sit behind the animation so that it looks like the point is moving aroun

Re: [sage-support] Polynomial question.

2013-12-11 Thread Michael Orlitzky
On 12/11/2013 07:40 AM, Thierry Dumont wrote: > > Ok, this is correct, and seems nice; but I want to evaluate these > polynomials for different values of x, and you cannot evaluate a member > of "Integer Ring" at say, x=1/21... So I need to compute the parent of > polynomials (which possibly are

Re: [sage-support] Re: how to format replies on ask.sagemath.org

2013-12-11 Thread John Cremona
On 11 December 2013 16:28, kcrisman wrote: > > > On Wednesday, December 11, 2013 10:58:37 AM UTC-5, John Cremona wrote: >> >> On 11 December 2013 15:42, P Purkayastha wrote: >> > On 12/11/2013 11:33 PM, John Cremona wrote: >> >> >> >> My answers to questions on ask.sagemath.org would possibly be

Re: [sage-support] Re: how to format replies on ask.sagemath.org

2013-12-11 Thread kcrisman
On Wednesday, December 11, 2013 10:58:37 AM UTC-5, John Cremona wrote: > > On 11 December 2013 15:42, P Purkayastha > > wrote: > > On 12/11/2013 11:33 PM, John Cremona wrote: > >> > >> My answers to questions on ask.sagemath.org would possibly be more > >> helpful if I could work out how to

Re: [sage-support] Re: how to format replies on ask.sagemath.org

2013-12-11 Thread John Cremona
On 11 December 2013 15:42, P Purkayastha wrote: > On 12/11/2013 11:33 PM, John Cremona wrote: >> >> My answers to questions on ask.sagemath.org would possibly be more >> helpful if I could work out how to type stuff into the box so that it >> ends up looking reasonable. It's not wiki markup -- wh

[sage-support] Re: how to format replies on ask.sagemath.org

2013-12-11 Thread P Purkayastha
On 12/11/2013 11:33 PM, John Cremona wrote: My answers to questions on ask.sagemath.org would possibly be more helpful if I could work out how to type stuff into the box so that it ends up looking reasonable. It's not wiki markup -- what is it? Where is it explained? Could there be an faq about

Re: [sage-support] Checking if list of integers is a Lyndon word

2013-12-11 Thread geo909
On Wednesday, December 11, 2013 10:31:03 AM UTC-5, Ivan Andrus wrote: > > On Dec 11, 2013, at 8:22 AM, geo909 > > wrote: > > Hi all, > > From wikipedia: > > *In mathematics, in the areas of combinatorics and computer > science, a Lyndon word is a string that is strictly smaller in > lexicograp

[sage-support] how to format replies on ask.sagemath.org

2013-12-11 Thread John Cremona
My answers to questions on ask.sagemath.org would possibly be more helpful if I could work out how to type stuff into the box so that it ends up looking reasonable. It's not wiki markup -- what is it? Where is it explained? Could there be an faq about it? Please don't answer just by saying "it's

Re: [sage-support] Checking if list of integers is a Lyndon word

2013-12-11 Thread Ivan Andrus
On Dec 11, 2013, at 8:22 AM, geo909 wrote: > Hi all, > > From wikipedia: > In mathematics, in the areas of combinatorics and computer science, a Lyndon > word is a string that is strictly smaller in lexicographic order than all of > its rotations. Lyndon words are named after mathematician Rog

[sage-support] Checking if list of integers is a Lyndon word

2013-12-11 Thread geo909
Hi all, >From wikipedia: *In mathematics, in the areas of combinatorics and computer science, a Lyndon word is a string that is strictly smaller in lexicographic order than all of its rotations. Lyndon words are named after mathematician Roger Lyndon, who introduced them in 1954, calling them

[sage-support] Re: Polynomial question.

2013-12-11 Thread P Purkayastha
On 12/11/2013 08:40 PM, Thierry Dumont wrote: Hello, all, I am going to manipulate Legendre (P) polynomials. So I do something like this: sage: P.=QQ[] sage: #generate de first Lagrange polynomial sage: s=[legendre_P(i,x) for i in [0..2]] sage: print s [1, x, 3/2*x^2 - 1/2] sage: #now, look a

Re: [sage-support] Polynomial question.

2013-12-11 Thread John Cremona
I think that the constructor should return the same type for all values of i even when the result is a constant. It is all too easy to implement functions which behave as you show, when dealing with trivial simple cases: in this case it would be so easy to write at the start of the function "if i=

[sage-support] Polynomial question.

2013-12-11 Thread Thierry Dumont
Hello, all, I am going to manipulate Legendre (P) polynomials. So I do something like this: sage: P.=QQ[] sage: #generate de first Lagrange polynomial sage: s=[legendre_P(i,x) for i in [0..2]] sage: print s [1, x, 3/2*x^2 - 1/2] sage: #now, look at the parents sage: s[0].parent() Integer Ring s

[sage-support] Re: NameError after importing third-party module which calls on ntl

2013-12-11 Thread sea21
I see. It works now. Thanks! On Tuesday, December 3, 2013 12:38:35 AM UTC+8, Nils Bruin wrote: > > On Sunday, December 1, 2013 6:06:42 PM UTC-8, sea21 wrote: >> >> Hi, >> >> I wanted to write a Sage third-party module to generate random numbers. >> The module contains a class which includes a m