I am trying to solve the following equation:
-1/2*sqrt(-4*p^2 + 4*p + 1)*p + 1/2*p = 1/2
I was trying the following:
sage: var('p')
p
sage: solve(-1/2*sqrt(-4*p^2 + 4*p + 1)*p + 1/2*p == 1/2, p)
[p == -1/(sqrt(-4*p^2 + 4*p + 1) - 1)]
So the solution is p = some expression of p. Not very useful. Wolfram Alpha, for example, gives the following solution:
1/4 + 1/4 (sqrt(5) + sqrt(2 (-1 + sqrt(5))))
(along with some complex solutions)
I do get a proper solution if I use `to_poly_solve=True` in the call to solve.
Am I doing it wrong? Should I, for some reason, always use Maxima's solver?
Thanks,
Peleg.