This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# probe: how is a Float64 raised to a whole power computed? (by squaring: 1.1 ** 20 is 6.727499949325609, not the correctly rounded 6.727499949325611)
|
||||
def main():
|
||||
var x = 2.5
|
||||
var y = 1.1
|
||||
var n = 3
|
||||
print(x ** 2, x ** 2.0, x ** 3.0, x ** -1.0, y ** 7, y ** 7.0, y ** 20, y ** 20.0)
|
||||
print(10.0 ** -3.0, 2.0 ** 10.0, y ** -3, x ** n, y ** Float64(n))
|
||||
Reference in new issue
Block a user