Aller au contenu

Mathc initiation/c33ba

Un livre de Wikilivres.


SommaireUtilise la commande "Retour en Arrière" de ton navigateur.


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+y*y+1) );
}
char  feq[] = "x**2+y**2+1";
/* ---------------------------------- */
/* ---------------------------------- */
double by(
double x)
{
 return( (2-2*x) );
}
char  byeq[] = "2-2*x";
/* ---------------------------------- */
double ay(
double x)
{
 return( ( 0) );
}
char  ayeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
double bx = 1.;    char bxeq[] = "1";
double ax = 0.;    char axeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fb.h
/* --------------------------------- */
/* save as fb.h                      */
/* --------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double f(
double x,
double y)
{
 return( 1 );
}
char  feq[] = "1";
/* ---------------------------------- */
/* ---------------------------------- */
double by(
double x)
{
 return( ( 8.-(x*x/2.) ) );
}
char  byeq[] = "8-(x**2/2)";
/* ---------------------------------- */
double ay(
double x)
{
 return( ( 2.-(x/2.) ) );
}
char  ayeq[] = "2-(x/2)";
/* ---------------------------------- */
/* ---------------------------------- */
double bx = +4.;    char bxeq[] = "+4";
double ax = -3.;    char axeq[] = "-3";
/* ---------------------------------- */
/* ---------------------------------- */
fc.h
/* --------------------------------- */
/* save as fc.h                      */
/* --------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double f(
double x,
double y)
{
 return( (x*x*x+4*y) );
}
char  feq[] = "x**3+4*y";
/* ---------------------------------- */
/* ---------------------------------- */
double bx(
double y)
{
 return( sqrt(y) );
}
char  bxeq[] = "sqrt(y)";
/* ---------------------------------- */
double ax(
double y)
{
 return( (y/2.) );
}
char  axeq[] = "y/2.";
/* ---------------------------------- */
/* ---------------------------------- */
double by = 4.;    char byeq[] = "4";
double ay = 0.;    char ayeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fd.h
/* --------------------------------- */
/* save as fd.h                      */
/* --------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double f(
double x,
double y)
{
 return( sqrt(9-y*y) );
}
char  feq[] = "sqrt(9-y**2)";
/* ---------------------------------- */
/* ---------------------------------- */
double bx(
double y)
{
 return( (sqrt(9-y*y)) );
}
char  bxeq[] = "sqrt(9-y**2)";
/* ---------------------------------- */
double ax(
double y)
{
 return( (0) );
}
char  axeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
double by = 3.;   char byeq[] = "3";
double ay = 0.;   char ayeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */
fe.h
/* --------------------------------- */
/* save as fe.h                      */
/* --------------------------------- */
#define  LOOP  2*50
/* ---------------------------------- */
double f(
double x,
double y)
{
 return( (sin(cos(x*y))) );
}
char  feq[] = "sin(cos(x*y))";
/* --------------------------------- */
/* --------------------------------- */
double bx(
double y)
{
 return( (.5) );
}
char  bxeq[] = ".5";
/* ---------------------------------- */
double ax(
double y)
{
 return( (0) );
}
char  axeq[] = "0";
/* --------------------------------- */
/* --------------------------------- */
double by = 1.;    char byeq[] = "1";
double ay = 0.;    char ayeq[] = "0";
/* ---------------------------------- */
/* ---------------------------------- */