| 1 | initial version |
Sage is trying to iterate over a nested list of solutions when there is only one. Remove the square brackets from your single variable to avoid this:
var('x0')
print solve([2*x0^2], x0)
print solve([2*x0^2], x0, solution_dict=True)
It's fine to use the brackets with multiple variables.
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.