Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Procedure:
1) MATLAB was turned on.
2) The value of the irrational number π, was obtained by entering the following in
MATLAB:
pi
(the default format is the short, fixed-decimal format for floating-point notation, count the number
of digits)
3) Inorder to get more précised value the format was changed to long and the
following command was entered.
format long pi
4) In order to obtain the value of π in IEE754 double precision
the following command was entered.
format hex pi
5) The format of π was changed with (22/7) to rational, the following command
was entered:
format rat pi
8) To find the largest floating IEEE 754 double precision number, realmax, was entered
and for the smallest, realmin was entered.
Realmin
Realmin
9) eps was entered inorder to compare the answers with the previous one.
10) The result of following operations was obtained:
1/0
0/0
0^0