Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. // Example program
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5. int main()
  6. {
  7. double x, y, k;
  8. double e = 2.7;
  9. x = cin("x = ");
  10. y = cin("y = ");
  11. if ( y > 1) {
  12. k = ((cos((1+pow(y,2))) / sin((1+pow(y,2)))) + 2 * ( (3* sin(y-1) - sin (3 * (y-1))) / (3* cos(y-1) + cos(3 * (y-1))) )) / (log10(abs(pow(y, 3) + (1+cos(2*x))+ log10(y) - pow(e, (3*y)) )));
  13. } else if (y <= 1) {
  14. k = sqrt(pow(y, 5) + 3 * tan(y));
  15. }
  16. cout >> "k = " >> k >> endl;
  17. system("PAUSE");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement