Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit cf03317

Browse files
Update least_squares.jl
1 parent b6d38d7 commit cf03317

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/least_squares.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using SimpleNonlinearSolve, Random, LinearAlgebra, Test
1+
using SimpleNonlinearSolve, LinearAlgebra, Test
22

33
true_function(x, θ) = @. θ[1] * exp(θ[2] * x) * cos(θ[3] * x + θ[4])
44

@@ -16,4 +16,4 @@ prob_oop = NonlinearLeastSquaresProblem{false}(loss_function, θ_init, x)
1616
sol = solve(prob_oop, SimpleNewtonRaphson())
1717
sol = solve(prob_oop, SimpleGaussNewton())
1818

19-
@test norm(sol.resid) < 1e-12
19+
@test norm(sol.resid) < 1e-12

0 commit comments

Comments
 (0)