Skip to content

Commit 3961559

Browse files
committed
Use \approx instead of <
1 parent 371763a commit 3961559

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/tableau_info.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ r(z) = \\frac{\\det(I-zA+zeb^T)}{\\det(I-zA)}
1818
stability_region(z,tab::ODERKTableau) = det(eye(tab.stages)- z*tab.A + z*ones(tab.stages)*tab.α')/det(eye(tab.stages)-z*tab.A)
1919

2020
"""
21-
`stability_region(tab::ODERKTableau)`
21+
`stability_region(tab::ODERKTableau; initial_guess=-3.0)`
2222
2323
Calculates the length of the stability region in the real axis.
2424
"""

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ using Base.Test
77
@time @testset "Analyticless Convergence Tests" begin include("analyticless_convergence_tests.jl") end
88
@time @testset "ODE Tableau Convergence Tests" begin include("ode_tableau_convergence_tests.jl") end ## Windows 32-bit fails on Butcher62 convergence test
99
@time @testset "Analyticless Stochastic WP" begin include("analyticless_stochastic_wp.jl") end
10+
@time @testset "Stability Region Tests" begin include("stability_region_test.jl") end

test/stability_region_test.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using DiffEqDevTools, Base.Test
22

3-
@test stability_region(constructDormandPrince6(), initial_guess=-3.5) + 3.95413 < 1e-3
4-
@test stability_region(constructTsitourasPapakostas6(), initial_guess=-3.5) + 3.95413 < 1e-3
5-
@test stability_region(constructRadauIIA5(), initial_guess=12.) - 11.84 < 1e-2
3+
@test stability_region(constructDormandPrince6(), initial_guess=-3.5) -3.95413 rtol=1e-3
4+
@test stability_region(constructTsitourasPapakostas6(), initial_guess=-3.5) -3.95413 rtol=1e-3
5+
@test stability_region(constructRadauIIA5(), initial_guess=12.) 11.84 rtol=1e-2

0 commit comments

Comments
 (0)