help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moduli


From: Paul Kienzle
Subject: Re: moduli
Date: Sat, 16 Jun 2001 23:32:17 +0100
User-agent: Mutt/1.2.5i

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
address@hidden

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     -
>                            -    address@hidden    -
>                            -                     -
>                            -                     -
>                            - | | | | | | | | | | -
> 
> 
> 
> -------------------------------------------------------------
> 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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]