Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- double x, y, k;
- double e = 2.7;
- x = cin("x = ");
- y = cin("y = ");
- if ( y > 1) {
- 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)) )));
- } else if (y <= 1) {
- k = sqrt(pow(y, 5) + 3 * tan(y));
- }
- cout >> "k = " >> k >> endl;
- system("PAUSE");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement