Simple enough - I'm just trying to find the smallest positive real number, ε, such that 1 + ε ≠ 1 in MATLAB (double precision). So the value 'eps' in MATLAB is actually not quite defined this way, and using this program(adsbygoogle = window.adsbygoogle || []).push({}); yields the value 1.1102x10^(-16), which does satisfy 1+ε ≠1. This value is very close to eps/2, but is not eps/2 (they differ by 2x10^(-32)). And 1+eps/2=1 anyway so that seemingly can't be right. My question is this - is there a published value for MATLAB's machine epsilon, or is my value correct? My value seems quite annoying in that it feels like it should be eps/2, and in my assignment it referenced eps/2 as the machine epsilon. Cheers!Code (Text):min = 0;

max = 1;

test = 1;

while test~=(min+max)/2

test = (min+max)/2;

if 1+test~=1

max=test;

end

if 1+test==1

min=test;

end

end

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Machine epsilon in MATLAB

Loading...

Similar Threads for Machine epsilon MATLAB | Date |
---|---|

Is it all in the angle? | Jan 3, 2018 |

Mind boggling machine learning results from AlphaZero | Dec 6, 2017 |

Python Good books to learn machine learning using Python | Nov 26, 2017 |

JavaScript Javascript squareroot algorithm and machine epsilon | Apr 4, 2014 |

Why Machine epsilon is defined this way? | Aug 14, 2013 |

**Physics Forums - The Fusion of Science and Community**