MathVerifier
- Supports LaTeX and plain mathematical expressions
- Handles complex numbers, matrices, and sets
- Configurable precision for floating-point comparisons
- Optional LaTeX wrapping to ensure proper parsing and rendering
- Comprehensive error handling and logging
init
- extractor (Optional[BaseExtractor], optional): The extractor to use for extracting code from the solution. (default: :obj:
None
) - timeout (Optional[float], optional): The execution timeout in seconds. (default: :obj:
30.0
) - float_rounding (int, optional): The number of decimal places to round floating-point numbers. (default: :obj:
6
) - numeric_precision (int, optional): The numeric precision for floating-point comparisons. (default: :obj:
15
) - enable_wrapping (Optional[bool], optional): Whether to wrap LaTeX expressions in math mode delimiters. (default: :obj:
False
)
_latex_wrapping
- s (str): The input LaTeX string.