Guest User

Untitled

a guest
Dec 10th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. //My Code
  2. #include <iostream>
  3. #include <stdio.h>
  4. #include <cmath>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.  
  10. double y;
  11. double x = 21;
  12.  
  13.  
  14. y = 30 * sqrt(x * (1/(tan(sqrt(3*x) - 2.1))));
  15.  
  16. printf ("The value is: n=> %f", y );
  17.  
  18.  
  19. }
  20.  
  21. y = 30 * sqrt(x * (1/(tan((sqrt(3*x) - 2.1)*M_PI/180))));
  22.  
  23. printf( "sqrt(3*x) = %lfn", sqrt(3*x));
  24. printf( "sqrt(3*x) - 2.1 = %lfn", sqrt(3*x) - 2.1);
  25. printf( "tan(sqrt(3*x) - 2.1) = %lfn", tan(sqrt(3*x) - 2.1));
  26.  
  27. std::complex<double> two_i = std::sqrt(std::complex<double>(-4));
Add Comment
Please, Sign In to add comment