Thread
:
[Snippet] Natural Logarithm
View Single Post
09-07-2009, 09:31 AM
#
8
(
permalink
)
Shadow Daemon
User
Join Date: Nov 2008
Posts: 184
@
BlinkBoy
: there's a small mistype:
Jass:
float LogB
(
float a
,
float b
)
{
// should be Ln(a)/Ln(b);
return
Ln
(
a
)
/
Ln
(
base
)
;
}
and shouldn't be dot here:
Jass:
// here __ (1./a)
return
sum
+
(
a
-
1
.
)
*
(
1
.
+
8
./
(
1
.+
a
)
+
1
/
a
)
/
6
.
;
__________________
» Random favourite tune
»
Button Manager v1.8.2
»
BLP Laboratory v0.5.0
» "/quit Shadow_Daemon"
Statica - Sundown (Original Mix)
.
The solution for icon makers.
Advanced texture viewer & converter.
is not supported by kernel.
Shadow Daemon
View Public Profile
Send a private message to Shadow Daemon
Find More Posts by Shadow Daemon