/* ---------------------------------- */
/* save as fa.h */
/* ---------------------------------- */
double f(
double x)
{
return(sin(x));
}
/* ---------------------------------- */
char feq[] = "sin(x)";
/* ---------------------------------- */
/* Average Radius ------------------ */
double h(
double x)
{
return(x);
}
/* ---------------------------------- */
char heq[] = "x";
/* ---------------------------------- */
/* ---------------------------------- */
double VCylindricalShell(
double x)
{
/*
Volume of a cylindrical shell = 2 Pi(average radius)(altitude)(thickness)
*/
return(2 * PI * h(x) * f(x));
}
/* ---------------------------------- */
/* ---------------------------------- */