bmad-sim / NonlinearNormalForm.jl

Nonlinear normal form analysis using truncated power series
https://bmad-sim.github.io/NonlinearNormalForm.jl/
GNU General Public License v3.0
1 stars 0 forks source link

Have function to print matrix associated with checksymp() #7

Closed DavidSagan closed 5 months ago

DavidSagan commented 6 months ago

This is helpful since looking at the significantly nonzero terms in this matrix gives clues as to where the non-symplecticity is happening.

mattsignorelli commented 6 months ago

Currently my checksymp returns 1-norm of transpose(M)JM - J. I'm thinking about instead making checksymp just return the matrix transpose(M)JM - J , and then the user could calculate the norm if it is to be a quantified as just a single scalar number. How does that sound?

DavidSagan commented 6 months ago

Yes that sounds more modular. Do it.

mattsignorelli commented 5 months ago

added in latest commit 6a87b1f