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}
const mpreal nextabove(const mpreal &x)
Definition mpreal.h:2815
volatile int x

References machine_epsilon(), nextabove(), and x.