[Solved] how to solve radical expression using javascript [closed]


JavaScript’s exponentiation function is Math.pow(base, exponent), so the 4th root of 8 is Math.pow(8, 1/4).

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow?redirectlocale=en-US&redirectslug=JavaScript%2FReference%2FGlobal_Objects%2FMath%2Fpow et al.

If you’re asking how to parse those strings of yours and evaluate, that’s a different thing altogether.

0

solved how to solve radical expression using javascript [closed]