(self)
| 408 | r'$x \mapsto 1.0 + 2.0\,\left(1.0 + 2.0x\right) + 3.0\,\left(1.0 + 2.0x\right)^{2}$') |
| 409 | |
| 410 | def test_basis_func(self): |
| 411 | p = poly.Chebyshev([1, 2, 3]) |
| 412 | assert_equal(self.as_latex(p), |
| 413 | r'$x \mapsto 1.0\,{T}_{0}(x) + 2.0\,{T}_{1}(x) + 3.0\,{T}_{2}(x)$') |
| 414 | # affine input - check no surplus parens are added |
| 415 | p = poly.Chebyshev([1, 2, 3], domain=[-1, 0]) |
| 416 | assert_equal(self.as_latex(p), |
| 417 | r'$x \mapsto 1.0\,{T}_{0}(1.0 + 2.0x) + 2.0\,{T}_{1}(1.0 + 2.0x) + 3.0\,{T}_{2}(1.0 + 2.0x)$') |
| 418 | |
| 419 | def test_multichar_basis_func(self): |
| 420 | p = poly.HermiteE([1, 2, 3]) |
nothing calls this directly
no test coverage detected