Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

Natural log function using the math library

Discussion

Computes the natural log using the math library.

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.

  • No labels