(self)
| 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]) |
| 508 | assert_equal(str(p), '0.5') |
| 509 | |
| 510 | with printoptions(floatmode='fixed'): |
| 511 | assert_equal(str(p), '0.50000000') |
| 512 | |
| 513 | with printoptions(floatmode='fixed', precision=4): |
| 514 | assert_equal(str(p), '0.5000') |
| 515 | |
| 516 | def test_switch_to_exp(self): |
| 517 | for i, s in enumerate(SWITCH_TO_EXP): |
nothing calls this directly
no test coverage detected