mirror of
https://github.com/Xevion/power-math.git
synced 2025-12-06 05:15:56 -06:00
fix LaTeX formatting in arithmetic rendering, simplify fraction variable mistake
This commit is contained in:
@@ -31,7 +31,7 @@ def multiplication():
|
|||||||
b = random.randint(2, 26 - a)
|
b = random.randint(2, 26 - a)
|
||||||
return {
|
return {
|
||||||
'type': inspect.stack()[0][3],
|
'type': inspect.stack()[0][3],
|
||||||
'question': f'{a} x {b}',
|
'question': f'{a}\\times {b}',
|
||||||
'answer': a * b
|
'answer': a * b
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ def division():
|
|||||||
b = random.randint(2, 26 - a)
|
b = random.randint(2, 26 - a)
|
||||||
return {
|
return {
|
||||||
'type': inspect.stack()[0][3],
|
'type': inspect.stack()[0][3],
|
||||||
'question': f'{a * b} ÷ {b}',
|
'question': f'{a * b}\\div {b}',
|
||||||
'answer': a
|
'answer': a
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ def simplify_fraction():
|
|||||||
return {
|
return {
|
||||||
'type': inspect.stack()[0][3],
|
'type': inspect.stack()[0][3],
|
||||||
'question': f'Simplify. \\frac{{{c}}}{{{d}}}',
|
'question': f'Simplify. \\frac{{{c}}}{{{d}}}',
|
||||||
'answer': f'{c}/{d}'
|
'answer': f'{a}/{b}'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user