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 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 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 email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.
