2 ms·
p is a predicate, which is a function mapping elements of some type to true/false (booleans). A total function is a function which is defined for all possible i
by Jtsummers 5y ago
p is a predicate, which is a function mapping elements of some type to true/false (booleans). A total function is a function which is defined for all possible inputs. So a total predicate is a function that maps all possible inputs to either true or false.
- pvillano 5y agoFor real numbers, f(x)=x² is a total function, but g(x)=√x is not, because g is undefined for x<0