mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
Fix Linter error
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
from .__init__ import *
|
from .__init__ import *
|
||||||
import sympy
|
import sympy
|
||||||
|
|
||||||
|
|
||||||
def stationaryPointsFunc(maxExp=3, maxCoef=10):
|
def stationaryPointsFunc(maxExp=3, maxCoef=10):
|
||||||
while True:
|
while True:
|
||||||
x = sympy.symbols('x')
|
x = sympy.symbols('x')
|
||||||
@@ -18,4 +19,5 @@ def stationaryPointsFunc(maxExp=3, maxCoef=10):
|
|||||||
problem = 'f(x)=' + str(problem).replace('**', '^')
|
problem = 'f(x)=' + str(problem).replace('**', '^')
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
|
||||||
stationary_points = Generator("Stationary Points", 106, "f(x)=x^3-3x", "(-1,2),(1,-2)", stationaryPointsFunc)
|
stationary_points = Generator("Stationary Points", 106, "f(x)=x^3-3x", "(-1,2),(1,-2)", stationaryPointsFunc)
|
||||||
|
|||||||
Reference in New Issue
Block a user