--- In [email protected], Akter Suriya <aktersur...@...> wrote:
>
> No doubt at tall
> All these trignometric function requires their arguments to be in radians
> and not in degrees.
> I hope you have conversion formula to convert degree to radian
> 
> 
> On Fri, Mar 6, 2009 at 3:58 PM, Paul Herring <pauljherr...@...> wrote:
> 
> >   On Fri, Mar 6, 2009 at 9:03 AM, rasheed abdul 
> > <rashu_76...@...<rashu_76969%40yahoo.com>>
> > 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
> >  
> >
> 
> 
> 
> -- 
> Akter Yakub Suriya
> Senior Software Analyst
> Hyderabad.
> (09440711663)
> 
> 
> [Non-text portions of this message have been removed]
>
Dear Akter,

You can assign the float pi =3.141592653589793.  The establish the conversion 
ratio float cr = pi/180.0, which provides the conversion of degrees to radians. 
 Presume you have a float variable defined as float ang = 60.0, which is 
expressed in degrees.  Then float angr = cr * ang, results in the conversion of 
the angle from being expressed in degrees to being expressed in radians.  

Kocmotex

Reply via email to