Good day!

I'm just starting to work on c++.

There is a task:

You need to write a console application to get the answer

** c** .

I wrote a function, the answer comes out completely different. Not the one specified in the task. I can't understand whether I made a mistake somewhere, or there is a mistake in the task!

`#define _USE_MATH_DEFINES //математические константы`

#include <iostream>

#include <math.h>

using namespace std;

int main() {

setlocale(LC_ALL, "rus");

double x, y, z, f, s, t;

x = 3.251;

y = 0.325;

z = 0.466*pow(10, -4);

/* Поэтапоное решение */

f = pow(2, pow(y, x)) + pow(pow(3, x), y); //1

s = y * (atan(z) - M_PI / 6); //2

t = abs(x) + (1 / pow(y, 2) + 1); //3

cout << "Результат c = " << f - s / t;

return 0;

}

My answer: