UNPKG

@nikkiselev/ipf

Version:

Calculate relative scores in IPF powerlifting competitions.

3 lines (2 loc) 140 B
export default (weight, params, numerator) => numerator / params.reduce((a, b, key) => a + b * weight ** (params.length - key - 1), 0);