c03b3b.c

来自「c源码」· C语言 代码 · 共 42 行

C
42
字号
/*         .c                       freeware                   xhunga@tiscali.fr
*/
/* --------------------------------- INCLUDES ------------------------------- */
#include "xa_hfile.h"
#include    "f___3.h"
/* --------------------------------- MAIN ----------------------------------- */
int main(void)
{
double (*P_f)(double x);
double (*PDf)(double x);
/*-------------------------------- PROGRAM ---------------------------------- */
 P_f =  f;
 PDf = Df;

 clrscrn();
 printf("  f : x-> %s\n\n",     feq);
 printf(" Df : x-> %s\n\n\n\n",Dfeq);

 printf(" The equation of the tangent is :    Df(a) (x-a) + f(a)\n\n");
 printf(" The equation of the  normal is : -1/Df(a) (x-a) + f(a)\n\n");

     gplt_NormA( 0,      /* xmin  plot [xmin:xmax] [ymin:ymax] */
                 2,      /* xmax  */
                 0,      /* ymin  */
                 2,      /* ymax  */
               0.2,      /* amin  */
                 2,      /* amax  */
                .2,      /* astep */
               feq,
         (*P_f),
         (*PDf)
              );

 printf("\n\n\n\n");
 printf(" To see the graph, open the file \"f_Df.plt\" with Gnuplot.\n\n");
 printf(" Press return to continue\n");
 getchar();

 return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?