Mathc initiation/Fichiers h : c27ba


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  - 4*x*y) );
}
/* --------------------------------- */
char  feq[] = "x**2 - 4*x*y";
/* --------------------------------- */
/* --------------------------------- */
fb.h
/* --------------------------------- */
/* save as fb.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(      sqrt( x*x  + y*y) );
}
/* --------------------------------- */
char  feq[] = "sqrt(x**2 + y**2)";
/* --------------------------------- */
/* --------------------------------- */
fc.h
/* --------------------------------- */
/* save as fc.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return((2*x*x-3*x*y+8*y*y+2*x-4*y+4));
}
/* --------------------------------- */        
char  feq[] = "2*x**2-3*x*y+8*y**2+2*x-4*y+4";
/* --------------------------------- */
/* --------------------------------- */
fd.h
/* --------------------------------- */
/* save as fd.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return( (cos(x*y)) );
}
/* --------------------------------- */
char  feq[] = "cos(x*y)";
/* --------------------------------- */
/* --------------------------------- */
fe.h
/* --------------------------------- */
/* save as fe.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return( cos(x)+sin(y) );
}
/* --------------------------------- */
char  feq[] = "cos(x)+sin(y)";
/* --------------------------------- */
/* --------------------------------- */
ff.h
/* --------------------------------- */
/* save as ff.h                    */
/* --------------------------------- */
double f(
double x,
double y,
double z)
{
 return(      (y*z*z*z-2*x*x) );
}
char  feq[] = "y*z**3 - 2*x**2";
/* --------------------------------- */
/* --------------------------------- */