MCPcopy Create free account
hub / github.com/numpy/numpy / test_chebpow

Method test_chebpow

numpy/polynomial/tests/test_chebyshev.py:114–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 assert_equal(trim(res), trim(tgt), err_msg=msg)
113
114 def test_chebpow(self):
115 for i in range(5):
116 for j in range(5):
117 msg = f"At i={i}, j={j}"
118 c = np.arange(i + 1)
119 tgt = reduce(cheb.chebmul, [c]*j, np.array([1]))
120 res = cheb.chebpow(c, j)
121 assert_equal(trim(res), trim(tgt), err_msg=msg)
122
123
124class TestEvaluation:

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
trimFunction · 0.70

Tested by

no test coverage detected