(self)
| 536 | r'\text{14285714.286}\,x^{2} + \text{(1.429e+08)}\,x^{3}$') |
| 537 | |
| 538 | def test_fixed(self): |
| 539 | p = poly.Polynomial([1 / 2]) |
| 540 | assert_equal(str(p), '0.5') |
| 541 | |
| 542 | with printoptions(floatmode='fixed'): |
| 543 | assert_equal(str(p), '0.50000000') |
| 544 | |
| 545 | with printoptions(floatmode='fixed', precision=4): |
| 546 | assert_equal(str(p), '0.5000') |
| 547 | |
| 548 | def test_switch_to_exp(self): |
| 549 | for i, s in enumerate(SWITCH_TO_EXP): |
nothing calls this directly
no test coverage detected