Aller au contenu

Mathc initiation/Fichiers h : c54fa

Un livre de Wikilivres.


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 M(
double x,
double y)
{
        return(   (y-sin(x)));
}
char  Meq[] =  "(y-sin(x))";
/* ---------------------------------- */
double N(
double x,
double y)
{
        return(  (cos(x)));
}
char  Neq[] =  "(cos(x))";
/* ---------------------------------- */
/* ---------------------------------- */
double N_x_mns_M_y(
double x,
double y)
{
 return(  (-sin(x))-(1));
}
char  N_x_mns_M_y_eq[] = "(-sin(x))-(1)";
/* ---------------------------------- */
/* ---------------------------------- */
double v(
double x)
{
        return( (2*x/PI));
}
char  veq[] =   "2*x/Pi";
/* ---------------------------------- */
double u(
double x)
{
        return( (0));
}
char  ueq[] =   "0";
/* ---------------------------------- */
/* ---------------------------------- */
double bx = PI/2.; char bxeq[] = "PI/2";
double ax =    0.; char axeq[] =    "0";
/* ---------------------------------- */
/* ---------------------------------- */
fb.h
/* ---------------------------------- */
/* save as fb.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double M(
double x,
double y)
{
        return( (x+y*y));
}
char  Meq[] =  "(x+y**2)";
/* ---------------------------------- */
double N(
double x,
double y)
{
        return(  (1+x*x));
}
char  Neq[] =  "(1+x**2)";
/* ---------------------------------- */
/* ---------------------------------- */
double N_x_mns_M_y(
double x,
double y)
{
 return(   (2*x)-(2*y));
}
char  N_x_mns_M_y_eq[] = "(2*x)-(2*y)";
/* ---------------------------------- */
/* --------------------------------- */
double v(
double x)
{
        return( (x*x));
}
char  veq[] =   "x**2";
/* ---------------------------------- */
double u(
double x)
{
        return( (x*x*x));
}
char  ueq[] =   "x**3";
/* ---------------------------------- */
/* ---------------------------------- */
double bx = 1.;    char bxeq[] = "1";
double ax = 0.;    char axeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fc.h
/* --------------------------------- */
/* save as fc.h                      */
/* --------------------------------- */
#define  LOOP  2*50
/* --------------------------------- */
double M(
double x,
double y)
{
        return( (5*x*y));
}
char  Meq[] =  "(5*x*y)";
/* ---------------------------------- */
double N(
double x,
double y)
{
        return(  (x*x*x));
}
char  Neq[] =  "(x**3)";
/* ---------------------------------- */
/* ---------------------------------- */
double N_x_mns_M_y(
double x,
double y)
{
 return(  (3*x*x)-(5*x));
}
char  N_x_mns_M_y_eq[] = "(3*x**2)-(5*x)";
/* ---------------------------------- */
/* ---------------------------------- */
double v(
double x)
{
        return( (2*x));
}
char  veq[] =   "2*x";
/* ---------------------------------- */
double u(
double x)
{
        return( (x*x));
}
char  ueq[] =   "x**2";
/* ---------------------------------- */
/* ---------------------------------- */
double bx = 2.;    char bxeq[] = "2";
double ax = 0.;    char axeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fd.h
/* --------------------------------- */
/* save as fd.h                      */
/* --------------------------------- */
#define  LOOP  2*50
/* --------------------------------- */
double M(
double x,
double y)
{
        return( (x*x+y));
}
char  Meq[] =  "(x**2+y)";
/* ---------------------------------- */
double N(
double x,
double y)
{
        return(  (x*y*y));
}
char  Neq[] =  "(x*y**2)";
/* ---------------------------------- */
/* ---------------------------------- */
double N_x_mns_M_y(
double x,
double y)
{
 return(  (y*y) - 1);
}
char  N_x_mns_M_y_eq[] = "(y**2)-1";
/* ---------------------------------- */
/* ---------------------------------- */
double v(
double y)
{
        return( (-y));
}
char  veq[] =   "-y";
/* ---------------------------------- */
double u(
double y)
{
        return( (y*y));
}
char  ueq[] =   "y**2";
/* ---------------------------------- */
/* ---------------------------------- */
double by =  0.;    char byeq[] =  "0";
double ay = -1.;    char ayeq[] = "-1";
/* ---------------------------------- */
/* ---------------------------------- */