4 lines
134 B
Text
4 lines
134 B
Text
function even(n) = mod(n, 2) == 0;
|
|
|
|
% test the function by applying it to the first ten positive integers: %
|
|
{even(n) : n in [1:11]};
|