예제 #1
0
 def test_pol_to_html(self):
     r"""
     Checking utility: pol_to_html
     """
     x = var('x')
     f1 = x**2 + 2 * x + 1
     self.assertEqual(pol_to_html(f1),
                      '<i>x</i><sup>2</sup> + 2<i>x</i> + 1')
     f2 = 'x^3 + 1'
     self.assertEqual(pol_to_html(f2), '<i>x</i><sup>3</sup> + 1')
예제 #2
0
 def test_pol_to_html(self):
     r"""
     Checking utility: pol_to_html
     """
     x = var('x')
     f1 = x**2 + 2*x + 1
     self.assertEqual(pol_to_html(f1),
                      '<i>x</i><sup>2</sup> + 2<i>x</i> + 1')
     f2 = 'x^3 + 1'
     self.assertEqual(pol_to_html(f2),
                      '<i>x</i><sup>3</sup> + 1')
예제 #3
0
파일: main.py 프로젝트: rupertm2/lmfdb
def format_coeffs(coeffs):
    return pol_to_html(str(coeff_to_poly(string2list(coeffs))))
예제 #4
0
 def web_poly(self):
     return pol_to_html(str(coeff_to_poly(self.coeffs())))
예제 #5
0
파일: number_field.py 프로젝트: jwj61/lmfdb
def format_coeffs(coeffs):
    return pol_to_html(str(coeff_to_poly(coeffs)))
예제 #6
0
 def web_poly(self):
     return pol_to_html(str(coeff_to_poly(self.coeffs())))
예제 #7
0
 def polredabshtml(self):
     return pol_to_html(self.polredabs())
예제 #8
0
 def polredabshtml(self):
     return pol_to_html(self.polredabs())