Example #1
0
def test_evaluate_at():
    cheb = MultiCheb(np.array([[0, 0, 0, 1], [0, 0, 0, 0], [0, 0, 1, 0]]))
    value = cheb.evaluate_at((2, 5))
    assert (value == 828)

    value = cheb.evaluate_at((.25, .5))
    assert (np.isclose(value, -.5625))
Example #2
0
def test_evaluate_at2():
    cheb = MultiCheb(np.array([[0, 0, 0, 1], [0, 0, 0, 0], [0, 0, .5, 0]]))
    value = cheb.evaluate_at((2, 5))
    assert (np.isclose(value, 656.5))