Quick actions

cmd+k|ctrl+k

Navigation

Languages

Вариант 9

Snippet info

Language

Cpp

Visibility

public

Author

sergey

Created

2019-09-16T05:51:55Z

Updated

2019-09-16T06:06:22Z

#include <iostream>
#include <cmath>
using namespace std;
                           
int main() 
{
    double x, k, Z;
    cout << "Вариант 9" << endl;
    //cout << "Введите x" << endl;
    cin >> x;
    k = 1 + pow(x ,2);
    setlocale(LC_ALL,"Russian");
    if (k <= 0) {cout << "Решений нет";}
    else { 
        if (fabs(cos (x)) == 0) {cout << "Решений нет";} 
        else { Z = log (fabs (cos(x))) / log (k) ;}
        ;}
        cout << "Z = " << Z << endl;
    return 0;
}
INFO