metadata
license: mit
task_categories:
- text-generation
tags:
- math
size_categories:
- 1M<n<10M
Math Expressions 1M
Overview
This dataset is a comprehensive collection of 1,000,000 mathematical expressions, including both valid and invalid expressions. This dataset is intended for use in various machine learning and natural language processing tasks, such as calculations, mathematical reasoning, and validation.
Dataset Description
The dataset consists of mathematical expressions generated using a combination of basic arithmetic operations and mathematical functions. The expressions vary in complexity, containing both simple and nested structures, and are labeled with their evaluation results.
Features
- Expressions: The dataset includes expressions involving basic arithmetic operations (
+
,-
,*
,/
) and various mathematical functions (sqrt
,log10
,log2
,ln
,exp
,sin
,cos
,tan
,asin
,acos
,atan
). - Valid and Invalid Expressions: Exactly 95% of the expressions are valid and correctly evaluated, while the remaining 5% are deliberately invalid to provide a diverse set for training and testing validation models.
- Evaluation Results: Each expression is paired with its evaluation result. Valid expressions have their numerical results, while invalid expressions are marked as "INVALID".
- Number Ranges: The numbers used in the expressions range from 0.0001 to 1,000,000,000, including both positive and negative values, and are generated with logarithmic distribution. Some numbers are integers, while others are floating-point numbers with up to four decimal places.
- Expression Depth: The expressions have varying depths, with a maximum depth of 3 levels. This includes both simple expressions and more complex, nested structures.
License
This dataset is licensed under the MIT License.