// #include "h-prog2.h" // This is to check sanity of the function declarations float f( float x ) { return ( x*x ); } double g( double x ) { return ( x*x*x ); }