title: Basic trigonometry in Java
body: <p>I've been struggling around with this problem for a couple of days, so after alot of googling I decided to ask here instead. </p>
  
  <p>Anyway, I need to use the <code>Math.tan()</code> method, but it doesn't work really as I want. Becase if I set up an double variable: <code>double i = opposite/adjacent</code> and then use the <code>Math.tan()</code> method on that, it just returns 0.0! For example: </p>
  
  <pre><code>double i = 480/640;
  System.out.println(Math.tan(i));
  </code></pre>
  
  <p>But it still returns zero! I read that the <code>Math.tan()</code> method only returns the "Radian" value. But because of that it should'nt return zero? Or am I wrong? I know that if i use a real calculator and do tan(480/640) it will return what I want. </p>
  
  <p>So I hope someone understands me and wants to help me!
  Thanks in advance! (Btw I'm sorry for bad english)</p>