Skip to content

Commit

Permalink
add adjust_bracket (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
jverzani authored Sep 4, 2024
1 parent 006fc11 commit 10a710f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Roots"
uuid = "f2b01f46-fcfa-551c-844a-d8ac1e96c665"
version = "2.1.7"
version = "2.1.8"

[deps]
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
Expand Down
1 change: 1 addition & 0 deletions src/Bracketing/chandrapatlu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ end
# a = most recent, b prior
function init_state(::Chandrapatla, F, x₀, x₁, fx₀, fx₁)
a, b, fa, fb = x₁, x₀, fx₁, fx₀
assert_bracket(fa, fb)
c, fc = a, fa
ChandrapatlaState(promote(a, b, c)..., promote(fa, fb, fc)...)
end
Expand Down
4 changes: 2 additions & 2 deletions test/test_bracketing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ end
@test avg(cnts) <= 3000

## issue 412 check for bracket
f = x -> x - 1
for M in Ms
@test_throws ArgumentError find_zero(f, (-3, 0), M)
@test_throws ArgumentError find_zero(x -> x - 1, (-3, 0), M)
@test_throws ArgumentError find_zero(x -> 1 + x^2, (10, 20), M)
end
end

Expand Down

2 comments on commit 10a710f

@jverzani
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/114539

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v2.1.8 -m "<description of version>" 10a710fcc33cb8c6bd05e51e1f56455f56bd1dcd
git push origin v2.1.8

Please sign in to comment.