Home > NaN > mod.m

mod

PURPOSE ^

MOD(x,y) calculates Modules Y from X

SYNOPSIS ^

function [z,e] = mod(x,y)

DESCRIPTION ^

 MOD(x,y) calculates Modules Y from X 

     z = x - y * floor(x/y);
     e = eps * floor(x/y);

    [z,e] = MOD(X,Y)
    z is the modulus of Y for X
    e is the error tolerance, for checking the accuracy
        z(e > abs(y)) is not defined 

     z has always the same sign than y    
     
 see also: REM

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003