CoCalc Public Fileslevel91.ipynbOpen with one click!
Author: Harald Schilly
Views : 75
Compute Environment: Ubuntu 18.04 (Deprecated)
In [1]:
a, b = var('a, b')
In [2]:
eq = [ a * 5 + b * 3 == 25, a * 7 + b * 1 == 3, a * 9 + b * 4 == 31, ]
In [3]:
sol = solve(eq, [a, b], solution_dict = True) sol
[{a: -1, b: 10}]
In [4]:
subs = sol[0]
In [5]:
6 * subs[a] + 6 * subs[b]
54
In [ ]: