Exemplo n.º 1
0
def test_square():
    y = energy.square(np.array([1, 2, 3]))
    assert_equal(y, 14)

    x = np.array([1, 2, 3, 4])
    assert_equal(energy.square(x), 30)
Exemplo n.º 2
0
def test_square():
    y = energy.square(np.array([1, 2, 3]))
    assert_equal(y, 14)
Exemplo n.º 3
0
def test_square():
    x = np.array([1, 2, 3, 4])
    assert_equal(energy.square(x), 30)