Skip to content
Snippets Groups Projects
Commit 406599d6 authored by Martin Bauer's avatar Martin Bauer
Browse files

new lbm module: creation function for moment based methods (SRT, TRT, MRT)

parent 650d2ead
Branches
Tags
No related merge requests found
......@@ -326,3 +326,7 @@ def matrixFromColumnVectors(columnVectors):
c = columnVectors
return sp.Matrix([list(c[i]) for i in range(len(c))]).transpose()
def commonDenominator(expr):
denominators = [r.q for r in expr.atoms(sp.Rational)]
return sp.lcm(denominators)
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