Mathc initiation/Fichiers h : x 69ca


Sommaire


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

c16a.c
/* ---------------------------------- */
/* save as c16a.c                     */
/* ---------------------------------- */
#include "x_hfile.h"
#include       "fa.h"
/* ---------------------------------- */
int main(void)
{
double    t= 0.;

 clrscrn(); 
 printf("    Chaine Rules\n\n"

 "   If z = f(x,y) with x = g(t), y = h(t),\n"
 "   and if f, g and h are differentiable\n"
 "   then\n\n"

 "    dz    @Z dx    @Z dy\n"
 "    -- =  -- --  + -- --\n"
 "    dt    @x dt    @y dt\n\n\n");

 printf("  Z : x,y-> %s\n\n",Zeq);
 printf("  x :   t-> %s\n",  Xeq);
 printf("  y :   t-> %s\n\n",Yeq);
 printf("  dz/dt  = %0.8f\n\n",
           implicitDZ_t( Z,
                         X,
                         Y,
                         H,
                         t) );
           
  printf("  f : t-> %s \n\n",feq);
  printf("  f_t    = %0.8f \n\n",
           fx_x(f,t,H) );
 stop();

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



Exemple de sortie écran :
    Chaine Rules

   If z = f(x,y) with x = g(t), y = h(t),
   and if f, g and h are differentiable
   then

    dz    @Z dx    @Z dy
    -- =  -- --  + -- --
    dt    @x dt    @y dt


  Z : x,y-> x**2*y+3*x*y**4

  x :   t-> sin(2*t)
  y :   t-> cos(t)

  dz/dt  = 5.99999996

  f : t-> sin(2*t)**2*cos(t)+3*sin(2*t)*cos(t)**4 

  f_t    = 5.99999984 

 Press return to continue.