🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

sqrt(...)

Started by
4 comments, last by SKSlayer 24 years, 1 month ago
what is sqrt(...) ? which library does it comes from ? how do I use it ? whatfor ?
(you can find me on IRC : #opengl on undernet)
Advertisement
sqrt() is the square root function. It''s either in math.h or stdlib.h (can''t remember which).

You can use it for anything you''d need a square root for. Of course, it''s pretty slow. If you need it in a speedy way, you could think about lookup tables.
I am french and I don''t understand Square root ... Could you give me an example




-----------------
(you can find me on IRC : #opengl on undernet)
(Example)

5 * 5 = 25
sqrt(25) = 5

"Square root" = Ö

---------------
kieren_j
The square root of a number a is a number b such that when multiplied b is multiplied by itself a is the result.

If b * b = a then b is a square root of a.
Ooooh Yeah

Thank you very much, hey, that look awesome
(you can find me on IRC : #opengl on undernet)

This topic is closed to new replies.

Advertisement