#include <cstdlib>
#include <iostream>
#include <ctime>
#include <clocale>
#include <cmath>
#define math
using namespace std;
int main() {
system("chcp 1251");
setlocale(LC_ALL, "Rus");
srand(time(NULL));
double x = -4.500, y = 0.750, z = 0.845;
cout << exp(abs(x - y)) * (pow(tan(z), 2) + 1) << endl;
system("pause");
return 0;
}
Поделитесь своими знаниями, ответьте на вопрос:
Скласти программу С++ . Скласти схему алгоритму та программу для обчислення заданої функції. Функція b=e :в степені : (x-y) (tg^2+1) , при х=-4500 у=0.750 z=0.845
#include <cstdlib>
#include <iostream>
#include <ctime>
#include <clocale>
#include <cmath>
#define math
using namespace std;
int main() {
system("chcp 1251");
setlocale(LC_ALL, "Rus");
srand(time(NULL));
double x = -4.500, y = 0.750, z = 0.845;
cout << exp(abs(x - y)) * (pow(tan(z), 2) + 1) << endl;
system("pause");
return 0;
}