f=[a=2,k−=−4,k+=7,t=5] the smallest positive, normalized element (ε0 ) is: in matlab

The smallest positive normalized element (eps) can be calculated using the eps function in MATLAB. We can use the f variable as follows:

main.m
f = [a=2,k−=−4,k+=7,t=5];
eps_0 = eps(f(a))
44 chars
3 lines

This will give the smallest positive normalized element for a in f.

related categories

gistlibby LogSnag