Aller au contenu

Mathc initiation/Fichiers h : c24ba

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                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(      (x*x  + y*y  - 1) );
}
char  feq[] = "x**2 + y**2 - 1";
/* --------------------------------- */
double g(
double x,
double y)
{
 return(     ( y - sin(x) ) );
}
char  geq[] = "y - sin(x)";
/* --------------------------------- */
fb.h
/* --------------------------------- */
/* save as fb.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(      ( (x*x)/4  + (y*y)/9  - 1 ) );
}
char  feq[] = "(x**2)/4  + (y**2)/9  - 1";
/* --------------------------------- */
double g(
double x,
double y)
{
 return(  ((x-1)*(x-1))/10 + ((y+1)*(y+1))/5 - 1  );
}
char  geq[] = "((x-1)**2)/10 + ((y+1)**2)/5 - 1";
/* --------------------------------- */
fc.h
/* --------------------------------- */
/* save as fc.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(      ( (x*x)/9  + (y*y)/4  - 1 ) );
}
char  feq[] = "(x**2)/9  + (y**2)/4  - 1";
/* --------------------------------- */
double g(
double x,
double y)
{
 return(  ((x-1)*(x-1))/2 + ((y-1)*(y-1))/3 - 1  );
}
char  geq[] = "((x-1)**2)/2 + ((y-1)**2)/3 - 1";
/* --------------------------------- */