S
Announcement
Collapse
No announcement yet.
Another way of Squaring?
Collapse
X
-
LookUp Tables.
But Finally it's the same.
-------------------
Last edited by floxy; 08-31-2009, 06:30 AM.
i search a good source code for Dods with aimbot and other stuff i know this is the same engine as counter strike source but css hacks are not work in dods.
-
Originally posted by entername View PostThat is the reverse of a square root?
why do you need a different way to sqrt whats wrong with that.
Comment
-
this is what i came up today :D
Code:double my_sqrt( double number, int tries = 10 ) { double sqrt; double a1, a2; a1 = number; a2 = 1; for( int i = 0; i < tries; i++ ) { a1 = ( a1 + a2 ) / 2; a2 = number / a1; } sqrt = ( a1 + a2 ) / 2; return sqrt; }
Math Forum - Ask Dr. Math
Comment
Comment