|
|
|
|
Madagascar Programming Reference Manual |
|
|
float sf_zero (float (*func)(float) /* function f(x) */,
float a, float b /* interval */,
float fa, float fb /* f(a) and f(b) */,
float toler /* tolerance */,
bool verb /* verbosity flag */)
/*< Return c such that f(c)=0 (within tolerance).
fa and fb should have different signs. >*/
{
float c, fc, m, s, p, q, r, e, d;
char method[256];
...
return b;
}