Optimization: principles and algorithms, by Michel Bierlaire
runMachineEpsilon.m
Go to the documentation of this file.
1 %> \file
2 %> Calculate the machine epsilon
3 %>
4 %> @ingroup Running
5 %> @ingroup chap07
6 %> @author <a href="http://people.epfl.ch/michel.bierlaire">Michel Bierlaire</a>
7 %> @date Fri Mar 20 10:28:45 2015
8 
9 %> @note Calls \ref machineEpsilon
10 
11 [epss, epsd] = machineEpsilon() ;
12 printf("Machine epsilon in single precision: %g\n",epss)
13 printf("Machine epsilon in double precision: %g\n",epsd)
14 
15 
function machineEpsilon()
Calculate the machine epsilon in single and double precision.
Copyright 2015-2016 Michel Bierlaire