初始化项目,由ModelHub XC社区提供模型
Model: nv-community/Nemotron-Cascade-8B Source: Original Platform
This commit is contained in:
21
evaluation/eval/tools/latex2sympy/tests/trig_test.py
Normal file
21
evaluation/eval/tools/latex2sympy/tests/trig_test.py
Normal file
@@ -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))
|
||||
Reference in New Issue
Block a user