Skip to content

Commit

Permalink
Disable printing of equations of motion.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Dec 4, 2024
1 parent 3ecde62 commit f18bf3f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions src/lagrangian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
10 changes: 5 additions & 5 deletions src/lagrangian_degenerate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit f18bf3f

Please sign in to comment.