similar to Excel's =max() and =min() functions...

lets say i wanted to write a function =sqrt(sumsq()), but i wanted the function to allow a dynamic number of inputs to pass to the code.

how do i accomplish this?

just so we understand the question. lets call the function =sss(). lets say the first time i use it in excel i type the following;
"=sss(A1,B2:B10,D2,E9:F20)"

the second time i type;
"=sss(B2:B4,C2)"

how do i establish the dynamic input when writing the function?

thanks!!!!