I have a few functions, specifically, volume, number of fish and cost per fish. Here they are:
vlm[nsides_, length_, depth_] := (1/4*nsides*length^2*Cot[\[Pi]/nsides]*depth);
numfish[nsides_, length_, depth_] := Floor[vlm[nsides, length, depth]/.25];
costperfish[pondcost_, nsides_, length_, depth_] := pondcost/numfish[nsides, length, depth];
.25 refers to the space(volume) one fish can take up(this number could change). The pond cost, number of sides, length and depth could essentially be any inputs. Rather than using the apothem(from the area of a polygon) for the volume function, I found another formula which contains the Cot function(the one I have above)..
I am trying to apply multiple list inputs to the cost per fish function. For example. costperfish[50,4,2.5,2] would result in the output 1, which is the cost per fish. I want to be able to type my function for multiple inputs, such as: costperfish[{50,4,2.5,2},{20,6,1,2.5}] and get the costs per each of these inputs. At some point I will need to apply a number to each cost, that will arrange the costs in order from least to greatest. So costperfish[{50,4,2.5,2},{20,6,1,2.5}] would essentially look like {{2,.8},{1,1.}}.. So I guess I asked 2 questions here but I am most concerned with inputting multiple lists so that the output will have each cost per fish for that input.
Any suggestions or advice would be greatly helpful. I don't necessarily need an answer for the context of what I'm working on, even a simple example would help me in a more advanced problem, like this one.