5/15/2019 1
February 2017 Square Root
∈ 0, 1 In IEEE floating point standard a real number is represented as : In 32-bit representation :
normal sub-normal
−1 × × 2 ∈ 1, 2 ∈ −126, ⋯ , 127 ∈ 0, 2
Or if
= −127
Square Root - Direct Method
February 2017 Square Root
We seek to calculate the positive real number
Square Root - Direct Method
Let R be a positive real number ( )
- = −1 ×
× 2
- is easy to calculate
- 2
is odd
- ... except when
= 0
= −1 × × 2
February 2017 Square Root
where
To help the calculation of
Square Root - Direct Method
the representation of R must be changed into
- = −1 × ′ × 2
= 0 = Int 2
- ∈ 0, 4
Then with
= −1 × × 2 ∈ 0, 2
February 2017 Square Root