예제 #1
0
def test_transverse_magnification():
    si, so = symbols('si, so')
    assert transverse_magnification(si, so) == -si / so
    assert transverse_magnification(30, 15) == -2
예제 #2
0
def test_transverse_magnification():
    si, so = symbols('si, so')
    assert transverse_magnification(si, so) == -si/so
    assert transverse_magnification(30, 15) == -2