6.45.14 Counting the elements smaller than a given value: count_inf
The count_inf command counts the number of elements in a
matrix less than a given value.
-
count_inf takes two arguments:
-
a, a real number.
- A, a matrix or a list of real numbers.
- count_inf(a,A) returns the number of elements of
A that are strictly less than a.
Example.
Input:
count_inf(12,[2,12,45,3,7,78])
Output: