Name
number_isdivisor — Checks if a divides b.
Calling Sequence
isdivisor = number_isdivisor ( a , b )
Parameters
- a :
a 1x1 matrix of floating point integers, must be positive
- b :
a 1x1 matrix of floating point integers, must be positive
- isdivisor :
a 1x1 matrix of booleans
Description
Returns %t if a | b.
Returns %f if not.
Examples
number_isdivisor ( 3 , 5 ) // %f
number_isdivisor ( 3 , 9 ) // %t
Bibliography
"Introduction to algorithms", Cormen, Leiserson, Rivest, Stein, 2nd edition
Authors
Copyright (C) 2009 - 2010 - DIGITEO - Michael Baudin |