This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy.solvers import solve | |
from sympy.abc import x | |
def getDeepDotQuality(func, arg, val, n = 3): | |
dy = func.diff(arg) | |
dyn = dy.subs(arg, val) | |
if (dyn == 0): | |
return getDeepDotQuality(dy, arg, val, n+1) | |
elif (n % 2 == 1): | |
return 'has an inflection point' |
NewerOlder