maths.sumset ============ .. py:module:: maths.sumset .. autoapi-nested-parse:: Calculates the SumSet of two sets of numbers (A and B) Source: https://en.wikipedia.org/wiki/Sumset Functions --------- .. autoapisummary:: maths.sumset.sumset Module Contents --------------- .. py:function:: sumset(set_a: set, set_b: set) -> set :param first set: a set of numbers :param second set: a set of numbers :return: the nth number in Sylvester's sequence >>> sumset({1, 2, 3}, {4, 5, 6}) {5, 6, 7, 8, 9} >>> sumset({1, 2, 3}, {4, 5, 6, 7}) {5, 6, 7, 8, 9, 10} >>> sumset({1, 2, 3, 4}, 3) Traceback (most recent call last): ... AssertionError: The input value of [set_b=3] is not a set