Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The following works (although, there might be a nicer solution):

sage: m = {}

sage: for eq in sol:
....: m[eq.lhs()]=eq.rhs()

The following works (although, there might be a nicer solution):

sage: m = {}

sage: for eq in sol:
sol: ....: m[eq.lhs()]=eq.rhs()

m[eq.lhs()]=eq.rhs() sage: model.subs(m) x |--> -2.0000000000000031*x^3 + 14.500000000000021*x^2 - 31.500000000000046*x + 23.000000000000028