for (let i = 0; i < size; i++) {
            product[i] = field.multiply(coefficients[i], scalar);
        }