def latex(self, **kwargs): inner_str = NumberSet.latex(self, **kwargs) # only fence if forceFence=True (nested exponents is an # example of when fencing must be forced) kwargs['fence'] = (kwargs['forceFence'] if 'forceFence' in kwargs else False) return maybeFencedString(inner_str, **kwargs)
def __init__(self): NumberSet.__init__(self, 'Rationals', r'\mathbb{Q}', context=__file__)
def __init__(self): NumberSet.__init__(self, 'Complexes', r'\mathbb{C}', context=__file__)
def __init__(self): NumberSet.__init__(self, 'Reals', r'\mathbb{R}', context=__file__)
def __init__(self): NumberSet.__init__(self, 'RealsNonNeg', r'\mathbb{R}^{\ge 0}', context=__file__)
def __init__(self): NumberSet.__init__(self, 'NaturalsNonNeg', r'\mathbb{Q}^{\geq 0}', context=__file__)
def __init__(self): NumberSet.__init__(self, 'NaturalsPos', r'\mathbb{Q}^+', context=__file__)
def __init__(self): NumberSet.__init__(self, 'Integers', r'\mathbb{Z}', context=__file__)