/*! ========================================================================
** Extended Template and Library
** Calculus Functional Classes Implementation
-** $Id: _calculus.h,v 1.1.1.1 2005/01/04 01:31:46 darco Exp $
+** $Id$
**
** Copyright (c) 2002 Robert B. Quattlebaum Jr.
**
//#define _EPSILON 0.0000001
//#endif
-#define ETL_FIXED_DERIVATIVE 1
-
/* === T Y P E D E F S ===================================================== */
/* === C L A S S E S & S T R U C T S ======================================= */
typename T::result_type
operator()(const typename T::argument_type &x)const
{
-#ifdef ETL_FIXED_DERIVATIVE
return (func(x+epsilon)-func(x))/epsilon;
-#else
- return (func(x)-func(x+epsilon))/epsilon;
-#endif
}
};