From 756d005f718cfd33b9c6dc97caee06d374b122e0 Mon Sep 17 00:00:00 2001 From: ErikQQY <2283984853@qq.com> Date: Sat, 30 Mar 2024 21:45:44 +0800 Subject: [PATCH 1/2] Fix 13th and 17th BVP test problems Signed-off-by: ErikQQY <2283984853@qq.com> --- lib/BVProblemLibrary/src/linear.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/BVProblemLibrary/src/linear.jl b/lib/BVProblemLibrary/src/linear.jl index c3fec7d..0947e39 100644 --- a/lib/BVProblemLibrary/src/linear.jl +++ b/lib/BVProblemLibrary/src/linear.jl @@ -783,7 +783,7 @@ function prob_bvp_linear_13_bca!(res_a, u_a, p) res_a[1] = u_a[1] end function prob_bvp_linear_13_bcb!(res_b, u_b, p) - res_b[1] = u_b[1] + 1 + res_b[1] = u_b[1] + 1 - exp(-2 / sqrt(p)) end prob_bvp_linear_13_function = BVPFunction( prob_bvp_linear_13_f!, (prob_bvp_linear_13_bca!, prob_bvp_linear_13_bcb!), @@ -1019,7 +1019,7 @@ prob_bvp_linear_16 = BVProblem(prob_bvp_linear_16_function, ################### linear_bvp17 ############################ function prob_bvp_linear_17_analytic(u, λ, t) [t / sqrt(λ + t^2), - (λ - t^2) / (λ + t^2)^2] + 1 / sqrt(λ + t^2) - t^2 / (λ + t^2)^(3 / 2)] end function prob_bvp_linear_17_f!(du, u, p, t) du[1] = u[2] From a10c9a01f068fc8000f30ef5ab12e7c5525554af Mon Sep 17 00:00:00 2001 From: ErikQQY <2283984853@qq.com> Date: Sat, 30 Mar 2024 21:52:57 +0800 Subject: [PATCH 2/2] Update Project.toml Signed-off-by: ErikQQY <2283984853@qq.com> --- lib/BVProblemLibrary/Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BVProblemLibrary/Project.toml b/lib/BVProblemLibrary/Project.toml index 713eac9..f2fa781 100644 --- a/lib/BVProblemLibrary/Project.toml +++ b/lib/BVProblemLibrary/Project.toml @@ -1,6 +1,6 @@ name = "BVProblemLibrary" uuid = "ded0fc24-dfea-4565-b1d9-79c027d14d84" -version = "0.1.4" +version = "0.1.5" [deps] DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"