@@ -73,7 +73,7 @@ struct Leapfrog{T<:AbstractScalarOrVec{<:AbstractFloat}} <: AbstractLeapfrog{T}
73
73
ϵ:: T
74
74
end
75
75
function 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 ), " )" )
77
77
end
78
78
integrator_eltype (i:: AbstractLeapfrog{T} ) where {T<: AbstractFloat } = T
79
79
@@ -123,7 +123,12 @@ JitteredLeapfrog(ϵ0, jitter) = JitteredLeapfrog(ϵ0, jitter, ϵ0)
123
123
function Base. show (io:: IO , mime:: MIME"text/plain" , l:: JitteredLeapfrog )
124
124
return print (
125
125
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 ),
127
132
)
128
133
end
129
134
176
181
function Base. show (io:: IO , mime:: MIME"text/plain" , l:: TemperedLeapfrog )
177
182
return print (
178
183
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 ),
180
188
)
181
189
end
182
190
0 commit comments