Home > NaN > rem.m

rem

PURPOSE ^

REM calculates remainder of X / Y

SYNOPSIS ^

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

DESCRIPTION ^

 REM calculates remainder of X / Y  

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

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

     z has always the same sign than x    
 
 see also: MOD

CROSS-REFERENCE INFORMATION ^

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