Find_zero with Brent method

I am trying to find the root of a function f. After using Roots,
find_zero(f, (0, 1), Roots.Brent()) works, but find_zero(f, (0, 1), Brent()) does not work (error message says Brent not defined). When I use the Bisection method, find_zero(f, (0, 1), Bisection()) works. I am confused by this name space issue.

Not an expert, but would guess that Brent needs to be exported in Roots.jl file:

export Bisection, FalsePosition, Brent
1 Like

yeah. I don’t understand why they did not export Brent.

They did not export WTI either…
PS: could not resist a silly Oil&Gas joke :slight_smile:

1 Like