#include #include #include "header.h" main(){ double tol = 1e-8; /* evaluate the sine function approximately */ double a = mysin(1.2 , tol ); /* evaluate the inverse of the approximate sine function approximately */ double b = myasin(a, tol); /* print results */ printf ("mysin(1.2)=%17.15lg , sin(1.2)=%17.15lg," "difference=%17.15lg\n", a, sin(1.2), fabs(a-sin(1.2))); printf("myasin(mysin(1.2)) = %17.15lg , error=%17.15lg\n", b, fabs(b-1.2)); }