Files
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

8 lines
367 B
Mojo

# 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))