Overview
Computes the function [f,e] = frexp(x) using the math library
Discussion
Computes the 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.
Type Definition
Code Block |
---|
typedef struct _ModuleFrexp { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure } ModuleFrexpClass; |
Pins
Input Pins
Name: x
Description: Input signal x
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: f
Description: Fractional output f
...
Description: Exponent n
Data type: int
MATLAB Usage
File Name: frexp_module.m
...