Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Computes the function [f,e] = frexp(x) using the math library

Discussion

Computes the funtion function [f, e]=frexp(x) using the math library. This function splits a floating point number into a fraction F and an exponent E, such that the absolute value of F is in the range [0.5 1.0) and such that 2^E * F equals the input value. The output pin 'f' is a floating-point value and the output pin 'e' is an integer.

...