Вычислить значение Z = tan(x^a) , x € [–2,3] с шагом 0,3, a = 0,4
#include <iostream> #include <cmath> using namespace std; float function(float x, float a) { return tan(pow(x, a)); } int main() { for(float x = -2; x <= 3; x += 0.3) { cout << x << " " << function(x, 0.4) << endl; } }