*/
Check out and contribute to CodePedia, the wiki for developers.
*/

View \c03a4A.c

Calculus (Derivative:Tangent). v04

Submitted By: xhunga
Rating: (Not rated) (Rate It)


/*         .c                       freeware                   [[Email Removed]]
*/

/* --------------------------------- INCLUDES ------------------------------- */
#include "xa_hfile.h"
#include    "f___4.h"
/* --------------------------------- MAIN ----------------------------------- */
int main(void)
{
double (*P_f)(double x);
double (*PDf)(double x);

double c = 1;
/*-------------------------------- PROGRAM ---------------------------------- */
 P_f =  f;
 PDf = Df;

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

 printf(" With c = %0.3f, the equation of the tangent is :\n\n",c);
 printf("       Df(c) (x-c) + f(c) = ");
 eq_Tan(  c,
       (*P_f),
       (*PDf)
       );
 printf("\n\n\n");
                         /* plot [xmin:xmax] [ymin:ymax] */
     gplt_Tan  (-4,      /* xmin */
                 4,      /* xmax */
                -4,      /* ymin */
                 4,      /* ymax */
                 c,
               feq,
            (*P_f),
            (*PDf)
               );

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

 return 0;
}

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.