Lab 5

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <cmath> using namespace std; int main() { int x, b = 1; double a = 0.5, y, h; for (int i = 1; i <= 7; i++) { cin>>x; h = 2 * a * b - x; y = (pow(cos(2 * x), 3) - pow(sin(3 * x), 2)) / h; if(h!=0){cout << "x = " << x << " ---> " << "y = " << y << endl;} else {cout << "При х = "<<x<<" график не существует" << endl;} } return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines