This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# probe: how accurate are ** with a fractional exponent, exp and sqrt on a Float64? (true values: 1.4142135623730951 2.718281828459045 0.36787944117144233 1.4142135623730951)
|
||||
from std.math import exp, sqrt
|
||||
|
||||
|
||||
def main():
|
||||
var two = 2.0
|
||||
var one = 1.0
|
||||
print(two ** 0.5, exp(one), exp(-one), sqrt(two))
|
||||
Reference in new issue
Block a user