示例#1
0
文件: pretty.py 项目: robotment/sympy
    def _print_Pure(self, e):
        if self._use_unicode:
            symb = pretty_symbol(u"\u2118")
        else:
            symb = pretty_symbol('pure')

        return prettyForm(symb)
示例#2
0
    def _print_Pure(self, e):
        if self._use_unicode:
            symb = pretty_symbol(u"\u2118")
        else:
            symb = pretty_symbol('pure')

        return prettyForm(symb)
示例#3
0
    def _print_FiniteField(self, expr):
        if self._use_unicode:
            form = u'\u2124_%d'
        else:
            form = 'GF(%d)'

        return prettyForm(pretty_symbol(form % expr.mod))
示例#4
0
    def _print_FiniteField(self, expr):
        if self._use_unicode:
            form = u'\u2124_%d'
        else:
            form = 'GF(%d)'

        return prettyForm(pretty_symbol(form % expr.mod))
示例#5
0
 def _print_KroneckerDelta(self, e):
     pform = self._print(e.args[0])
     pform = prettyForm(*pform.right((prettyForm(','))))
     pform = prettyForm(*pform.right((self._print(e.args[1]))))
     if self._use_unicode:
         a = stringPict(pretty_symbol('delta'))
     else:
         a = stringPict('d')
     b = pform
     top = stringPict(*b.left(' ' * a.width()))
     bot = stringPict(*a.right(' ' * b.width()))
     return prettyForm(binding=prettyForm.POW, *bot.below(top))
示例#6
0
文件: pretty.py 项目: Botouls/sympy
 def _print_KroneckerDelta(self, e):
     pform = self._print(e.args[0])
     pform = prettyForm(*pform.right((prettyForm(','))))
     pform = prettyForm(*pform.right((self._print(e.args[1]))))
     if self._use_unicode:
         a = stringPict(pretty_symbol('delta'))
     else:
         a = stringPict('d')
     b = pform
     top = stringPict(*b.left(' '*a.width()))
     bot = stringPict(*a.right(' '*b.width()))
     return prettyForm(binding=prettyForm.POW, *bot.below(top))
示例#7
0
 def _print_Symbol(self, e):
     symb = pretty_symbol(e.name)
     return prettyForm(symb)
示例#8
0
 def _print_Symbol(self, e):
     symb = pretty_symbol(e.name)
     return prettyForm(symb)