43template <
class T,
class P>
44bool Rminfc( T (*
f)(P), P
a, P b,
double eps,
double delta, P& x, P& y) {
49 static P v,
w, fv, fw;
50 bool lge =
true, llt =
true;
67 v = c + h * 0.3819660112501051;
71 w = c + h * 0.6180339887498949;
92 return (
fabs(x -
a) > delta) && (
fabs(x - b) > delta);
111template <
class C,
class T,
class P>
112bool RminfcM(
const C& part, T (C::*
f)(P)
const, P
a, P b,
double eps,
double delta, P& x, P& y) {
117 static P v,
w, fv, fw;
118 bool lge =
true, llt =
true;
135 v = c + h * 0.3819660112501051;
139 w = c + h * 0.6180339887498949;
160 return (
fabs(x -
a) > delta) && (
fabs(x - b) > delta);
int round(const T &x)
Definition: Functions.hh:83
void d()
Definition: RecDispEX.C:381
FILE * f
Definition: RecDispMC.C:150
Expr< UnaryOp< Fabs< T >, Expr< A, T, D >, T >, T, D > fabs(const Expr< A, T, D > &rhs)
Definition: UnaryOperators.hh:96
void a()
Definition: check_aligned.C:59
bool Rminfc(T(*f)(P), P a, P b, double eps, double delta, P &x, P &y)
Definition: minfc.hh:44
bool RminfcM(const C &part, T(C::*f)(P) const, P a, P b, double eps, double delta, P &x, P &y)
Definition: minfc.hh:112
void w(int rid=2, int nviews=2)
Definition: test.C:27