# Mathc initiation/Fichiers h : c64fa

Installer ce fichier dans votre répertoire de travail.
Texte de la légende :
| fa.h /* --------------------------------- */ /* save as fa.h */ /* --------------------------------- */ #define LOOP 2*100 /* --------------------------------- */ double M( double x, double y, double z) { return( (y*sin(x)) ); } char Meq = "y*sin(x)"; /* --------------------------------- */ double N( double x, double y, double z) { return( (y*y*z) ); } char Neq = "y^2*z"; /* --------------------------------- */ double P( double x, double y, double z) { return( (x+3*z) ); } char Peq = "x+3*z"; /* --------------------------------- */ /* --------------------------------- */ double v( double x, double y) { return( (1) ); } char veq = "+1"; /* --------------------------------- */ double u( double x, double y) { return( (-1)); } char ueq = "-1"; /* --------------------------------- */ /* --------------------------------- */ double t( double y) { return( 1 ); } char teq = "+1"; /* ---------------------------------- */ double s( double y) { return( -1 ); } char seq = "-1"; /* --------------------------------- */ /* ---------------------------------- */ double bx = +1.; char bxeq = "+1"; double ax = -1.; char axeq = "-1"; /* ---------------------------------- */ /* ---------------------------------- */ | fb.h /* --------------------------------- */ /* save as fb.h */ /* --------------------------------- */ #define LOOP 2*100 /* --------------------------------- */ double M( double x, double y, double z) { return( (2*x*z) ); } char Meq = "2*x*z"; /* --------------------------------- */ double N( double x, double y, double z) { return( (x*y*z) ); } char Neq = "x*y*z"; /* --------------------------------- */ double P( double x, double y, double z) { return( (y*z) ); } char Peq = "y*z"; /* --------------------------------- */ /* --------------------------------- */ double v( double x, double y) { return( ((4-x)/2) ); } char veq = "(4-x)/2"; /* --------------------------------- */ double u( double x, double y) { return( (0)); } char ueq = "0"; /* --------------------------------- */ /* --------------------------------- */ double t( double y) { return( 4 ); } char teq = "4"; /* ---------------------------------- */ double s( double y) { return( 0 ); } char seq = "0"; /* --------------------------------- */ /* ---------------------------------- */ double by = 2.; char byeq = "2"; double ay = 0.; char ayeq = "0"; /* ---------------------------------- */ /* ---------------------------------- */ |
| fc.h /* --------------------------------- */ /* save as fc.h */ /* --------------------------------- */ #define LOOP 2*100 /* --------------------------------- */ double M( double x, double y, double z) { return( (x*x*x+sin(z)) ); } char Meq = "x^3 + sin(z)"; /* --------------------------------- */ double N( double x, double y, double z) { return( (x*x*y+cos(z)) ); } char Neq = "x^2*y + cos(z)"; /* --------------------------------- */ double P( double x, double y, double z) { return( exp(x*x+y*y) ); } char Peq = "exp(x^2 + y^2)"; /* --------------------------------- */ /* --------------------------------- */ double v( double x, double z) { return( (5-z) ); } char veq = "5-z"; /* --------------------------------- */ double u( double x, double z) { return( (+0)); } char ueq = "+0"; /* ---------------------------------- */ /* --------------------------------- */ double t( double x) { return( 4-x*x ); } char teq = "4-x^2"; /* ---------------------------------- */ double s( double x) { return( +0 ); } char seq = "+0"; /* --------------------------------- */ /* ---------------------------------- */ double bx = +2.; char bxeq = "+2"; double ax = -2.; char axeq = "-2"; /* ---------------------------------- */ /* ---------------------------------- */ | |