mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
30 lines
455 B
Plaintext
30 lines
455 B
Plaintext
NAME
|
|
mne - test for inequality of real numbers modulo a specifed number
|
|
|
|
SYNOPSIS
|
|
mne(x, y, md)
|
|
|
|
TYPES
|
|
x real number
|
|
y real number
|
|
md real number
|
|
|
|
return 0 or 1
|
|
|
|
DESCRIPTION
|
|
Returns 1 if and only if x is not congruent to y modulo md, i.e.
|
|
for every integer n, x - y != n * md.
|
|
|
|
EXAMPLE
|
|
print mne(5, 33, 7), mne(5, -23, 7), mne(5, 15, 7), mne(5, 7, 0)
|
|
0 0 1 1
|
|
|
|
LIMITS
|
|
none
|
|
|
|
LIBRARY
|
|
none
|
|
|
|
SEE ALSO
|
|
meq
|