Finding Square Roots solution

in the finding square root problems, are you supposed to implement your own algorithm for it ? or are you supposed to use the library presented function ?
because I saw a bunch of people using lirbary presented function and I follow them…

You can definitely use the library functions, there is no problem with that. for eg->
we use sqrt() in C++ to find square roots.

But for some functions like pow() , i would recommend to learn their implementation as well which is available easily on internet.

1 Like

well…I did use he built in library function in Dlang sqrt, but it gave me runtime error, the C++ version works wonder though, I wonder why

Sorry i have got no idea about D !!