#include <stdio.h>
#include <math.h>
// evaluates a function with one argument
void
evaluate(double f(double f_arg), double pt1, double pt2, double pt3)
{
printf("f(%.5lf) = %.5lf\n", pt1, f(pt1));
printf("f(%.5lf) = %.5lf\n", pt2, f(pt2));
printf("f(%.5lf) = %.5lf\n", pt3, f(pt3));
}
int
main (void)
{
printf ("Square Root\n");
evaluate (sqrt, 25.0, 49.0, 16.0);
printf ("\nDecimal Log\n");
evaluate (log10, 25.0, 49.0, 16.0);
return (0);
}