Programación polinomial
//#¿Incluir? "stdafx.h"//¿Si? ¿eso? vc++6.0,? ¿Qué usar? ¿este? Cable.
#¿Incluir? " stdio.h "
int? principal(vacío){
int? Yo;
¿Doble? tmp, cosx, x, t;
printf("¿Entrada? x (¿doble? ángulo)...\ NX = ");
scanf("%lf ",& ampx);
t = x/180 * 3.1415926535897932;
for(t*=t, cosx = tmp = I = 1; tmp & gt1.0E-6; i++) {
tmp * = t/(I+I)/(I+I-1);
cosx? +=?i&1?-tmp? :?tmp
}
printf("cos%g ≈?%g\n ",x,cosx);
¿Devolver? 0;
}