(8.D.1.2) Ldexp
Overview
Computes the function y = ldexp(f,e) using the math library
Discussion
Computes the function Y = ldexp(F, E) using the math library. The function computes a floating point number starting with a fractional value F and an exponent E as: Y = F * 2^E. This function is the inverse of frexp().
Type Definition
typedef struct _ModuleLdexp
{
ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure
} ModuleLdexpClass;
Pins
Input Pins
Name: f
Description: Fractional value f
Data type: float
Channel range: Unrestricted
Block size range: Unrestricted
Sample rate range: Unrestricted
Complex support: Real
Â
Name: e
Description: Exponent e
Data type: int
Channel range: Unrestricted
Block size range: Unrestricted
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: y
Description: Floating point result
Data type: float
MATLAB Usage
File Name: ldexp_module.m
M=ldexp_module(NAME)
Creates an Audio Weaver module that computes the function ldexp(F, E)
using the math library. This function computes a floating point number
starting with a fractional value F and an exponent E as:
Y = F * 2^E
The function is the inverse of the function frexp(). Arguments:
NAME - name of the module.
Â