/* --------------------------------- */
/* save as fa.h */
/* --------------------------------- */
double f(
double t)
{
return( cos(t));
}
char feq[] = "cos(t)";
/* --------------------------------- */
double g(
double t)
{
return( sin(t));
}
char geq[] = "sin(t)";
/* --------------------------------- */
double h(
double t)
{
return( t);
}
char heq[] = "t";
/* --------------------------------- */
/* --------------------------------- */
void axe_3d(void)
{
FILE *fp;
fp = fopen("draw_axe","w");
fprintf(fp,"\n");
fprintf(fp," 1.000 0.000 0.000\n");
fprintf(fp," -1.000 0.000 0.000\n");
fprintf(fp," 0.000 0.000 0.000\n");
fprintf(fp," 0.000 1.000 0.000\n");
fprintf(fp," 0.000 -1.000 0.000\n");
fprintf(fp," 0.000 0.000 0.000\n");
fprintf(fp," 0.000 0.000 1.000\n");
fprintf(fp," 0.000 0.000 -1.000 \n");
fprintf(fp,"\n");
fclose(fp);
}
/* --------------------------------- */
/* --------------------------------- */