When I evaluate
Solve[Log[-0.5 + 10^x + Sin[x]]/Log[10] == x, x]
I get the output
{{x -> ConditionalExpression[0.523599 + 6.28319 C[1], C[1] ∈ Integers]}, {x -> ConditionalExpression[2.61799 + 6.28319 C[1], C[1] ∈ Integers]}}
How can I results in the form:
x -> π/6 + 2 π C[1]
x -> 5 π/6 + 2 π C[1]
0.5
to1/2
, for more difficult cases useRationalize
with a threshold of 0. $\endgroup$-1/2
you can just useNormal @ Solve[...
, see: How to extract expression from ConditionalExpression $\endgroup$