0

Roots in C++

As you know there is no operator to calculate a root of a number, so if you want to know a root you have to search between numbers until you find one big (with big i mean with a lot of decimals) enough that its able to create the right number when you make it squared. So if you are interested or up for a challange help me out.

13th May 2018, 4:55 PM
Stef Spooren
Stef Spooren - avatar
1 Answer
+ 7
You still have the sqrt() function in the math.h header file that returns the square root of a number!
13th May 2018, 4:59 PM
Naveen Maurya
Naveen Maurya - avatar