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
thank you
On 9 déc, 12:52, achrzesz wrote:
> On Dec 9, 12:18 pm, David Joyner wrote:
>
>
>
>
>
>
>
>
>
> > This is a question for sage-support, which I am ccing.
>
> > On Fri, Dec 9, 2011 at 5:04 AM, Jean-Patrick Pommier
>
> > wrote:
> > > Hi,
> > > Is it possible to solve equation with complex