this doesnt work for me
why do you pass curves to the code block? this is why it doesn’t work on your side.
if you ask for another way to calculate residual, you can build your own function something like this.
def calculate_residual(number, divider): return number - int(number / divider) * divider
you can look in the code Mr. Poupin
If you ever look for the odd and even curves in the list
you can use list chop (with 2) then 1item odd and last item even