However, we did not exploit this feature, in order to make the code more compatible with languages such as Visual BASIC and Fortran. function coscomp(x,n) i = 1; tru = cos(x); approx = 0; f = 1; fprintf(n); fprintf(order true value approximation errorn); while (1) if i > n, break, end approx = approx + (-1)^(i - 1) * x^(2*i-2) / f; er = (tru - approx) / tru * 100; fprintf(%3d %14.10f %14.10f %12.8