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]}}}$'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user