Hi,

I want to use:

`find_zero((f,fp), x_{0}, Roots.Newton())`

for root finding. However, my domain is non-negative. Is there a way to impose this?

Thanks!

Hi,

I want to use:

`find_zero((f,fp), x_{0}, Roots.Newton())`

for root finding. However, my domain is non-negative. Is there a way to impose this?

Thanks!

maybe a transformation?

```
using Roots
f(x) = log(x) - 3 #solution at f(x) = 0 at x = exp(3)
g(x) = f(x*x)
x_squared = find_zero(f,1.4)
x = sqrt(x_squared)
```

2 Likes

Instead of using **Roots**, you can use **Optim** with the LFBGS method which allows to set bounds.