| 1 | initial version |
The error "list index out of range" occurs if solve returns an empty list.
You can capture this exception with a try except statement:
try:
C = circle((sol[1][0].rhs(),sol[1][1].rhs()),sol[1][2].rhs())
except:
pass
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.