mod                  package:matlab                  R Documentation

_M_A_T_L_A_B _m_o_d/_r_e_m _f_u_n_c_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     Provides modulus and remainder after division.

_U_s_a_g_e:

     mod(x, y)
     rem(x, y)

_A_r_g_u_m_e_n_t_s:

    x, y: numeric vectors or objects

_V_a_l_u_e:

     Returns vector containing result of the element by element
     operations.

_A_u_t_h_o_r(_s):

     P. Roebuck, roebuck@mdanderson.org

_E_x_a_m_p_l_e_s:

     ## same results with x, y having the same sign
     mod(5, 3)
     rem(5, 3)
     ## same results with x, y having different signs
     mod(-5, 3)
     rem(-5, 3)

