MCPcopy Index your code
hub / github.com/numpy/numpy / test_hermdiv

Method test_hermdiv

numpy/polynomial/tests/test_hermite.py:89–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 assert_almost_equal(val3, val1 * val2, err_msg=msg)
88
89 def test_hermdiv(self):
90 for i in range(5):
91 for j in range(5):
92 msg = f"At i={i}, j={j}"
93 ci = [0] * i + [1]
94 cj = [0] * j + [1]
95 tgt = herm.hermadd(ci, cj)
96 quo, rem = herm.hermdiv(tgt, ci)
97 res = herm.hermadd(herm.hermmul(quo, ci), rem)
98 assert_equal(trim(res), trim(tgt), err_msg=msg)
99
100 def test_hermpow(self):
101 for i in range(5):

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
trimFunction · 0.70

Tested by

no test coverage detected