Comment #10 on issue 604 by idichekop: write tests for p = x**3+2*x**2+8; r = roots(p, x); http://code.google.com/p/sympy/issues/detail?id=604
Hello all, I wanted to shoot this issue here, but when just trying it out I became the following output: ======= In [67]: p = x**3+2*x**2+8 In [68]: r = roots(p,x) In [69]: a = r[0].evalf() --------------------------------------------------------------------------- KeyError Traceback (most recent call last) C:\Python26\Lib\site-packages\<ipython console> in <module>() KeyError: 0 In [70]: r Out[70]: {-2/3 - 4/(9*(116/27 + 4*93**(1/2)/9)**(1/3)) - (116/27 + 4*93**(1/2)/9)**(1/3): 1, -2/3 + 4/(9*(1/2 + I*3**(1/2)/2)*(116/27 + 4*93**(1/2)/9)**(1/3)) + (116/27 + 4 *93**(1/2)/9)**(1/3)/2 + I*3**(1/2)*(116/27 + 4*93**(1/2)/9)**(1/3)/2: 1, -2/3 + 4/(9*(1/2 - I*3**(1/2)/2)*(116/27 + 4*93**(1/2)/9)**(1/3)) + (116/27 + 4 *93**(1/2)/9)**(1/3)/2 - I*3**(1/2)*(116/27 + 4*93**(1/2)/9)**(1/3)/2: 1} In [71]: ========== Apparently, I cannot use "r[0]" here. What am I doing wrong. As I said, when this is clear, this test is mine to write :D! Best, Julio -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-iss...@googlegroups.com. To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.