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])