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);
/*-------------------------------- PROGRAM ---------------------------------- */
P_f = f;
PDf = Df;
clrscrn();
printf(" f : x-> %s\n\n", feq);
printf(" Df : x-> %s\n\n",Dfeq);
printf(" The equation of the tangent is : \n\n\n\n");
printf(" Df(c) (x-c) + f(c) = 0\n\n\n\n");
/* plot [xmin:xmax] [ymin:ymax] */
gplt_TanA (-4, /* xmin */
4, /* xmax */
-4, /* ymin */
4, /* ymax */
-1.5, /* amin */
2, /* amax */
.2, /* astep */
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;
}