コード例 #1
0
ファイル: test_ccode.py プロジェクト: ushukkla/sympy
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'