Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Oct 17, 2023
1 parent 0c69cde commit 143c634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/polyalgs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ sol = solve(prob)

# https://github.com/SciML/NonlinearSolve.jl/issues/187

f(u, p) = 0.5/1.5*log.(u./(1.0.-u)) .- 2.0*u .+1.0
ff(u, p) = 0.5/1.5*log.(u./(1.0.-u)) .- 2.0*u .+1.0

uspan = (0.02, 0.1)
prob = IntervalNonlinearProblem(f, uspan)
prob = IntervalNonlinearProblem(ff, uspan)
sol = solve(prob)
@test SciMLBase.successful_retcode(sol)

u0 = 0.06
p = 2.0
prob = NonlinearProblem(f, u0, p)
prob = NonlinearProblem(ff, u0, p)
solver = solve(prob)
@test SciMLBase.successful_retcode(sol)

0 comments on commit 143c634

Please sign in to comment.