mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Update math/inv_sqrt.cpp
Update comment Co-authored-by: David Leal <halfpacho@gmail.com>
This commit is contained in:
parent
48a3577064
commit
ed4ecad4c6
@ -17,7 +17,7 @@
|
||||
* This is the function that calculate Fast inverse square root.
|
||||
* The following code is the fast inverse square root implementation from Quake
|
||||
* III Arena (Adapted for C++)
|
||||
* More info: https://en.wikipedia.org/wiki/Fast_inverse_square_root
|
||||
* More information can be found at [Wikipedia](https://en.wikipedia.org/wiki/Fast_inverse_square_root)
|
||||
* @tparam T floating type
|
||||
* @tparam iterations inverse square root, the greater the number of iterations,
|
||||
* the more exact the result will be (1 or 2).
|
||||
|
Loading…
x
Reference in New Issue
Block a user