# file: min3isFactorcloseEnough.py # author: Bob Muller # # A few examples introducing Python function defintions in CS1101. # min3 : int * int * int -> int # def min3(n1, n2, n3): return min(n1, min(n2, n3)) # isFactor : int * int -> bool # def isFactor(m, n): return n % m == 0 # closeEnough : float * float -> bool # def closeEnough(a, b): return abs(a - b) < 1e-6