anon606

anton_4

Oct 23rd, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<math.h>
  4.  
  5. void main()
  6. {
  7.     float x,y;
  8.    float min = 1000000;
  9.     printf("      x|y\n");
  10.     for (x = -1.7; x <= 1.7; x+=0.2)
  11.     {
  12.         y = tan(x)*tan(x)*sqrt(5.1*x*x)/pow(x, 4);
  13.       if (y < min)
  14.         min = y;
  15.         printf("%7.2f|%7.2f\n", x, y);
  16.     }
  17.    printf("\nMin = %.2f",min);
  18.     getch();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment