When I try to find
θ = ArcCos[-.5]
I am expecting more than one answer: $$2 \pi/3, 4\pi/3,...$$
But Mathematica is returning only one: 2.0944 and it is not in angle format as well. Is there a way to get all the values of angles in angle format?
When I try to find
θ = ArcCos[-.5]
I am expecting more than one answer: $$2 \pi/3, 4\pi/3,...$$
But Mathematica is returning only one: 2.0944 and it is not in angle format as well. Is there a way to get all the values of angles in angle format?
you could define a new version of ArcCos[] to produce the desired behaviour
arcCos[θ_] := Solve[θ == Cos[x] , x]
Try the equivalent
Solve[-1/2 == Cos[θ], θ]
and you get multiple values
-.5to its rational representation $-\frac{1}{2}$ will tell Mathematica to use exact symbolic subroutines (and hence get your desired angle format). – Conor Feb 09 '21 at 19:52Sqrt[4]returning only one out of two possible answers. Look up "principal branch". – J. M.'s missing motivation Feb 09 '21 at 20:19ArcCosis a function, and functions, at least in modern mathematics, have only one value for each input. – Michael E2 Feb 10 '21 at 05:36