Mathc initiation/a163
Apparence
Sommaire ◀ Utilise la commande "Retour en Arrière" de ton navigateur.
Installer ce fichier dans votre répertoire de travail.
kg_r.h |
---|
/* --------------------------------- */
/* save as kg_r.h */
/* --------------------------------- */
void G_C_2d_r(
CTRL_splot w,
double (*P_f)(double t),
double (*P_g)(double t),
tvalue t
)
{
FILE *fp;
fp = fopen("a_main.plt","w");
fprintf(fp," reset\n"
" set size ratio -1\n"
" set zeroaxis lt 8\n"
" set grid\n\n"
" plot [%0.3f:%0.3f] [%0.3f:%0.3f]\\\n"
" \"a_c01\" with line lt 7 lw 3,\\\n"
" \"a_c02\" with line lt 7 lw 3,\\\n"
" \"a_r01\" with line lt 7 lw 3,\\\n"
" \"a_curv\" with line lt 6 lw 3\n",
w.xmin,w.xmax,w.ymin,w.ymax);
fclose(fp);
fp = fopen("a_curv","w");
for(t.value=t.min; t.value<=t.max; t.value+=t.step)
fprintf(fp," %6.5f %6.5f\n",
(*P_f)(t.value),(*P_g)(t.value));
fclose(fp);
}
/* --------------------------------- */
/* --------------------------------- */