Aller au contenu

Mathc initiation/0001

Un livre de Wikilivres.


Sommaire


Installer ce fichier dans votre répertoire de travail.

kg_feq.h
/* --------------------------------- */
/* save as  kg_feq.h                 */
/* --------------------------------- */
void G_feq_2d(
CTRL_splot  w,
char        feq[]
)
{
FILE   *fp = fopen("a_main.plt","w");
      
fprintf(fp," reset\n"
           " set zeroaxis lt 8\n"
           " set grid\n\n"
           " set size ratio -1\n"
           " plot [%0.3f:%0.3f] [%0.3f:%0.3f]\\\n"
           " %s    with line  lt  6 lw 3\n",
             w.xmin,w.xmax,w.ymin,w.ymax,
             feq);
 fclose(fp);
}
/* --------------------------------- */
/* --------------------------------- */