Skip to content

Commit 756d005

Browse files
committed
Fix 13th and 17th BVP test problems
Signed-off-by: ErikQQY <2283984853@qq.com>
1 parent 85d68c0 commit 756d005

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)