Beispiel #1
0
 def q_expansion(self, prec_max=10):
     # Display the q-expansion, truncating to precision prec_max.  Will be inside \( \).
     if self.has_exact_qexp:
         prec = min(self.qexp_prec, prec_max)
         if self.dim == 1:
             s = web_latex_split_on_pm(web_latex(coeff_to_power_series([self.qexp[n][0] for n in range(prec)],prec=prec),enclose=False))
         else:
             s = self.eigs_as_seqseq_to_qexp(prec)
         return s
     else:
         return coeff_to_power_series([0,1], prec=2)._latex_()
Beispiel #2
0
 def trace_expansion(self, prec_max=10):
     prec = min(len(self.traces) + 1, prec_max)
     return web_latex_split_on_pm(
         web_latex(coeff_to_power_series([0] + self.traces[:prec - 1],
                                         prec=prec),
                   enclose=False))
Beispiel #3
0
 def trace_expansion(self, prec_max=10):
     prec = min(self.texp_prec, prec_max)
     s = web_latex_split_on_pm(web_latex(coeff_to_power_series(self.texp[:prec], prec=prec), enclose=False))
     if too_big(self.texp[:prec], 10**24):
         s = make_bigint(s)
     return s
Beispiel #4
0
def trace_expansion_generic(space, prec_max=10):
    prec = min(len(space.traces) + 1, prec_max)
    return web_latex(coeff_to_power_series([0] + space.traces[:prec - 1],
                                           prec=prec),
                     enclose=True)
Beispiel #5
0
 def trace_expansion(self, prec_max=10):
     prec = min(self.texp_prec, prec_max)
     return web_latex_split_on_pm(web_latex(coeff_to_power_series(self.texp[:prec], prec=prec), enclose=False))
Beispiel #6
0
 def trace_expansion(self, prec_max=10):
     prec = min(len(self.traces)+1, prec_max)
     return web_latex_split_on_pm(web_latex(coeff_to_power_series([0] + self.traces[:prec-1],prec=prec),enclose=False))