aboutsummaryrefslogtreecommitdiff
path: root/src/base/rng/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/rng/normal.c')
-rw-r--r--src/base/rng/normal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/rng/normal.c b/src/base/rng/normal.c
index aab5731..8e3e5d4 100644
--- a/src/base/rng/normal.c
+++ b/src/base/rng/normal.c
@@ -53,7 +53,7 @@ erfinv(double x)
z2 = ((((((b7*r+b6)*r+b5)*r+b4)*r+b3)*r+b2)*r+b1)*r + b0;
return s*(x*z1) / z2;
}
- r = sqrt(Ln2 - log(1.0-x));
+ r = math·sqrt(Ln2 - math·log(1.0-x));
if(r <= 5.0) {
r -= 1.6;
z1 = ((((((c7*r+c6)*r+c5)*r+c4)*r+c3)*r+c2)*r+c1)*r + c0;
@@ -73,5 +73,5 @@ rng·normal(void)
double f;
f = rng·random();
- return sqrt(2)*erfinv(2*f-1);
+ return math·sqrt(2)*erfinv(2*f-1);
}