constk

Task_2

Oct 2nd, 2019
136
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include <iostream>
  4.  
  5. int main() {
  6. setlocale(0, "Russian");
  7.  
  8. const double pi = 3.14159;
  9. int a;
  10. float z1, z2;
  11. printf("Пожалуйста введите a: ");
  12. scanf("%d", &a);
  13.  
  14. z1 = 2 * sin(3 * pi - 2 * a)*sin(3 * pi - 2 * a)*cos(2 * pi + 2 * a)*cos(2 * pi + 2 * a);
  15. z2 = 0.25 - 0.25 * sin((5.0 / 2.0) * pi - 8 * a);
  16.  
  17. printf("z1 = %f\n", z1);
  18. printf("z2 = %f\n", z2);
  19.  
  20. system("Pause");
  21. return 0;
  22. }
RAW Paste Data