Mathc initiation/Fichiers h : x 69cb


Sommaire


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

c16b.c
/* ---------------------------------- */
/* save as c16b.c                     */
/* ---------------------------------- */
#include "x_hfile.h"
#include       "fb.h"
/* ---------------------------------- */
int main(void)
{
double    t =   PI;

 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-> sin(x)*cos(y)

  x :   t-> PI*t
  y :   t-> sqrt(t)

  dz/dt  = 0.68693235

  f : t-> sin(PI*t)*cos(sqrt(t)) 

  f_t    = 0.68693233 

 Press return to continue.