|
From: Mihkel P. <mi...@ya...> - 2001-11-11 18:43:16
|
Hello,
I wrote a very simple programme to test function
sin():
#include <stdio.h>
#include <math.h>
void main()
{
float f=1.0f;
printf("The sine for %f is %f",f,sin(f));
}
, but it printed on the screen
"The sine for 1.00000 is 0.841471".
Then I tried to calculate sine for 1.0000 on a
calculator and I found that sine for 1 is 0.017452...
What am I doing wrong?
(I'm sorry for the spelling mistakes)
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
|