mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
lint fixes
This commit is contained in:
@@ -94,7 +94,7 @@ def stationary_points(max_exp=3, max_coef=10):
|
|||||||
problem += coefficient * pow(x, exp)
|
problem += coefficient * pow(x, exp)
|
||||||
solution = sympy.stationary_points(problem, x)
|
solution = sympy.stationary_points(problem, x)
|
||||||
|
|
||||||
problem = 'f(x)=' + str(problem).replace('**', '^').replace('*','')
|
problem = 'f(x)=' + str(problem).replace('**', '^').replace('*', '')
|
||||||
return f'${problem}$', f'${sympy.latex(solution)[6:-8]}}}$'
|
return f'${problem}$', f'${sympy.latex(solution)[6:-8]}}}$'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ def volume_cone(max_radius=20, max_height=50, unit='m'):
|
|||||||
|
|
||||||
def volume_cube(max_side=20, unit='m'):
|
def volume_cube(max_side=20, unit='m'):
|
||||||
"""Volume of a cube
|
"""Volume of a cube
|
||||||
|
|
||||||
| Ex. Problem | Ex. Solution |
|
| Ex. Problem | Ex. Solution |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| Volume of a cube with a side length of $19m$ is | $6859 m^3$ |
|
| Volume of a cube with a side length of $19m$ is | $6859 m^3$ |
|
||||||
|
|||||||
Reference in New Issue
Block a user