<< eval3d 6-0 getPreferencesValue >>
removed >> removed > 6-0 > frexp

frexp

dissect floating-point numbers into base 2 exponent and mantissa

Syntax

[f,e] = frexp(x)

Arguments

x

real vector or matrix

f

array of real values, usually in the range 0.5 <= abs(f) < 1.

e

array of integers that satisfy the equation: x= f.*2.^e

Description

This function corresponds to the ANSI C function frexp(). Any zeros in x produce f=0 and e=0.

Examples

[f,e]=frexp([1,%pi,-3,%eps])

See also

History

VersionDescription
6.0.2 Last Scilab version documenting frexp(), that becomes an internal afterward. Please use log2() instead.

<< eval3d 6-0 getPreferencesValue >>