如何将这个数学方程写进c++

How to write this math equationn into c++

本文关键字:方程写 c++      更新时间:2023-10-16

我不知道如何用c++写公式,我不能使用库函数求幂

         4x^3 + 8x^2 + 9x - 18
y = --------------------------
       |7 – x3| + (3x^2 + 18)1/2

| |表示绝对值;(…)1/2表示平方根

(4*x*x*x + 8*x*x + 9*x - 18) / (std::abs(7 – x*x*x) + std::sqrt(3*x*x + 18))