Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Computes the reciprocal (1/x) on a sample-by-sample basis

Discussion

Generates the reciprocal of the input signal on a sample-by-sample basis. $out[n]=\frac{\displaystyle 1}{\displaystyle in[n]}$ Note that the module does not do any input checking and if the input is 0 then the output will be NaN.

Type Definition

Code Block
typedef struct _ModuleReciprocal
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleReciprocalClass;

Pins

Input Pins

Name: in

Description: Input signal

...

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output signal

Data type: float

MATLAB Usage

File Name: reciprocal_module.m

...