I tried to solve a simple trig equation.
Solve[{Sin[x] == Cos[x], 0 <= x <= Pi}];
The answer should be pi/4
But I get
simplify[{{x -> -2 ArcTan[1 - Sqrt[2]]}}]
I tried to solve a simple trig equation.
Solve[{Sin[x] == Cos[x], 0 <= x <= Pi}];
The answer should be pi/4
But I get
simplify[{{x -> -2 ArcTan[1 - Sqrt[2]]}}]
Try
FindRoot[Sin[x] - Cos[x], {x, 0}]
r_Real :> Pi*RootApproximant[r/Pi]`
– Bob Hanlon Jul 07 '20 at 05:17Solve
– PaulCommentary
Jul 07 '20 at 14:56
FullSimplify[-2 ArcTan[1 - Sqrt[2]]]to givePi/4. – flinty Jul 07 '20 at 01:52