예제 #1
0
def test_get_math_macros():
    macros = get_math_macros()
    assert macros[exp(1)] == 'M_E'
    assert macros[1 / Sqrt(2)] == 'M_SQRT1_2'
예제 #2
0
파일: test_ccode.py 프로젝트: Lenqth/sympy
def test_get_math_macros():
    macros = get_math_macros()
    assert macros[exp(1)] == 'M_E'
    assert macros[1/Sqrt(2)] == 'M_SQRT1_2'