OpenCores

Random Number Generator Library

Issue List
Use of LOG in calculation of gaussian noise #1
Closed raschnie opened this issue over 15 years ago
raschnie commented over 15 years ago

The "log" function in line 158 should be the natural logarithm, but it is the logarithm to the base of 10 (as defined in the math_lib package). Use "ln" from that package, so that line 158 reads like: rnd_out.rnd := rnd_out.y + rnd_out.z y sqrt(-2.0 * ln(z)/z);

(additional comment: "log" from ieee.math_real is the natural logarithm.)

gedra commented almost 9 years ago

That has been fixed.

gedra closed this almost 9 years ago

Assignee
No one
Labels
Bug