javascript Math.cos shows different answer compare to scientific calculator
<p>i created a program in javascript that computes vector coordinates, everything was smooth since i have the correct formula, but when i try to conpute for the cosine of 143.1301 using Math.cos in javascript it returns 0.1864 instead of 0.7999 from the scientific calculator why is that? can anyone explain to me why? and also please give me the solution for this problem... thanks in advance... :) here;s a sample of my code</p>

<pre><code>function cyltoxec(a)  
{
    ans = Math.cos(a);  
    return ans.toFixed(4);
}
var = x;
return cyltoxec(x);
</code></pre>
