Skip to content
Snippets Groups Projects
example_coefficient_matrix.py 469 B
Newer Older
Hannes Dänschel's avatar
Hannes Dänschel committed
from algebraic_hbm import softening_Duffing, Algebraic_HBM
Hannes Dänschel's avatar
Hannes Dänschel committed
# Initialize HBM for a softening Duffing oscillator and ansatz order 'n=1'.
HBM = Algebraic_HBM(ODE=softening_Duffing, order=n)

# Generate multivariate polynomials.
HBM.generate_multivariate_polynomials()

# Get monomial coefficient matrix for Macauly matrix framework 
# evaluated at a given excitation frequency 'a'
A = HBM.get_monomial_coefficient_matrix(a)