I have a function (x^x)*((1-x)^(1-x))*(k^(x/2)) = 1
which has a unique solution
in 0 < x < 1
for a given natural number k
.
Can I use Python to find these solutions, or is my equation too complicated?
I have a function (x^x)*((1-x)^(1-x))*(k^(x/2)) = 1
which has a unique solution
in 0 < x < 1
for a given natural number k
.
Can I use Python to find these solutions, or is my equation too complicated?
Yes, you can use Python to solve this equation.
I suggest you fix k=2 to simplify. Wolfram Alpha can verify your results: https://www.wolframalpha.com/input/?i=(x%5Ex)((1-x)%5E(1-x))(2%5E(x%2F2))+%3D+1
Depending on how you do your root search, you may have to take a first derivative with respect to x and place that into Python, as well.