Skip to content

Instantly share code, notes, and snippets.

@escherize

escherize/teaser.py

Created Jun 12, 2019
Embed
What would you like to do?
import numpy as np
a = np.array([[6, 0, 0], [2, 2, 2], [0, 1, 3]])
b = np.array([30, 20, 13])
[shoe, boy, whistle] = np.linalg.solve(a,b)
print("\nshoe=", shoe, "\nboy=", boy, "\nwhistle=", whistle)
print("shoe + boy * whistle = ", shoe + boy * whistle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.