Skip to content

Commit 5ac7bca

Browse files
Merge pull request #128 from ErikQQY/qqy/fix_13_17
Fix 13th and 17th BVP test problems
2 parents 85d68c0 + a10c9a0 commit 5ac7bca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/BVProblemLibrary/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "BVProblemLibrary"
22
uuid = "ded0fc24-dfea-4565-b1d9-79c027d14d84"
3-
version = "0.1.4"
3+
version = "0.1.5"
44

55
[deps]
66
DiffEqBase = "2b5f629d-d688-5b77-993f-72d75c75574e"

lib/BVProblemLibrary/src/linear.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ function prob_bvp_linear_13_bca!(res_a, u_a, p)
783783
res_a[1] = u_a[1]
784784
end
785785
function prob_bvp_linear_13_bcb!(res_b, u_b, p)
786-
res_b[1] = u_b[1] + 1
786+
res_b[1] = u_b[1] + 1 - exp(-2 / sqrt(p))
787787
end
788788
prob_bvp_linear_13_function = BVPFunction(
789789
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,
10191019
################### linear_bvp17 ############################
10201020
function prob_bvp_linear_17_analytic(u, λ, t)
10211021
[t / sqrt+ t^2),
1022-
- t^2) /+ t^2)^2]
1022+
1 / sqrt+ t^2) - t^2 /+ t^2)^(3 / 2)]
10231023
end
10241024
function prob_bvp_linear_17_f!(du, u, p, t)
10251025
du[1] = u[2]

0 commit comments

Comments
 (0)