Initial revision
[LeanCalc.git] / help / isrel
1 NAME
2     isrel - whether two values are relatively prime
3
4 SYNOPSIS
5     isrel(x, y)
6
7 TYPES
8     x           int
9     y           int
10
11     return      int
12
13 DESCRIPTION
14     Determine if x and y are relatively prime.  If gcd(x,y) == 1, then
15     return 1, otherwise return 0.
16
17 EXAMPLE
18     > print isrel(6, 5), isrel(5, 6), isrel(-5, 6)
19     1 1 1
20
21     > print isrel(6, 2), isrel(2, 6), isrel(-2, 6)
22     0 0 0
23
24 LIMITS
25     none
26
27 LINK LIBRARY
28     BOOL zrelprime(ZVALUE x, y)
29
30 SEE ALSO
31     gcd,
32     isassoc, isatty, isblk, isconfig, isdefined, iserror, iseven, isfile,
33     ishash, isident, isint, islist, ismat, ismult, isnull, isnum, isobj,
34     isobjtype, isodd, isprime, isrand, israndom, isreal,
35     issimple, issq, isstr, istype
36