Sommaire
Installer ce fichier dans votre répertoire de travail.
fa.h
/* --------------------------------- */ /* save as fa.h */ /* --------------------------------- */ #define LOOP 2*50 /* ---------------------------------- */ double f( double x, double y) { return( x*x * cos(y) ); } char feq[] = "x**2 * cos(y)"; /* ---------------------------------- */ /* ---------------------------------- */ double v( double x) { return( (2) ); } char veq[] = "2"; /* ---------------------------------- */ double u( double x) { return( (0) ); } char ueq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */ double b = 3.; char beq[] = "3"; double a = 0.; char aeq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */
fa2.h
/* --------------------------------- */ /* save as fa2.h */ /* --------------------------------- */ #define LOOP 2*50 /* --------------------------------- */ double hx( double x) { return( x*x ); } char hxeq[] = "x**2"; /* ---------------------------------- */ /* ---------------------------------- */ double bx = 3.; char bxeq[] = "3"; double ax = 0.; char axeq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */ double hy( double y) { return( cos(y)); } char hyeq[] = "cos(y)"; /* ---------------------------------- */ /* ---------------------------------- */ double by = 2.; char byeq[] = "2"; double ay = 0.; char ayeq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */ . . .
fb.h
/* --------------------------------- */ /* save as fb.h */ /* --------------------------------- */ #define LOOP 2*50 /* ---------------------------------- */ double f( double x, double y) { return( x*x * sin(y) ); } char feq[] = "x**2 * sin(y)"; /* ---------------------------------- */ /* ---------------------------------- */ double v( double x) { return( (PI) ); } char veq[] = "PI"; /* ---------------------------------- */ double u( double x) { return( (-PI) ); } char ueq[] = "-PI"; /* ---------------------------------- */ /* ---------------------------------- */ double b = 3.; char beq[] = "3"; double a = 0.; char aeq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */
fb2.h
/* --------------------------------- */ /* save as fb2.h */ /* --------------------------------- */ #define LOOP 2*50 /* --------------------------------- */ double hx( double x) { return( x*x ); } char hxeq[] = "x**2"; /* ---------------------------------- */ /* ---------------------------------- */ double bx = 3.; char bxeq[] = "3"; double ax = 0.; char axeq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */ double hy( double y) { return( sin(y)); } char hyeq[] = "sin(y)"; /* ---------------------------------- */ /* ---------------------------------- */ double by = +PI; char byeq[] = "+PI"; double ay = -PI; char ayeq[] = "-PI"; /* ---------------------------------- */ /* ---------------------------------- */ . . .
fc.h
/* --------------------------------- */ /* save as fc.h */ /* --------------------------------- */ #define LOOP 2*50 /* ---------------------------------- */ double f( double x, double y) { return( x*x ); } char feq[] = "x**2 "; /* ---------------------------------- */ /* ---------------------------------- */ double v( double x) { return( (+PI) ); } char veq[] = "+PI"; /* ---------------------------------- */ double u( double x) { return( (-PI) ); } char ueq[] = "-PI"; /* ---------------------------------- */ /* ---------------------------------- */ double b = 3.; char beq[] = "3"; double a = 0.; char aeq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */
/* --------------------------------- */ /* save as fc2.h */ /* --------------------------------- */ #define LOOP 2*50 /* --------------------------------- */ double hx( double x) { return( x*x ); } char hxeq[] = "x**2"; /* ---------------------------------- */ /* ---------------------------------- */ double bx = 3.; char bxeq[] = "3"; double ax = 0.; char axeq[] = "0"; /* ---------------------------------- */ /* ---------------------------------- */ double hy( double y) { return( 1); } char hyeq[] = "1"; /* ---------------------------------- */ /* ---------------------------------- */ double by = +PI; char byeq[] = "+PI"; double ay = -PI; char ayeq[] = "-PI"; /* ---------------------------------- */ /* ---------------------------------- */ . . .