2 meq - test for equality modulo a specifed number
15 Returns 1 if and only if for some integer n, x - y = n * md, i.e.
16 x is congruent to y modulo md.
18 If md = 0, this is equivalent to x == y.
20 For any x, y, md, meq(x, y, md) = ismult(x - y, md).
23 ; print meq(5, 33, 7), meq(.05, .33, -.07), meq(5, 32, 7)
35 ## Copyright (C) 1999 Landon Curt Noll
37 ## Calc is open software; you can redistribute it and/or modify it under
38 ## the terms of the version 2.1 of the GNU Lesser General Public License
39 ## as published by the Free Software Foundation.
41 ## Calc is distributed in the hope that it will be useful, but WITHOUT
42 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
43 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
44 ## Public License for more details.
46 ## A copy of version 2.1 of the GNU Lesser General Public License is
47 ## distributed with calc under the filename COPYING-LGPL. You should have
48 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
49 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
51 ## @(#) $Revision: 30.1 $
52 ## @(#) $Id: meq,v 30.1 2007/03/16 11:10:42 chongo Exp $
53 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/meq,v $
55 ## Under source code control: 1995/11/09 03:27:51
56 ## File existed as early as: 1995
58 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
59 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/