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

9 lines
332 B
Mojo

# probe: how accurate are cosh, sinh and exp of a Float64 far from zero? (true values: cosh(100) = sinh(100) = 1.3440585709080678e43, exp(100) = 2.6881171418161356e43, cosh(1) = 1.5430806348152437)
from std.math import cosh, exp, sinh
def main():
var a = 100.0
var one = 1.0
print(cosh(a), sinh(a), exp(a), cosh(one))