def func(x, a, b, c, n):
    return a * x ** n + b * x - c
a, b, c = 11.0, 23.0, 31.0
n = 77.0 / 27.0
guess = [4.0]
print(fsolve(func, guess, args=(a, b, c, n)))
Find roots of a function a x^n + bx - c = 0 where n isnt an integer with Numpy?