Inactive Tutor answered 08/08/17
Tutor
New to Wyzant
a) not surprisingly, max(3; -4) comes out to be 4
b) max(x;y;z) = max(x;max(y;z)) which I will let you expand (if you wish). [Typing would be too error-prone]
Inactive Tutor
YOU have written a formula for max(x,y). Do you believe that it is correct (i.e. it's an IDENTITY)?
It seems to be.
As for finding the maximum of three variables, my answer simply said that you could first find the maximum of any two of them, and then take that value and the remaining value into consideration, to finally determine the overall maximum.
Your policy of separating variables (arguments in a list) by semicolon, rather than comma, is unusual.
Report
08/25/17
Rafael F.
08/24/17