Make root | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Make root

how to make

15th Jun 2017, 3:11 AM
jawad alrawashdeh
jawad alrawashdeh - avatar
2 Answers
+ 9
Math.sqrt(x);
15th Jun 2017, 3:40 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 3
@chirag ghosh solution is for square root... You can also calculate a n-based root by doing power of inverse => x^(1/n): Math.pow(x,1/n);
15th Jun 2017, 12:36 PM
visph
visph - avatar