next up previous contents [pdf] index

Next: Input parameters Up: sf_zero Previous: Call

Definition

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;
}




2011-07-02