How to define a function with three cases?

Please avoid multiple posting. I answered the first here

1 Like