Macaulay2 Engine
Loading...
Searching...
No Matches
◆
machine_epsilon()
[1/2]
mpreal
mpfr::machine_epsilon
(
const
mpreal
&
x
)
inline
Definition at line
2093
of file
mpreal.h
.
2094
{
2095
/* the smallest eps such that x + eps != x */
2096
if
(
x
< 0)
2097
{
2098
return
nextabove
(-
x
) +
x
;
2099
}
else
{
2100
return
nextabove(
x
) -
x
;
2101
}
2102
}
mpfr::nextabove
const mpreal nextabove(const mpreal &x)
Definition
mpreal.h:2815
x
volatile int x
Definition
overflow-test.cpp:68
References
machine_epsilon()
,
nextabove()
, and
x
.
mpfr
Generated on
for Macaulay2 Engine by
1.15.0