Fix typos in package linalg; Fix norm_float64 in package rand

This commit is contained in:
gingerBill committed 2019-10-27 18:43:40 +00:00
1 parent 5e81fc72b9
commit a29a6d9285
2 files changed
+10 -5

No files matched your search

+2 -2
View File
@@ -128,8 +128,8 @@ norm_float64 :: proc(r: ^Rand = global_rand_ptr) -> f64 {
if i == 0 {
for {
x = -math.log(float64(r)) * (1.0/ rn);
y := -math.log(float64(r));
x = -math.ln(float64(r)) * (1.0/ rn);
y := -math.ln(float64(r));
if y+y >= x*x {
break;
}