Aller au contenu

Mathc initiation/Fichiers h : x 69a5

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(      (2*exp(-x) * cos(y)) );
}
/* --------------------------------- */
char  feq[] = "2*exp(-x) * cos(y)";
/* --------------------------------- */
/* --------------------------------- */

/* --------------------------------- */
/* --------------------------------- */
double f_mnsz(
double x,
double y,
double z)
{
 return(      (2*exp(-x) * cos(y) - z) );
}
/* --------------------------------- */
char  f_zeq[] = "2*exp(-x) * cos(y) - z";
/* --------------------------------- */
/* --------------------------------- */
fb.h
/* --------------------------------- */
/* save as fb.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(       cos(x)+cos(y) );
}
/* --------------------------------- */
char  feq[] = "cos(x)+cos(y)";
/* --------------------------------- */
/* --------------------------------- */

/* --------------------------------- */
/* --------------------------------- */
double f_mnsz(
double x,
double y,
double z)
{
 return(         cos(x)+cos(y)-z );
}
char  f_mnszeq[] = "cos(x)+cos(y)-z";
/* --------------------------------- */
/* --------------------------------- */
fc.h
/* --------------------------------- */
/* save as fc.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return( (cos(x*y)) );
}
/* --------------------------------- */
char  feq[] = "cos(x*y)";
/* --------------------------------- */
/* --------------------------------- */

/* --------------------------------- */
/* --------------------------------- */
double f_mnsz(
double x,
double y,
double z)
{
 return(            (cos(x*y))-z);
}
/* --------------------------------- */
char  f_mnszeq[] = "(cos(x*y))-z";
/* --------------------------------- */
/* --------------------------------- */
fd.h
/* --------------------------------- */
/* save as fd.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(      (x*x  - 4*x*y) );
}
/* --------------------------------- */
char  feq[] = "x**2 - 4*x*y";
/* --------------------------------- */
/* --------------------------------- */

/* --------------------------------- */
/* --------------------------------- */
double f_mnsz(
double x,
double y,
double z)
{
 return(            (x*x - 4*x*y) - z);
}
char  f_mnszeq[] = "(x*x - 4*x*y) - z";
/* --------------------------------- */
/* --------------------------------- */
fe.h
/* --------------------------------- */
/* save as fe.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(      sqrt( x*x  + y*y) );
}
/* --------------------------------- */
char  feq[] = "sqrt(x**2 + y**2)";
/* --------------------------------- */
/* --------------------------------- */

/* --------------------------------- */
/* --------------------------------- */
double f_mnsz(
double x,
double y,
double z)
{
 return(            sqrt( x*x + y*y) - z);
}
char  f_mnszeq[] = "sqrt( x*x + y*y) - z";
/* --------------------------------- */
/* --------------------------------- */