/*
 * public declarations for Differential Equations
 *
 * Danny Heap, September 22, 2002
 */

#define TABLELINES 100
#define STEPSIZE 0.01

/*
 * deline_t holds a line of output from
 * approximation of a DE
 */
struct deline {
    double x; /* independent variable */
    double f_x; /* approximation of f(x) */
    double f_of_x; /* exact value of f(x) */
    double error; /* relative error */
};

/*
 * delist fills in detable with TABLELINES deline_t entries,
 * starting from initial values initx and initf_of_x,
 * filling in x, your calculation of fx, the known value
 * f_of_x, and the relative error for each line, using
 * step size STEPSIZE.  Parameter K is as in the handout.
 */
extern void delist(double initx, double init_f_of_x, int K, 
		   struct deline *detable);


