From 7c792461c8e4e4f1f8734fed143630c74e76b27f Mon Sep 17 00:00:00 2001 From: zitian-gao Date: Tue, 27 May 2025 16:45:31 +0800 Subject: init eval --- .../evaluation/latex2sympy/tests/trig_test.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 Qwen2.5-Eval/evaluation/latex2sympy/tests/trig_test.py (limited to 'Qwen2.5-Eval/evaluation/latex2sympy/tests/trig_test.py') diff --git a/Qwen2.5-Eval/evaluation/latex2sympy/tests/trig_test.py b/Qwen2.5-Eval/evaluation/latex2sympy/tests/trig_test.py new file mode 100755 index 0000000..4689ea5 --- /dev/null +++ b/Qwen2.5-Eval/evaluation/latex2sympy/tests/trig_test.py @@ -0,0 +1,21 @@ +from .context import assert_equal +import pytest +from sympy import asinh, Symbol + +# x = Symbol('x', real=True); + +# latex = "\\sinh(x)" +# math = process_sympy(latex) +# print("latex: %s to math: %s" %(latex,math)) +# +# latex = "\\arcsinh(x)" +# math = process_sympy(latex) +# print("latex: %s to math: %s" %(latex,math)) +# +# latex = "\\arsinh(x)" +# math = process_sympy(latex) +# print("latex: %s to math: %s" %(latex,math)) + + +def test_arcsinh(): + assert_equal("\\operatorname{arcsinh}\\left(1\\right)", asinh(1, evaluate=False)) -- cgit v1.2.3