Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
the dataset is currently locked, please try again later.
Error code:   LockedDatasetTimeoutError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

expr
string
val
string
category
string
ops_used
list
(-14.7)+16.5
1.8
+_d1
[ "-", "+" ]
7.3+4.3
11.6
+_d2
[ "+" ]
((-11)-(-17.7))+8
14.7
+_d3
[ "-", "+" ]
(-28)-(-42)
14
-_d1
[ "-" ]
1-(-9)
10
-_d2
[ "-" ]
(cos(sin(5.2)))-(exp(sin(abs(-87))))
0.2
-_d3
[ "cos", "sin", "-", "exp", "abs" ]
(-19.7)*7
-137.9
*_d1
[ "-", "*" ]
14*(-3.2)
-44.8
*_d2
[ "*", "-" ]
(exp(sin(-5.8)))*(tan(sin(2.5^3)))
0.1
*_d3
[ "exp", "sin", "-", "*", "tan", "^" ]
(-23.2)/5
-4.6
/_d1
[ "-", "/" ]
18.8/10
1.9
/_d2
[ "/" ]
13/(abs(12.5*4))
0.3
/_d3
[ "/", "abs", "*" ]
2.4^1
2.4
^_d1
[ "^" ]
2.4^1
2.4
^_d2
[ "^" ]
(abs(20*(-12.4))+0.1)^-2
0
^_d3
[ "abs", "*", "-", "+", "^" ]
sin(0.4)
0.4
sin_d1
[ "sin" ]
sin(sin(-6))
0.3
sin_d2
[ "sin", "-" ]
sin(cos(46.4/(-3.2)))
-0.3
sin_d3
[ "sin", "cos", "/", "-" ]
cos(6.1)
1
cos_d1
[ "cos" ]
cos(tan(1))
0
cos_d2
[ "cos", "tan" ]
cos(sqrt(2.9^(-2)))
0.9
cos_d3
[ "cos", "sqrt", "^", "-" ]
tan(-5.3)
1.5
tan_d1
[ "tan", "-" ]
tan(sin(ln(46.9)))
-0.8
tan_d2
[ "tan", "sin", "ln" ]
tan(cos(sqrt(18.3)))
-0.4
tan_d3
[ "tan", "cos", "sqrt" ]
log(16.2)
2.8
log_d1
[ "log" ]
log(abs(5.6))
1.7
log_d2
[ "log", "abs" ]
log(ln(abs(-81.1)))
1.5
log_d3
[ "log", "ln", "abs", "-" ]
ln(36.6)
3.6
ln_d1
[ "ln" ]
ln(abs(-28.3))
3.3
ln_d2
[ "ln", "abs", "-" ]
ln(cos(cos(2.2)))
-0.2
ln_d3
[ "ln", "cos" ]
exp(2.2)
9
exp_d1
[ "exp" ]
exp(sin(13.8*(-19)))
2.7
exp_d2
[ "exp", "sin", "*", "-" ]
exp(sin((-0.8)+(-6)))
0.6
exp_d3
[ "exp", "sin", "-", "+" ]
sqrt(52)
7.2
sqrt_d1
[ "sqrt" ]
sqrt(log(3.2))
1.1
sqrt_d2
[ "sqrt", "log" ]
sqrt(tan(sin(4^3)))
1.1
sqrt_d3
[ "sqrt", "tan", "sin", "^" ]
abs(27.2)
27.2
abs_d1
[ "abs" ]
abs(log(24.7))
3.2
abs_d2
[ "abs", "log" ]
abs((abs(-12.5)+0.1)^-2)
0
abs_d3
[ "abs", "-", "+", "^" ]
(-21)+(-33.2)
-54.2
+_d1
[ "-", "+" ]
9+(-18.9)
-9.9
+_d2
[ "+", "-" ]
(sin(cos(-1.2)))+(log(cos(-0.6)))
0.2
+_d3
[ "sin", "cos", "-", "+", "log" ]
(-20.8)-(-13)
-7.8
-_d1
[ "-" ]
1-(-5.2)
6.2
-_d2
[ "-" ]
(tan(sin((-8.6)+39.7)))-(sqrt(abs(-71)))
-8.7
-_d3
[ "tan", "sin", "-", "+", "sqrt", "abs" ]
13*(-13.4)
-174.2
*_d1
[ "*", "-" ]
4.9*10.2
50
*_d2
[ "*" ]
(sin(0^1))*((-18)-4)
0
*_d3
[ "sin", "^", "*", "-" ]
46.1/0.7
65.9
/_d1
[ "/" ]
3.6/2.2
1.6
/_d2
[ "/" ]
(18^1)/(4^3)
0.3
/_d3
[ "^", "/" ]
1.4^1
1.4
^_d1
[ "^" ]
(abs(-19)+0.1)^3
6967.9
^_d2
[ "abs", "-", "+", "^" ]
((abs(-10.7)+0.1)^3)^1
1259.7
^_d3
[ "abs", "-", "+", "^" ]
sin(-3.3)
0.2
sin_d1
[ "sin", "-" ]
sin((-13.4)*3)
-0.6
sin_d2
[ "sin", "-", "*" ]
sin(7^1)
0.7
sin_d3
[ "sin", "^" ]
cos(1.4)
0.2
cos_d1
[ "cos" ]
cos(tan(-3))
1
cos_d2
[ "cos", "tan", "-" ]
cos((-8)/12.5)
0.8
cos_d3
[ "cos", "-", "/" ]
tan(0.8)
1
tan_d1
[ "tan" ]
tan(sin((-26)+39))
0.4
tan_d2
[ "tan", "sin", "-", "+" ]
tan(sin(abs(abs(-11))))
-1.6
tan_d3
[ "tan", "sin", "abs", "-" ]
log(16.5)
2.8
log_d1
[ "log" ]
log(ln(47.9))
1.4
log_d2
[ "log", "ln" ]
log(sqrt(abs((-2)*8)))
1.4
log_d3
[ "log", "sqrt", "abs", "-", "*" ]
ln(6.6)
1.9
ln_d1
[ "ln" ]
ln(exp(-2.4))
-2.4
ln_d2
[ "ln", "exp", "-" ]
ln(sqrt(abs((-4)*14.8)))
2
ln_d3
[ "ln", "sqrt", "abs", "-", "*" ]
exp(2.6)
13.5
exp_d1
[ "exp" ]
exp(sin(13*(-18)))
0.4
exp_d2
[ "exp", "sin", "*", "-" ]
exp(ln(cos(-1.4)))
0.2
exp_d3
[ "exp", "ln", "cos", "-" ]
sqrt(94.7)
9.7
sqrt_d1
[ "sqrt" ]
sqrt(abs(tan(5.4)))
1.1
sqrt_d2
[ "sqrt", "abs", "tan" ]
sqrt(tan(tan(-3.1)))
0.2
sqrt_d3
[ "sqrt", "tan", "-" ]
abs(55.9)
55.9
abs_d1
[ "abs" ]
abs((-15)-27.8)
42.8
abs_d2
[ "abs", "-" ]
abs(cos(ln(44.5)))
0.8
abs_d3
[ "abs", "cos", "ln" ]
46+27.8
73.8
+_d1
[ "+" ]
3.3+(-16)
-12.7
+_d2
[ "+", "-" ]
(sqrt(sin(-5.3)))+20
20.9
+_d3
[ "sqrt", "sin", "-", "+" ]
36-20.1
15.9
-_d1
[ "-" ]
(-15)-2
-17
-_d2
[ "-" ]
(-2.6)-(abs(log(41.9)))
-6.3
-_d3
[ "-", "abs", "log" ]
10*(-2.5)
-25
*_d1
[ "*", "-" ]
(-9.9)*(-7)
69.3
*_d2
[ "-", "*" ]
(cos(4.6^(-2)))*(7-(-10))
17
*_d3
[ "cos", "^", "-", "*" ]
(-2)/8.3
-0.2
/_d1
[ "-", "/" ]
(-6.4)/9.1
-0.7
/_d2
[ "-", "/" ]
(tan(sin((-21.2)/4)))/(cos(ln(41.8)))
-1.3
/_d3
[ "tan", "sin", "-", "/", "cos", "ln" ]
5^(-1)
0.2
^_d1
[ "^", "-" ]
(abs(-1.3)+0.1)^-2
0.5
^_d2
[ "abs", "-", "+", "^" ]
(abs(2/(-20))+0.1)^3
0
^_d3
[ "abs", "/", "-", "+", "^" ]
sin(3.6)
-0.4
sin_d1
[ "sin" ]
sin(sqrt(0.6))
0.7
sin_d2
[ "sin", "sqrt" ]
sin(sin(sqrt(62.4)))
0.8
sin_d3
[ "sin", "sqrt" ]
cos(-0.6)
0.8
cos_d1
[ "cos", "-" ]
cos((-10)*13)
-0.4
cos_d2
[ "cos", "-", "*" ]
cos(abs(exp(-1.2)))
1
cos_d3
[ "cos", "abs", "exp", "-" ]
tan(1.6)
-34.2
tan_d1
[ "tan" ]
End of preview.

YAML Metadata Warning:The task_categories "mathematical-modeling" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

Transformer Math Dataset (100,000,000 Samples Sharded)

High-precision synthetic mathematical expression dataset generated for training sequence-to-sequence math Transformers in JAX/Flax.

Dataset Structure

  • Total Samples: 100,000,000
  • Shard Format: JSONL sharded files (100,000 samples per shard)
  • Supported Operations: +, -, *, /, ^, sin, cos, tan, log, ln, exp, sqrt, abs
  • Expression Depth Range: Depth 1 to 3
  • Integer Operand Ratio: 50%

Data Fields

Each line in the .jsonl shard files is a JSON object with the following fields:

  • expr (str): Syntactically valid mathematical expression (e.g. "sin((3.5))+cos((1.2))")
  • val (str): Target evaluated numerical result formatted to precision (e.g. "0.6")
  • category (str): Operation-depth category bucket (e.g. "sin_d4")
  • ops_used (list[str]): List of mathematical functions/operators present in the expression (e.g. ["sin", "+", "cos"])

Usage Example

from datasets import load_dataset

dataset = load_dataset("saidurga001301/mathmetics-dataset", streaming=True)
for sample in dataset["train"]:
    print(sample["expr"], "->", sample["val"], "ops:", sample["ops_used"])
    break
Downloads last month
1,233