I want to calculate the ratio of athe specific distance from the two coordinates in a line.

1.I used Combinations (Spreads) and - (Value)calculate the distance between the vector.
（Thanks to @tonfilm)) let me know how to use ((node:Combinations (Spreads).）

2.Computing a ratio of two distances ,and I want to use a serial combinatorics for the calculation.It differs from Combinations (Spreads) is its sequence as shown below,

I’ve tryed as below, but the problem is , In my case ,the number of values is variable. When I added the number of values , I have to add more nodes by hand, and It will take my time to calculate the difference between the sequences of their. Does anyone know how I could make it a little more automated ? For example,how can automatically get the corresponding results only when I change the number ?
Its rules are as follows：

hope someone can have a solution to this problem immediately,thankyou

On the first point I think you’re stuck with cons-ing until one of the devs writes a bin pin for the combinator node.

On the second you are taking the x and y coordinates away from eachother rather than the vectors; you should have 2 vectors (xy,xy) for each sum, and try them in point2vector and the length should get you towards the answer you’re looking for.

The ratio aspect depends upon what they’re in proportion too, which I couldn’t follow, but I’d love to know how you’re using this algorithm.

ggml, that’s fine for the input but the problem is the combination node will still compare all of the numbers put into it. What is desired is that numbers A-E will output a set of combos and then F-L will output another set.

this is exactly what a Bin Size pin would do, unfortunately the combinatorics nodes don’t have one. so you can either try to code one into the nodes or you ask another developer to do it for you. i do not see any other way to change the size of the sets dynamically…

Ok here you go. Didn’t have time to test though. So please do and report back. If it works properly I will make a pull request so the changes make it into the addonpack.