From f18bf3fd44ecfe1e0e22058a01d7cf61ac6c505a Mon Sep 17 00:00:00 2001 From: Michael Kraus Date: Wed, 4 Dec 2024 14:39:37 +0100 Subject: [PATCH] Disable printing of equations of motion. --- src/hamiltonian.jl | 10 +++++----- src/lagrangian.jl | 10 +++++----- src/lagrangian_degenerate.jl | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/hamiltonian.jl b/src/hamiltonian.jl index e59d9c7..af2afed 100644 --- a/src/hamiltonian.jl +++ b/src/hamiltonian.jl @@ -83,11 +83,11 @@ function Base.show(io::IO, hsys::HamiltonianSystem) print(io, "\nHamiltonian system with\n") print(io, "\nH = ") print(io, hamiltonian(hsys)) - print(io, "\n\nand equations of motion\n\n") - for eq in equations(hsys).EH - print(io, eq) - print(io, "\n") - end + # print(io, "\n\nand equations of motion\n\n") + # for eq in equations(hsys).EH + # print(io, eq) + # print(io, "\n") + # end end function hamiltonian_variables(dimension::Int) diff --git a/src/lagrangian.jl b/src/lagrangian.jl index bf29e10..f1c8d61 100644 --- a/src/lagrangian.jl +++ b/src/lagrangian.jl @@ -116,11 +116,11 @@ function Base.show(io::IO, lsys::LagrangianSystem) print(io, "\nLagrangian system with\n") print(io, "\nL = ") print(io, lagrangian(lsys)) - print(io, "\n\nand equations of motion\n\n") - for eq in equations(lsys).EL - print(io, eq) - print(io, "\n") - end + # print(io, "\n\nand equations of motion\n\n") + # for eq in equations(lsys).EL + # print(io, eq) + # print(io, "\n") + # end end diff --git a/src/lagrangian_degenerate.jl b/src/lagrangian_degenerate.jl index 6f9ed89..fa7609f 100644 --- a/src/lagrangian_degenerate.jl +++ b/src/lagrangian_degenerate.jl @@ -96,11 +96,11 @@ function Base.show(io::IO, lsys::DegenerateLagrangianSystem) print(io, "\nDegenerate Lagrangian system with\n") print(io, "\nL = ") print(io, lagrangian(lsys)) - print(io, "\n\nand equations of motion\n\n") - for eq in equations(lsys).EL - print(io, eq) - print(io, "\n") - end + # print(io, "\n\nand equations of motion\n\n") + # for eq in equations(lsys).EL + # print(io, eq) + # print(io, "\n") + # end end