Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

Please note that the recommended version of Scilab is 6.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Elementary Functions > Floating point > frexp

frexp

dissect floating-point numbers into base 2 exponent and mantissa

Calling Sequence

[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

  • log — natural logarithm
  • hat — (^) exponentiation
  • ieee — set floating point exception mode
  • log2 — base 2 logarithm
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:13:52 CEST 2015