#include #include #include using namespace std; int main() { valarray v1 (90), v2(90), v3(90), v4(90); for (int i=0; i<90; i++) v1[i] = i * M_PI/180.; v2 = pow(sin(v1), 2.); v3 = pow(cos(v1), 2.); v4 = v2 + v3; cout << fixed << setprecision (3); for (int i=0; i<90; i++) cout << v2[i] <<'\t'<< v3[i] <<'\t'<< v4[i] << endl; return 0; }