In the given floating point system f=[a=2,k−=−6,k+=6,t=4]
, the largest positive element can be obtained by calculating the maximum value that can be represented in this system.
In this system, the largest positive element can be obtained by using the formula:
main.m22 chars2 lines
Substituting the values of a=2
, k−=−6
, k+=6
, and t=4
in the above formula, we get:
main.m45 chars4 lines
Therefore, the largest positive element that can be represented in this floating point system is 120
.
In MATLAB, we can calculate m∞
using the following code:
main.m77 chars7 lines
This will give the output:
main.m12 chars2 lines
gistlibby LogSnag