Fix typos in package linalg; Fix norm_float64 in package rand
This commit is contained in:
1 parent
5e81fc72b9
commit
a29a6d9285
2 files changed
+10
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user