Mathc initiation/Fichiers h : c25bb
Apparence
Installer et compiler ces fichiers dans votre répertoire de travail.
c00b.c |
---|
/* --------------------------------- */
/* save as c00b.c */
/* --------------------------------- */
#include "x_hfile.h"
#include "fb.h"
/* --------------------------------- */
int main(void)
{
tvalue t;
t.value = PI+.2;
t.min = 0.;
t.max = 2*PI;
t.step = .03;
CTRL_splot p;
p.xmin = -4;
p.xmax = 8;
p.ymin = -2;
p.ymax = 4;
double cstep = 0.1;
circle( 1./fabs(Kt_2d(f,g,t.value)),
cx_2d(f,g,t.value),
cy_2d(f,g,t.value),
cstep);
G_C_2d( p,
f,g,
t);
clrscrn();
printf(" The curvature K of a smooth parametric"
" curve C is :\n\n\n"
" K = |f' g'' - g' f''| / "
"[ (f')^2 - (g')^2 ]^(3/2)\n\n"
" If P(f(t),g(t)) is a point on the curve \n"
" at which K != 0. The point M(h,k)"
" is the center\n"
" of the cuvature for P if \n\n\n"
" h = f - g'[f'^2 + g'^2] / [f'g''-f''g']\n"
" k = g + f'[f'^2 + g'^2] / [f'g''-f''g']\n\n\n"
" The radius is r = 1/|K| \n\n\n"
" ... load \"a_main.plt\" ... with gnuplot. \n\n");
stop();
return 0;
}
/* --------------------------------- */
/* --------------------------------- */
Exemple de sortie écran :
The curvature K of a smooth parametric curve C is :
K = |f' g'' - g' f''| / [ (f')^2 - (g')^2 ]^(3/2)
If P(f(t),g(t)) is a point on the curve
at which K != 0. The point M(h,k) is the center
of the cuvature for P if
h = f - g'[f'^2 + g'^2] / [f'g''-f''g']
k = g + f'[f'^2 + g'^2] / [f'g''-f''g']
The radius is r = 1/|K|
Open the file "a_main.plt" with Gnuplot.
Press return to continue.