/* * mono.h * * This file contains declarations for a monomial, a single term in a * polynomial. */ typedef struct _mono { /* term is coeff * x ^ power */ double power, /* exponent */ coeff; /* coefficient */ } mono; /* this function reads a term from standard input into a mono, * returning 0 on success, 1 if end of line or end of file is reached. * examples: * 1 * x^7 * 2x^-19 * -3x^4 */ int read_mono (mono *);