diff --git a/numpy/polynomial/tests/test_symbol.py b/numpy/polynomial/tests/test_symbol.py index 6ee89b8c913..4ea6035ef7a 100644 --- a/numpy/polynomial/tests/test_symbol.py +++ b/numpy/polynomial/tests/test_symbol.py @@ -181,6 +181,14 @@ def test_deriv(self): other = self.p.deriv() assert_equal(other.symbol, 'z') + +def test_composition(): + p = poly.Polynomial([3, 2, 1], symbol="t") + q = poly.Polynomial([5, 1, 0, -1], symbol="λ_1") + r = p(q) + assert r.symbol == "λ_1" + + # # Class methods that result in new polynomial class instances #