mathcat icon indicating copy to clipboard operation
mathcat copied to clipboard

MAX, MIN more than two given numbers

Open TonyStark opened this issue 3 years ago • 1 comments

Hello as per max/min(a,b) i can only get max/min number of given two number. so my suggestion to find max,min of more than 2 given number.

example max/min(5,9,2,3,2,1) so output is 9 for max and 1 for min

TonyStark avatar Jul 24 '22 06:07 TonyStark

Hi @TonyStark! I'm not actively maintaining this project, but this sould be relatively easy to implement. First, there's currently no support for functions with arbitrary arity, so some special value for arbitrary arity needs to be added and checked for in the evaluateFunc function. Then, the Min and Max functions in need to be updated to take an arbitrary amount of arguments.

soudy avatar Jul 24 '22 19:07 soudy