Mathc initiation/Fichiers h : c65fa


Sommaire


Installer ce fichier dans votre répertoire de travail.


Texte de la légende
fa.h
/* ---------------------------------- */
/* save as fa.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double f(
double x,
double y)
{
        return( (x*x + x*y*y*y + 4*y));
}
char  feq[] =  "x**2 + x*y**3 + 4*y";

/* ---------------------------------- */
/* ---------------------------------- */
double M(
double x,
double y)
{
        return( (2*x+y*y*y));
}
char  Meq[] =  "(2*x + y**3)";
/* ---------------------------------- */
double N(
double x,
double y)
{
        return(  (3*x*y*y  + 4));
}
char  Neq[] =  "(3*x*y**2 + 4)";
/* ---------------------------------- */
/* ---------------------------------- */
double g(
double t)
{
        return( (t));
}
char  geq[] =  "t";
/* ---------------------------------- */
double h(
double t)
{
        return( (t+1));
}
char  heq[] =  "t+1";
/* ---------------------------------- */
/* ---------------------------------- */
double b = 2.;    char beq[] = "2";
double a = 0.;    char aeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fb.h
/* ---------------------------------- */
/* save as fb.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double f(
double x,
double y)
{
        return( (x*y*y + x*x*y));
}
char  feq[] =  "(x*y**2 + x**2*y)";

/* ---------------------------------- */
/* ---------------------------------- */
double M(
double x,
double y)
{
        return( (y*y+2*x*y));
}
char  Meq[] =  "(y**2 + 2*x*y)";
/* ---------------------------------- */
double N(
double x,
double y)
{
        return(  (x*x+2*x*y));
}
char  Neq[] =  "(x**2 + 2*x*y)";
/* ---------------------------------- */
/* ---------------------------------- */
double g(
double t)
{
        return( (t));
}
char  geq[] =  "t";
/* ---------------------------------- */
double h(
double t)
{
        return( (-1./4.*t+7./4.));
}
char  heq[] =  "-1/4*t + 7/4";
/* ---------------------------------- */
/* ---------------------------------- */
double b = +3.;    char beq[] = "+3";
double a = -1.;    char aeq[] = "-1";
/* ---------------------------------- */
/* ---------------------------------- */