[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fzero for functions that are never negative?
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: Fzero for functions that are never negative? |
Date: |
Thu, 18 Oct 2012 14:25:06 -0400 |
On 18 October 2012 14:20, Joza <address@hidden> wrote:
> Using fzero, how does one find the root of a function that is always
> positive, or zero, but never negative? For instance, an absolute value:
> f(x) = abs(x - 2)
One doesn't; one uses fsolve instead.
- Jordi G. H.