From c4920b73f9c201ff8b1adc3cbd5642c543d30a42 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Mon, 25 Dec 2023 00:30:38 -0500 Subject: [PATCH 1/3] Patch Watson Function --- lib/NonlinearProblemLibrary/Project.toml | 2 +- lib/NonlinearProblemLibrary/src/NonlinearProblemLibrary.jl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/NonlinearProblemLibrary/Project.toml b/lib/NonlinearProblemLibrary/Project.toml index 20e40c2..0317c1c 100644 --- a/lib/NonlinearProblemLibrary/Project.toml +++ b/lib/NonlinearProblemLibrary/Project.toml @@ -1,6 +1,6 @@ name = "NonlinearProblemLibrary" uuid = "b7050fa9-e91f-4b37-bcee-a89a063da141" -version = "0.1.1" +version = "0.1.2" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" diff --git a/lib/NonlinearProblemLibrary/src/NonlinearProblemLibrary.jl b/lib/NonlinearProblemLibrary/src/NonlinearProblemLibrary.jl index 499b8ee..ce6fdd1 100644 --- a/lib/NonlinearProblemLibrary/src/NonlinearProblemLibrary.jl +++ b/lib/NonlinearProblemLibrary/src/NonlinearProblemLibrary.jl @@ -90,6 +90,7 @@ p5_dict = Dict("n" => n, "start" => x_start, "sol" => x_sol, # ------------------------------------- Problem 6 ------------------------------------------ function p6_f!(out, x, p = nothing) n = length(x) + out .= 0 for i in 1:29 ti = i / 29.0 sum1 = 0.0 @@ -113,7 +114,7 @@ function p6_f!(out, x, p = nothing) end end - out[1] = out[1] + 3.0 * x[1] - 2.0 * x[1] * x[1] + 2.0 * x[1]^3 + out[1] = out[1] + 3.0 * x[1] - 2.0 * x[1] * x[2] + 2.0 * x[1]^3 out[2] = out[2] + x[2] - x[2]^2 - 1.0 nothing end From ee3dda34e0ce49303fc3420a4e2f13bc6cde02a9 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Mon, 25 Dec 2023 00:38:45 -0500 Subject: [PATCH 2/3] Add Linear Algebra compat --- lib/NonlinearProblemLibrary/Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/NonlinearProblemLibrary/Project.toml b/lib/NonlinearProblemLibrary/Project.toml index 0317c1c..ee4a6b0 100644 --- a/lib/NonlinearProblemLibrary/Project.toml +++ b/lib/NonlinearProblemLibrary/Project.toml @@ -7,6 +7,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" [compat] +LinearAlgebra = "1.6" SciMLBase = "1, 2" julia = "1.6" From 6052b7faa16195aeead08ca74d7844f87cf82a50 Mon Sep 17 00:00:00 2001 From: Avik Pal Date: Mon, 25 Dec 2023 00:43:41 -0500 Subject: [PATCH 3/3] Add Aqua compat --- lib/NonlinearProblemLibrary/Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/NonlinearProblemLibrary/Project.toml b/lib/NonlinearProblemLibrary/Project.toml index ee4a6b0..8b3ec0f 100644 --- a/lib/NonlinearProblemLibrary/Project.toml +++ b/lib/NonlinearProblemLibrary/Project.toml @@ -7,6 +7,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462" [compat] +Aqua = "0.8" LinearAlgebra = "1.6" SciMLBase = "1, 2" julia = "1.6"