| 1 | initial version |
I recommend the option solution_dict=True:
solve returns the solutions as list of python dictionaries and this makes substitution very easy.
var('A,B')
f(x) = A*x + B
sol = solve([f(3) == 5, f(7) == -3], A, B,solution_dict=True)
f.subs(sol[0])
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.