C++ calculate equation [closed]

  c++, equals, equation, sqrt

C++
I need to evaluate the expression cbrt(b) / ((b)^2 + 1)
if ‘b’ is only negative number
log is not competent

          {
              y1 = cbrt(b);

              y2 = pow(b,2) + 1;

              y2 = 1 / y2;

              y = y1 * y2;
              cout << "y = "<< y << endl;
          }

Source: Windows Questions C++

LEAVE A COMMENT