@@ -73,7 +73,7 @@ struct Leapfrog{T<:AbstractScalarOrVec{<:AbstractFloat}} <: AbstractLeapfrog{T}
7373 ϵ:: T
7474end
7575function Base. show (io:: IO , mime:: MIME"text/plain" , l:: Leapfrog )
76- return print (io, " Leapfrog with step size ϵ=$( round .(l. ϵ; sigdigits= 3 ))" )
76+ return print (io, " Leapfrog with step size ϵ=" , round .(l. ϵ; sigdigits= 3 ), " )" )
7777end
7878integrator_eltype (i:: AbstractLeapfrog{T} ) where {T<: AbstractFloat } = T
7979
@@ -123,7 +123,12 @@ JitteredLeapfrog(ϵ0, jitter) = JitteredLeapfrog(ϵ0, jitter, ϵ0)
123123function Base. show (io:: IO , mime:: MIME"text/plain" , l:: JitteredLeapfrog )
124124 return print (
125125 io,
126- " JitteredLeapfrog with step size $(round .(l. ϵ0; sigdigits= 3 )) , jitter $(round .(l. jitter; sigdigits= 3 )) , jittered step size $(round .(l. ϵ; sigdigits= 3 )) " ,
126+ " JitteredLeapfrog with step size " ,
127+ round .(l. ϵ0; sigdigits= 3 ),
128+ " , jitter " ,
129+ round .(l. jitter; sigdigits= 3 ),
130+ " , jittered step size " ,
131+ round .(l. ϵ; sigdigits= 3 ),
127132 )
128133end
129134
176181function Base. show (io:: IO , mime:: MIME"text/plain" , l:: TemperedLeapfrog )
177182 return print (
178183 io,
179- " TemperedLeapfrog with step size ϵ=$(round .(l. ϵ; sigdigits= 3 )) and temperature parameter α=$(round .(l. α; sigdigits= 3 )) " ,
184+ " TemperedLeapfrog with step size ϵ=" ,
185+ round .(l. ϵ; sigdigits= 3 ),
186+ " and temperature parameter α=" ,
187+ round .(l. α; sigdigits= 3 ),
180188 )
181189end
182190
0 commit comments