Skip to content

Fmod

Overview

Computes the function fmod(x, y) using the math library

Discussion

Computes the funtion fmod(x, y) using the math library. fmod(x, y) returns the floating-point remainder of x/y.

Module Pack

Standard

ClassID

classID = 50

Type Definition

typedef struct _ModuleFmod
{
ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
} ModuleFmodClass;

Pins

Input Pins

Name x
Description Input signal x
Data type float
Channel range Unrestricted
Block size range Unrestricted
Sample rate range Unrestricted
Complex support Real
Name y
Description Input signal y
Data type float
Channel range Unrestricted
Block size range Unrestricted
Sample rate range Unrestricted
Complex support Real

Output Pins

Name out
Description Output signal fmod(y, x)
Data Type float

Matlab Usage

File Name: fmod_module.m 
 M=fmod_module(NAME) 
 Creates an Audio Weaver module that computes the function fmod(x, y) 
 using the standard math library.  
    NAME - name of the module. 

Copyright (c) 2026 DSP Concepts, Inc.