マシンイプシロン
1と1の次に大きい(その数値型において表現可能な)数との差
丸め誤差が生じる目安?あんも.icon
code:jl
eps(Float32) # 1.1920929f-7
eps(Float64) # 2.220446049250313e-16
1.0 + eps() # 1.000_000_000_000_000_2
1.0 + eps()/2 # 1.0
https://docs.julialang.org/en/v1/manual/integers-and-floating-point-numbers/#Machine-epsilon
表現可能な最小の正数ではない?あんも.icon
code:jl
floatmin() # 2.2250738585072014e-308
floatmax() # 1.7976931348623157e308
typemax(Float64) # Inf
typemin(Float64) # -Inf
https://docs.julialang.org/en/v1/base/base/#Base.floatmin
REPLで表示される説明に誤植があったあんも.icon
This is defined as the gap between 1 and the next largest value representable by typeof(one(T)), and is equivalent to eps(one(T)).
next larger valueであるべき
軽微な修正がすでに報告されているかを知るにはどうしたらよい?
https://github.com/JuliaLang/julia/blob/db0ee4186ee252950a95fdb679bfdc457665844d/base/float.jl#L1049