Skip to content

Ldexp

Overview

Computes the function y = ldexp(f,e) using the math library

Discussion

Computes the funtion 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().

Module Pack

Standard

ClassID

classID = 52

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. 

Copyright (c) 2026 DSP Concepts, Inc.