Mathc initiation/Fichiers h : c25ba


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(       (y*y * sin(x*y)) );
}
char  feq[] = "y**2 * sin(x*y)";
/* --------------------------------- */
double f_x(
double x,
double y)
{
 return(       (y*y*y * cos(x*y)) );
}
char Dfeq_x[] = "y**3 * cos(x*y)";
/* --------------------------------- */
double f_y(
double x,
double y)
{
 return(        (x* y*y * cos(x*y) + 2*y * sin(x*y))  );
}
char Dfeq_y[] = "x*y**2 * cos(x*y) + 2*y * sin(x*y)";
/* --------------------------------- */
double f_xx(
double x,
double y)
{
 return(    ( -y*y*y*y * sin(x*y) ) );
}
char Dfeq_xx[] = "-y**4 * sin(x*y)";
/* --------------------------------- */
double f_yy(
double x,
double y)
{
 return(        (4*cos(x*y)*x*y + 2*sin(x*y) - y*y*sin(x*y)*x*x)  );
}
char Dfeq_yy[] = "4*cos(x*y)*x*y + 2*sin(x*y) - y**2*sin(x*y)*x**2";
/* --------------------------------- */
fb.h
/* --------------------------------- */
/* save as fb.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(     (x*x*x * y*y  - 2*x*x  * y + 3*x) );
}
char  feq[] = "x**3 * y**2 - 2*x**2 * y + 3*x";
/* --------------------------------- */
double f_x(
double x,
double y)
{
 return(       (3*x*x   * y*y  - 4*x * y + 3) );
}
char Dfeq_x[] = "3*x**2 * y**2 - 4*x * y + 3";
/* --------------------------------- */
double f_y(
double x,
double y)
{
 return(       (2*x*x*x * y - 2*x*x)  );
}
char Dfeq_y[] = "2*x**3 * y - 2*x**2";
/* --------------------------------- */
double f_xx(
double x,
double y)
{
 return(        (6*x * y*y  - 4*y) );
}
char Dfeq_xx[] = "6*x * y**2 - 4*y";
/* --------------------------------- */
double f_yy(
double x,
double y)
{
 return(       (2*x*x*x)  );
}
char Dfeq_yy[] = "2*x**3";
/* --------------------------------- */
fc.h
/* --------------------------------- */
/* save as fc.h                      */
/* --------------------------------- */
double f(
double x,
double y)
{
 return(       exp(2*x+3*y) );
}
char  feq[] = "exp(2*x+3*y)";
/* --------------------------------- */
double f_x(
double x,
double y)
{
 return(       (2*exp(2*x+3*y)) );
}
char Dfeq_x[] = "2*exp(2*x+3*y)";
/* --------------------------------- */
double f_y(
double x,
double y)
{
 return(        (3*exp(2*x+3*y))  );
}
char Dfeq_y[] = "3*exp(2*x+3*y)";
/* --------------------------------- */
double f_xx(
double x,
double y)
{
 return(         (4*exp(2*x+3*y)) );
}
char Dfeq_xx[] = "4*exp(2*x+3*y)";
/* --------------------------------- */
double f_yy(
double x,
double y)
{
 return(        (9*exp(2*x+3*y))  );
}
char Dfeq_yy[] = "9*exp(2*x+3*y)";
/* --------------------------------- */