Mathc initiation/Fichiers h : x 69cc
Apparence
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)
{
double t = 2.*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-> x*log(x+2*y)
x : t-> sin(t)
y : t-> cos(t)
dz/dt = 0.69314718
f : t-> sin(t)*log(sin(t)+2*cos(t))
f_t = 0.69314717
Press return to continue.