title: Matlab: return complete solution of inverse cosine (acos)
body: <p>I have some Matlab code of the following form:</p>
  
  <p><code>syms theta x 
   theta = acos(x)</code></p>
  
  <p>This returns a single solution for theta. However, I want to return the complete solution (between some limits). </p>
  
  <p>For example,</p>
  
  <p>x = cos(theta) </p>
  
  <p>would give x=0.5 for theta = 60 degrees, 120 degrees, 420 degrees, etc. Therefore, in my code above, I want theta to return all these possible values.</p>
  
  <p>Does anyone know how to do this? I have been searching google for hours but I can't find how to do this!</p>
  
  <p>Many thanks!</p>