From help-octave-request at bevo dot che dot wisc dot edu Sun Jun 17 15:15:58 2001 Subject: Re: moduli From: Paul Kienzle To: Aaron Brick Cc: help-octave at bevo dot che dot wisc dot edu Date: Sat, 16 Jun 2001 23:32:17 +0100 rem.m uses: x - y .* fix (x ./ y); mod.m uses: x - y .* floor (x./y); Rem is distributed with octave, mod is part of octaveSF at sf.net/projects/octave. Rem and mod are identical for positive x. Mod is defined correctly for negative x. Paul Kienzle pkienzle at users dot sf dot net On Sat, Jun 16, 2001 at 06:05:34PM -0700, Aaron Brick wrote: > hi all, > > i'm suprised not to find a modulus operator or function (5 % 2 = 1). i can > implement it in a function, but i don't know how to do it efficiently. what > is standard procedure in octave? > > thanks, > > aaron. > > - | | | | | | | | | | - > - - > - - > - aaron brick - > - aa at lithic dot org - > - - > - - > - | | | | | | | | | | - > > > > ------------------------------------------------------------- > Octave is freely available under the terms of the GNU GPL. > > Octave's home on the web: http://www.octave.org > How to fund new projects: http://www.octave.org/funding.html > Subscription information: http://www.octave.org/archive.html > ------------------------------------------------------------- > > ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------