normalizationFactor

Computes a normalization factor based on the maximum exponent of the input values.

Return

A normalization factor that is either 1.0 or a power of 2, determined by the input values.

Parameters

a

The first input value.

b

The second input value.

c

The third input value.

d

The fourth input value.


Computes a normalization factor based on the input values a, b, and c. The factor is calculated as a power of 2, inversely proportional to the largest exponent of the input values, if it falls outside the range of -8, 8. Otherwise, the factor defaults to 1.0.

Return

the computed normalization factor

Parameters

a

the first input value

b

the second input value

c

the third input value