Sommaire


Installer ce fichier dans votre répertoire de travail.

fb.h
/* ---------------------------------- */
/* save as fb.h                       */
/* ---------------------------------- */
double f(
double x)
{
         return(x + 4.);
}
char  feq[] =  "x + 4.";
/* ---------------------------------- */
double g(
double x)
{
         return(x*x  + 1.);
}
char  geq[] =  "x**2 + 1.";
/* ---------------------------------- */
double h(
double x)
{
         return(x);
}
char  heq[] =  "x";
/* ---------------------------------- */
double VCylindricalShell(
double x)
{
/*
Volume of a cylindrical shell = 2Pi(average radius)(altitude)(thickness)
*/

        return( 2 * PI * h(x) * ( (f(x)) - (g(x)) ) );
}
/* ---------------------------------- */
/* ---------------------------------- */