To calculate the sum of terms (of type float, int or big integer) of a number list, it is preferable to use List.sum
In other cases, List.fold is the function that is best suited to calculate such a sum.
Sum of complex numbers
In this example, we declare a list of complex numbers and we calcu...