title: Java: Calc x in sin(x)
body: <p>My question is about angle functions in programming languge Java. if i want to get sin of any double, i just use</p>
  
  <pre class="lang-java prettyprint-override"><code>double variable = Math.sin(x);
  </code></pre>
  
  <p>but what if <strong>sin(x) =  0.324</strong> (or any other random number) and i want to calculate x? How can i do it? Are there any native function to this in java or i have to implement my own algorithm to return this value ?</p>
  
  <pre class="lang-java prettyprint-override"><code>getXForValue(0.324);
  
  public double getXForValue(double val){
   // how to calculate ?
   return x;
  }
  </code></pre>
  
  <p>Thanks.</p>