Mathc initiation/Fichiers h : x 66cc

Un livre de Wikilivres.


Sommaire


Installer et compiler ces fichiers dans votre répertoire de travail.

c16c.c
/* ---------------------------------- */
/* save as c16c.c                     */
/* ---------------------------------- */
#include "x_hfile.h"
#include       "fc.h"
/* ---------------------------------- */
int main(void)
{
pt2d  p1 = {1,(2*PI)};

/* ---------------------------------- */
 clrscrn();
 
 printf("   Implicit differentiation.\n\n" 
 
        "            ****************\n\n"

 " If an equation F(x,y) = 0 determines,\n"
 " implicitly, a differentiable function g of\n"
 " one variable x such that y = g(x) then \n\n"

 
 "       dy      F_x(x,y)\n"
 "       --  = - --------\n"
 "       dx      F_y(x,y)\n\n");
 stop();

/* ---------------------------------- */
 clrscrn();
 printf("  f   : x,y-> %s\n\n\n\n",feq);

 printf("  In first verify that the point p(%0.2f,%0.2f)\n\n", p1.x,p1.y);
 printf("  satisfy the equation.\n\n");
 printf("  f(%0.2f,%0.2f) = %0.9f\n\n\n", 
           p1.x,p1.y,f(p1.x,p1.y));

 printf("  Now you can compute : y'](%0.2f,%0.2f)\n\n\n",p1.x,p1.y);

 printf("  y'](%0.2f,%0.2f) = %0.9f      with %s \n\n",
           p1.x,p1.y,dy(p1.x,p1.y),dyeq);
 printf("  y'](%0.2f,%0.2f) = %0.9f      with implicitDy(); \n\n",
           p1.x,p1.y, implicitDy(f,H,p1));

 stop();

 return 0;
}
/* ---------------------------------- */
/* ---------------------------------- */



Exemple de sortie écran :
   Implicit differentiation.

            ****************

 If an equation F(x,y) = 0 determines,
 implicitly, a differentiable function g of
 one variable x such that y = g(x) then 

       dy      F_x(x,y)
       --  = - --------
       dx      F_y(x,y)

 Press return to continue.


Exemple de sortie écran :
  f   : x,y-> x**2 * y + sin(y) - 2*PI



  In first verify that the point p(1.00,6.28)

  satisfy the equation.

  f(1.00,6.28) = 0.000000000


  Now you can compute : y'](1.00,6.28)


  y'](1.00,6.28) = -6.283185307      with -(2*x*y)/(x**2 + cos(y)) 

  y'](1.00,6.28) = -6.283185312      with implicitDy(); 

 Press return to continue.