The program has the following output:
1 2 3 4 5 6
1 1 1 1 1 1
1 3 5 7 9 11
1 2 6 12 20 30
See also the example of converting relative values into absolute values, and vice versa, in the next
subsection.
Example of Converting Relative Values into Absolute Values
The following example demonstrates how to use partial_sum() and adjacent_difference()
to convert a sequence of relative values into a sequence of absolute values, and vice vers