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

2013-12-12 Thread kcrisman
> > > > There should be a button that has 101010 in it that, if you highlight a > > whole section of (usually cut-and-pasted) code and then click it, will > move > > it all in four spaces. > > Yes, that worked! It would never have occurred to me. I tried > clicking that 0101 button (totally

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

2013-12-12 Thread Jason Grout
On 12/12/13, 11:32 AM, john_perry_usm wrote: Does the zorder option do what you want? No, because they are making two different plots with the two different show() calls. John's solution should work, though. Jason -- You received this message because you are subscribed to the Google Group

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

2013-12-12 Thread john_perry_usm
Does the zorder option do what you want? On Wednesday, December 11, 2013 4:20:51 PM UTC-6, 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 w

[sage-support] Spurious numerical solutions of polynomial equation

2013-12-12 Thread AWWQUB
Consider the equation *(I*x^51+sum(x^k,k,0,50))==0* Try to solve it numerically using *solve([(I*x^51+sum(x^k,k,0,50))==0,x==x],x,solution_dict=True)* and you obtain 51 solutions of which 50 have modulus approximately 1 and the other is close to 1+I. Substituting back gives residuals of around at

Re: [sage-support] Can I change QQ[sqrt(a),sqrt(b)] to QQ[\alpha] ?

2013-12-12 Thread luisfe
> > > Nevermind, I found it. > > Call K2.structure() for the maps. > > Thank you! > > Moreover, you can register these isomorphisms as coercions. I do not recommend the following for noninteractive scripts. But I find it very convenient: sage: K=QQ[sqrt(2),sqrt(3)] sage: s2,s3=K.gens() sage:

Re: [sage-support] Can I change QQ[sqrt(a),sqrt(b)] to QQ[\alpha] ?

2013-12-12 Thread Georgi Guninski
On Thu, Dec 12, 2013 at 03:06:46PM +0200, Georgi Guninski wrote: > On Thu, Dec 12, 2013 at 12:21:14PM +, John Cremona wrote: > > On 12 December 2013 12:12, Georgi Guninski wrote: > > > Suppose I work in QQ[sqrt(a),sqrt(b)] > > > where a and b are integer non-squares. > > > > > > Can I change i

Re: [sage-support] Can I change QQ[sqrt(a),sqrt(b)] to QQ[\alpha] ?

2013-12-12 Thread Georgi Guninski
On Thu, Dec 12, 2013 at 12:21:14PM +, John Cremona wrote: > On 12 December 2013 12:12, Georgi Guninski wrote: > > Suppose I work in QQ[sqrt(a),sqrt(b)] > > where a and b are integer non-squares. > > > > Can I change it to something isomorphic to QQ[\alpha] > > where \alpha is algebraic, i.e.,

Re: [sage-support] Can I change QQ[sqrt(a),sqrt(b)] to QQ[\alpha] ?

2013-12-12 Thread John Cremona
On 12 December 2013 12:12, Georgi Guninski wrote: > Suppose I work in QQ[sqrt(a),sqrt(b)] > where a and b are integer non-squares. > > Can I change it to something isomorphic to QQ[\alpha] > where \alpha is algebraic, i.e., work with a conventional > NumberField with a single defining polynomial >

[sage-support] Can I change QQ[sqrt(a),sqrt(b)] to QQ[\alpha] ?

2013-12-12 Thread Georgi Guninski
Suppose I work in QQ[sqrt(a),sqrt(b)] where a and b are integer non-squares. Can I change it to something isomorphic to QQ[\alpha] where \alpha is algebraic, i.e., work with a conventional NumberField with a single defining polynomial without extending the NumberField? Suspect this is impossible.

[sage-support] Re: using the value of a symbolic expression

2013-12-12 Thread jean-pat
thank you for your help, Doing print sol[0].rhs() failed on http://sagecell.sagemath.org with the message: AttributeError: 'Sequence_generic' object has no attribute 'roots' But the first method worked Le jeudi 12 décembre 2013 10:56:38 UTC+1, jean-pat a écrit : > > Hello, > After having sol

Re: [sage-support] using the value of a symbolic expression

2013-12-12 Thread Vincent Knight
You can do two things jeanpat: 1: sol=solve(2*x+1==7,x, solution_dict=True) print sol # sol is a list of dictionaries (key: variables, value: solution value) print sol[0][x] 2: sol=solve(2*x+1==7,x) print sol # sol is a list of equations print sol[0].rhs() # takes the first (and only on this

Re: [sage-support]

2013-12-12 Thread John Cremona
That curve has conductor 2494467317425210453973012^5 * 3^2 * 5^2 * 11^2 * 23^2 * 37^2 * 43^2 * 47^2 * 59^2 * 67^2 * 109^2 * 131^2 * 313^2 * 331^2 * 1091^2 * 4969^2 * 17417^2 * 58067^2 * 143999^2 * 194867^2 * 3498947^2 * 3125399477531^20540583473729081029784399618848947328880459864649161571321811580

[sage-support] using the value of a symbolic expression

2013-12-12 Thread jean-pat
Hello, After having solved an equation, I'd like to use the result for another calculation (calculating y) or a ploting. How to convert sol into a numerical value? thank you jeanpat sol=solve(2*x+1==7,x) print sol print sol[0], type(sol), type(sol[0]) #y=2*sol+7 #print y #plot(sol,0) -- You

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

2013-12-12 Thread Andrew
Sorry, I didn't see the later posts. It turns out that __contains__ in LyndonWords() use a try-except statement to call LyndonWord(). If you're creating a Word() anyway then the Word(*).is_lyndon() test you found will be more efficient. Andrew On Thursday, 12 December 2013 10:17:06 UTC+1, And

[sage-support]

2013-12-12 Thread raman kurdi
Hi Sage, I want to compute L-function for some elliptic curves. Since the coefficients are somewhat huge I receive an error message. On of them hes been attached. I do not know if there is a special code for such curves. Best, Raman -- You received this message because you are subscribed to the

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

2013-12-12 Thread Andrew
Dear geo909 (I can't believe what some people call their children!) Try: sage: [1,1,2,1,3] in LyndonWords() True sage: [2,1,3,2] in LyndonWords() False Andrew On Wednesday, 11 December 2013 16:22:42 UTC+1, geo909 wrote: > > Hi all, > > From wikipedia: > > *In mathematics, in the areas of combina