Aller au contenu

Mathc initiation/Fichiers h : c60fa

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 f(
double x,
double y,
double z)
{
      return( (x+y) );
}
char  feq[] = "x+y";
/* ---------------------------------- */
double g(
double x,
double y)
{
      return( (6-2*x-3*y) );
}
char  geq[] = "6-2*x-3*y";
/* ---------------------------------- */
double v(
double y)
{
 return(      ((6-3*y)/2) );
}
char  veq[] = "(6-3*y)/2";
/* ---------------------------------- */
double u(
double y)
{
 return(      (0) );
}
char  ueq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
double by =    2.;    char byeq[] = "2";
double ay =    0.;    char ayeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fb.h
/* ---------------------------------- */
/* save as fb.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double g(
double x,
double y,
double z)
{
      return( (x*y*y*z*z*z) );
}
char  geq[] = "x*y**2*z**3";
/* ---------------------------------- */
double h(
double y,
double z)
{
      return( (1./3.*(12-2*y-4*z)) );
}
char  heq[] = "1./3.*(12-2*y-4*z)";
/* ---------------------------------- */
double v(
double y)
{
 return(      (6-2*y) );
}
char  veq[] = "(6-2*y)";
/* ---------------------------------- */
double u(
double y)
{
 return(      (0) );
}
char  ueq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
double bz =    3.;    char bzeq[] = "3";
double az =    0.;    char azeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fc.h
/* ---------------------------------- */
/* save as fc.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double g(
double x,
double y,
double z)
{
      return( (x+y+z) );
}
char  geq[] = "x+y+z";
/* ---------------------------------- */
double f(
double x,
double y)
{
      return( (6-2*x-3*y) );
}
char  feq[] = "6-2*x-3*y";
/* ---------------------------------- */
double v(
double x)
{
 return(      ((6-3*x)/2) );
}
char  veq[] = "(6-3*x)/2";
/* ---------------------------------- */
double u(
double x)
{
 return(      (0) );
}
char  ueq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
double bx =    3.;    char bxeq[] = "3";
double ax =    0.;    char axeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fd.h
/* ---------------------------------- */
/* save as fd.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double g(
double x,
double y,
double z)
{
      return( (x*z/y) );
}
char  geq[] = "x*z/y";
/* ---------------------------------- */
double k(
double y,
double z)
{
      return( (z*z) );
}
char  keq[] = "z**2";
/* ---------------------------------- */
double v(
double y)
{
 return(      (4) );
}
char  veq[] = "(4)";
/* ---------------------------------- */
double u(
double y)
{
 return(      (1) );
}
char  ueq[] = "1";
/* ---------------------------------- */
/* ---------------------------------- */
double bz =    5.;    char bzeq[] = "5";
double az =    0.;    char azeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fe.h
/* ---------------------------------- */
/* save as fe.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double g(
double x,
double y,
double z)
{
      return( (x*x-2*y+z) );
}
char  geq[] = "x**2-2*y+z";
/* ---------------------------------- */
double h(
double x,
double z)
{
      return( (8-4*x) );
}
char  heq[] = "8-4*x";
/* ---------------------------------- */
double v(
double z)
{
 return(      (6)  );
}
char  veq[] = "6";
/* ---------------------------------- */
double u(
double y)
{
 return(      (0) );
}
char  ueq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
double bx =    2.;    char bxeq[] = "2";
double ax =    0.;    char axeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
ff.h
/* ---------------------------------- */
/* save as ff.h                       */
/* ---------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double g(
double x,
double y,
double z)
{
      return( (x*y*y*z*z*z) );
}
char  geq[] = "x*y**2*z**3";
/* ---------------------------------- */
double k(
double y,
double z)
{
      return( 1./2.*(12-3*y-4*z) );
}
char  keq[] = "1./2.(12-3*y-4*z)";
/* ---------------------------------- */
double v(
double y)
{
 return(      (12-3*y)/4 );
}
char  veq[] = "(12-3*y)/4";
/* ---------------------------------- */
double u(
double y)
{
 return(      (0) );
}
char  ueq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
double by =    4.;    char byeq[] = "4";
double ay =    0.;    char ayeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */