This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
math: fix a bug in real::cbrt() that completely broke the function.
legacy
Sam Hocevar
5 years ago
parent
90bf8a37d5
commit
5814dd4cf0
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/math/real.cpp
+ 1
- 1
src/math/real.cpp
View File
@@ -821,7 +821,7 @@ template<> real cbrt(real const &x)
real third = inverse(real::R_3());
for (int i = 1; i <= x.bigit_count(); i *= 2)
{
ret = third * (x / (ret * ret) + (ret
/
2));
ret = third * (x / (ret * ret) + (ret
*
2));
}
return ret;
Write
Preview
Loading…
Cancel
Save