Give more examples of total and partial functions on natural numbers.
To test whether a number is even or odd, a student has designed the following function:
test(x) def = if x = 0 then "even"
else if x = 1 then "odd" else test(x-2)
Is this a total function on the set of integer numbers? Is it total on the
natural numbers?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here