Question: How define functions with variable numbers of input variables?

Hi,

I think the title of the question speaks for itself.

But, to be more precise, here's an example with a real-valued function which, when it has two real numbers as input, gives the ratio of the first number to the second number, but if it has three real numbers as input, it returns the sum of the first number with the product of the next two numbers...

Thanks.

Please Wait...