1
$\begingroup$

I would like to solve a simple trigonometric equation, for example $\sin\theta=\frac{1}{2},$ but Solve gives the single solution obtained by using the inverse function ArcSin, while Reduce gives all solution in a form difficult to use.

I would like to have a list of substitutions like the output of Solve, for all solutions contained in a given range, for example $[0,2\pi):$

{{θ -> π/6}, {θ -> 5π/6}}
$\endgroup$

1 Answer 1

4
$\begingroup$

You can give explicit ranges as inputs to Solve

Solve[{Sin[t] == 1/2, 0 <= t < 2 π}, t]
(* {{t -> π/6}, {t -> (5 π)/6}} *)
$\endgroup$
1
  • $\begingroup$ How simple! Thank you! $\endgroup$
    – enzotib
    Commented Jan 25, 2016 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.