Skip to content

Commit

Permalink
add more generic ho docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
emptymalei committed Feb 20, 2024
1 parent dcb5d68 commit 3942047
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hamiltonian_flow/models/harmonic_oscillator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ class HarmonicOscillator:
The solution to the above harmonic oscillator is
$$
x(t) = \left( x_0 \cos(\Omega t) + \frac{\zeta \omega x_0 + v_0}{\Omega} \sin(\Omega t) \right)
e^{-\zeta \omega t},
$$
where
$$
\Omega = \omega\sqrt{ 1 - \zeta^2}.
$$
Expand Down

0 comments on commit 3942047

Please sign in to comment.