On Fri, Mar 6, 2009 at 9:03 AM, rasheed abdul <[email protected]> wrote:
> Dear Sir,
>        While using cos( ) function to find the cos value of 30, 60, 90, 120, 
> 130, 150,..
> etc.. in C , the output is coming wrongly,

I somehow doubt that...

> for example ,  In scientific calculator the value of  Cos(30) is 0.866 and 
> in Trignometric
> table, Cos(30) value is (root of 3 by 2 ) which is also 0.866, but In C, I am 
> getting 0.1542.
> Tell me the reason and guide me to get exact value....

Those functions take radians as their parameter, your table is likely
in degrees.

-- 
PJH

http://shabbleland.myminicity.com/ind
http://www.chavgangs.com/register.php?referer=9375

Reply via email to