This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# probe: how accurate are log2, log10 and log on a Float64? (true values: 0.5 3.321928094887362 0.3010299956639812 0.6931471805599453)
|
||||
from std.math import log, log2, log10, sqrt
|
||||
|
||||
|
||||
def main():
|
||||
var two = 2.0
|
||||
var ten = 10.0
|
||||
print(log2(sqrt(two)), log2(ten), log10(two), log(two))
|
||||
Reference in new issue
Block a user