miri
1.89.0-nightly
(99e7c15e8 2025-06-01)
Module math
Module Items
Functions
In crate miri
miri
Module
math
Copy item path
Source
Functions
ยง
apply_
random_
float_
error
๐
Disturbes a floating-point result by a relative error in the range (-2^scale, 2^scale).
apply_
random_
float_
error_
to_
imm
๐
Applies a random 16ULP floating point error to
val
and returns the new value. Will fail if
val
is not a floating point number.
apply_
random_
float_
error_
ulp
๐
apply_random_float_error
gives instructions to apply a 2^N ULP error. This function implements these instructions such that applying a 2^N ULP error is less error prone. So for a 2^N ULP error, you would pass N as the
ulp_exponent
argument.
sqrt
๐