Skip to content

SquareFract32

Overview

Computes the square using the math library.

Discussion

Computes the square using the math library.

Module Pack

Standard

ClassID

classID = 201

Type Definition

typedef struct _ModuleSquareFract32
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleSquareFract32Class;

Pins

Input Pins

Name in
Description Input signal
Data type fract32
Channel range Unrestricted
Block size range Unrestricted
Sample rate range Unrestricted
Complex support Real

Output Pins

Name out
Description Output signal
Data Type fract32

Matlab Usage

File Name: square_fract32_module.m 
 M=square_fract32_module(NAME) 
 Creates an Audio Weaver module that computes the square 
 using the standard math library. 
 Arguments: 
    NAME - name of the module. 

Copyright (c) 2026 DSP Concepts, Inc.