a2p2(introprog1620 perry)

a2p2(introprog1620 perry) - } /* set f to list of function...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <math.h> /* define your functions below */ double f1( double x) { double y; y = 1-exp(-x/5); return y; } double f2( double x) { return (2*cos((4*atan(1))*x)*sin(((4*atan(1))*x)/4))/3;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } /* set f to list of function names with 0 at the end */ double (*f)(double) = { f1, f2, 0};...
View Full Document

Ask a homework question - tutors are online