ComplexNumbers.contains_set

ComplexNumbers.contains_set(self, other)[source]

Return True if other is a subset of the complex numbers.

Returns
containedbool

True if other is an instance of ComplexNumbers, RealNumbers or Integers, False otherwise.

Examples

>>> complex_numbers = ComplexNumbers()
>>> complex_numbers.contains_set(RealNumbers())
True