Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium Evalf
New issue 3243 by [email protected]: evalf doesn't do it
http://code.google.com/p/sympy/issues/detail?id=3243
In [277]: print f
alpha*lamda + lamda**4 + lamda**3*(alpha/2 + 1/2) + lamda**2 + 1/4
In [278]: print solve(f.subs(alpha, -0.139), lamda)
[-0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75038 -
0.5*(-0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75023 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75029 - 0.107625,
0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75067 -
0.5*(0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75044 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75050 - 0.107625,
-0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75096 +
0.5*(-0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75081 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75087 - 0.107625,
0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75125 +
0.5*(0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75102 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75108 - 0.107625]
In [279]: print [i.evalf() for i in solve(f.subs(alpha, -0.139), lamda)]
[-0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75154 -
0.5*(-0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75139 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75145 - 0.107625,
0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75183 -
0.5*(0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75160 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75166 - 0.107625,
-0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75212 +
0.5*(-0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75197 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75203 - 0.107625,
0.5*(-0.620334104166667 + 0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75241 +
0.5*(0.68855383184375*(-0.620334104166667 +
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333 + 2.0*(-0.031687033130787 +
0.0236807235500153*I)**0.333333333333333)**_75218 - 1.24066820833333 -
2.0*(-0.031687033130787 + 0.0236807235500153*I)**0.333333333333333 -
0.232195472222222*(-20.2493144476345 -
15.1329540866943*I)**0.333333333333333)**_75224 - 0.107625]
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.