Overview
Computes the reciprocal (1/x)
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 _ModuleReciprocalFract32 { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 exp; // number of guard bits of the reciprocal output. Default is Q9.23 format. } ModuleReciprocalFract32Class; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
exp | int | parameter | 0 | 8 | 0:1:15 |
Pins
Input Pins
Name: in
Description: Input signal
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Output signal
Data type: fract32
MATLAB Usage
File Name: reciprocal_fract32_module.m
...