File size: 4,199 Bytes
c25aa3a 9795a53 c25aa3a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | # InCube - Large Math Dataset
<div align="center">
<img src="https://raw.githubusercontent.com/abhirambhaskar/imagebox/refs/heads/main/incubes.png" alt="Incube Lareg Math Dataset" width="600"/>
</div>
## Overview
This dataset contains over 175 million mathematical questions and their answers, designed for training and evaluating machine learning models on mathematical reasoning tasks. It spans 17 different types of mathematical operations with varying levels of complexity.
## Dataset Details
### Size
- **Total examples**: ~175 million
- **File format**: JSON
- **Examples per operation**: ~10 million (with some variation due to mathematical constraints)
- **Value range**: -1000 to 1000
### Operations Included
| Operation | Symbol | Description | Example |
|-----------|--------|-------------|---------|
| Addition | + | Adding two numbers | "5 + 3 =" |
| Subtraction | - | Subtracting one number from another | "9 - 4 =" |
| Multiplication | * | Multiplying two numbers | "6 * 7 =" |
| Division | / | Dividing one number by another | "20 / 4 =" |
| Square | ^2 | Raising a number to the power of 2 | "3^2 =" |
| Cube | ^3 | Raising a number to the power of 3 | "4^3 =" |
| Exponentiation | ^ | Raising a number to an arbitrary power | "2^5 =" |
| Modulo | % | Remainder after division | "17 % 5 =" |
| Square Root | √ | Square root of a number | "√64 =" |
| Absolute Value | \| | Absolute value of a number | "\|-5\| =" |
| Factorial | ! | Product of all positive integers ≤ n | "5! =" |
| GCD | gcd | Greatest common divisor | "gcd(12, 18) =" |
| LCM | lcm | Least common multiple | "lcm(4, 6) =" |
| Logarithm | log | Base-10 logarithm | "log(100) =" |
| Natural Log | ln | Natural logarithm | "ln(e^3) =" |
| Sine | sin | Sine of an angle in degrees | "sin(30) =" |
| Cosine | cos | Cosine of an angle in degrees | "cos(60) =" |
| Tangent | tan | Tangent of an angle in degrees | "tan(45) =" |
### Question Formats
Each operation has questions presented in 4 different formats:
1. **Symbolic format**: Using mathematical notation (e.g., "5 + 3 =")
2. **Standard word format**: Using standard terminology (e.g., "What is 5 plus 3?")
3. **Alternative word format**: Using alternative terminology (e.g., "What is the addition of 5 and 3?")
4. **Additional formats**: Various other phrasings (e.g., "Sum of 5 and 3", "Calculate 5 plus 3")
### Data Structure
The dataset is provided as a JSON file with the following structure:
```json
[
{
"question": "5 + 3 =",
"answer": "8"
},
{
"question": "What is the square root of 16?",
"answer": "4"
},
...
]
```
## Usage Examples
### Loading the Dataset in Python
```python
import json
with open('large_math_dataset.json', 'r') as f:
dataset = json.load(f)
# Access a sample question
sample = dataset[0]
print(f"Question: {sample['question']}")
print(f"Answer: {sample['answer']}")
```
### Loading with Hugging Face Datasets
```python
from datasets import load_dataset
dataset = load_dataset("your-username/incube-large-math-dataset")
print(dataset['train'][0])
```
## Generation Method
This dataset was generated programmatically using Python. The generation process:
1. Defines 17 mathematical operations with their symbolic and verbal representations
2. Generates values within the range of -1000 to 1000
3. Applies special handling for certain operations (e.g., ensuring division results in integers)
4. Creates questions in multiple formats
5. Computes answers and stores the question-answer pairs
## License
This dataset is released under the [MIT License](LICENSE).
## Citation
If you use this dataset in your research, please cite it as:
```
@misc{incube-large-math-dataset,
author = {Abhiram},
title = {InCube Large Math Dataset},
year = {2025},
publisher = {Hugging Face},
howpublished = {\\url{https://huggingface.co/datasets/evanto/incube-large-math-dataset}}
}
```
## Limitations
- The dataset focuses on exact, deterministic mathematical operations
- Some operations (like factorial) are limited to smaller numbers to avoid overflow
- Square roots are limited to perfect squares for integer results
- Trigonometric functions are rounded to 4 decimal places |