File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ r(z) = \\frac{\\det(I-zA+zeb^T)}{\\det(I-zA)}
18
18
stability_region (z,tab:: ODERKTableau ) = det (eye (tab. stages)- z* tab. A + z* ones (tab. stages)* tab. α' )/ det (eye (tab. stages)- z* tab. A)
19
19
20
20
"""
21
- `stability_region(tab::ODERKTableau)`
21
+ `stability_region(tab::ODERKTableau; initial_guess=-3.0 )`
22
22
23
23
Calculates the length of the stability region in the real axis.
24
24
"""
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ using Base.Test
7
7
@time @testset " Analyticless Convergence Tests" begin include (" analyticless_convergence_tests.jl" ) end
8
8
@time @testset " ODE Tableau Convergence Tests" begin include (" ode_tableau_convergence_tests.jl" ) end # # Windows 32-bit fails on Butcher62 convergence test
9
9
@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
Original file line number Diff line number Diff line change 1
1
using DiffEqDevTools, Base. Test
2
2
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
You can’t perform that action at this time.
0 commit comments