(self)
| 492 | '+ (1.429e+08) x**3') |
| 493 | |
| 494 | def test_latex(self): |
| 495 | p = poly.Polynomial([1/2, 1/7, 1/7*10**8, 1/7*10**9]) |
| 496 | assert_equal(p._repr_latex_(), |
| 497 | r'$x \mapsto \text{0.5} + \text{0.14285714}\,x + ' |
| 498 | r'\text{14285714.28571429}\,x^{2} + ' |
| 499 | r'\text{(1.42857143e+08)}\,x^{3}$') |
| 500 | |
| 501 | with printoptions(precision=3): |
| 502 | assert_equal(p._repr_latex_(), |
| 503 | r'$x \mapsto \text{0.5} + \text{0.143}\,x + ' |
| 504 | r'\text{14285714.286}\,x^{2} + \text{(1.429e+08)}\,x^{3}$') |
| 505 | |
| 506 | def test_fixed(self): |
| 507 | p = poly.Polynomial([1/2]) |
nothing calls this directly
no test coverage detected