Commit b25d4a85 authored by Martin Bauer's avatar Martin Bauer
Browse files

Quadratic equilibrium construction - demo notebook

parent 51b550f1
......@@ -20,6 +20,11 @@ def scalarProduct(a, b):
return sum(a_i * b_i for a_i, b_i in zip(a, b))
def equationsToMatrix(equations, degreesOfFreedom):
return sp.Matrix(len(equations), len(degreesOfFreedom),
lambda row, col: equations[row].coeff(degreesOfFreedom[col]))
def normalizeProduct(product):
"""
Expects a sympy expression that can be interpreted as a product and
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment