Skip to main content
Skip table of contents

Sqrt

Overview

Computes the square root

Discussion

Computes the square root of the absolute value of the input signal. The absoulute value is computed before the square root in order to avoid issues where the input signal is <0.

Type Definition

CODE
typedef struct _ModuleSqrt
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleSqrtClass;

Pins

Input Pins

Name: in

Description: Input signal

Data type: float

Channel range: Unrestricted

Block size range: Unrestricted

Sample rate range: Unrestricted

Complex support: Real

Output Pins

Name: out

Description: Output signal

Data type: float

MATLAB Usage

File Name: sqrt_module.m

CODE
 M=sqrt_module(NAME)
 Creates a sqrt object for use with the Audio Weaver.  Arguments:
    NAME - name of the module.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.