Пример #1
0
def test_from_degree():
    nodes = get_equispaced_nodes(2)
    assert(nodes[0] == 0.0)
    assert(nodes[1] == 0.5)
    assert(nodes[2] == 1.0)
Пример #2
0
def test_degree_zero_nodes():
    nodes = get_equispaced_nodes(0)
    assert(nodes[0] == 0.5)
    assert(len(nodes) == 1)