/* --------------------------------- */
/* save as fa.h */
/* --------------------------------- */
double f(
double x)
{
return( 3.0*x*x - 2.0*x - 5.0);
}
char feq[] = "3.0*x**2 - 2.0*x - 5.0";
/* --------------------------------- */
double Df(
double x)
{
return( 6.0*x - 2.0);
}
char Dfeq[] = "6.0*x - 2.0";
/* --------------------------------- */
double Df2(
double x)
{
return( 6.0);
}
char Dfeq2[] = "6.0";
/* --------------------------------- */