Sums and products from lists #
This file provides basic definitions for List.prod
, List.sum
,
which calculate the product and sum of elements of a list
and List.alternatingProd
, List.alternatingSum
, their alternating counterparts.
The alternating sum of a list.
Equations
Instances For
The alternating product of a list.