double cos1(double e){ double cos_x=0; double temp=1; for (int i=0;i<5;) { cos_x += pow(-1,i)*pow(x,2*i)/temp; i++; temp *= 2*i*(2*i-1); } return cos_x;}