vale of sin 60and cos 30 i did not get exaact

October 7, 2010 at 19:30:39
Specs: Windows XP
i am not getiing exact value of sin 60 and cos 60.. i use function parameter by reference...
#include<iostream>
#include<math.h>
void GetSinCos(const double dx, double &dSin, double &dCos)
{
dSin=sin(dx);
dCos=cos(dx);

}
int main()
{
GetSinCos(60,dSin,dCos);////This function takes one parameter (by value) as input, and “returns” two parameters (by reference) as output.///////

cout<<"the sin is"<<dSin<<endl;
cout<<"the cos is"<<dCos<<endl;

}


See More: vale of sin 60and cos 30 i did not get exaact

Report •


#1
October 9, 2010 at 16:13:57
What exact values are you looking for?

How To Ask Questions The Smart Way


Report •

#2
October 10, 2010 at 19:46:31
Don't trig functions usually want input in radians, not degrees?

Report •

#3
October 12, 2010 at 04:07:21
thanks

Report •

Related Solutions


Ask Question