I use the math.h library and in it to find the cubic root there is a function cbrt(); Only here when compiling Visual Studio says: error C3861: cbrt: ID not found.
My code is:
#include <stdio.h> #include <cmath> int main() { double PI = 3.1415926535897932384626433832795, x=0.25, y=1.31, a=3.5, b=0.9, P; printf("Вы запустили программу для решения задачи 1 из лабораторной 1! \n"); printf("Программа начинает расчет, ожидайте... \n"); P=fabs((pow(sin(a*pow(x,3)+b*pow(y,2)-a*b),3))/(cbrt(pow((a*x*3+b*pow(y,2)-a),2)+PI)))+tan(a*pow(x,3)+b*pow(y,2)-a*b); printf("Ответ для Задачи 1: %d \n", P); return 0; } How to solve the problem?