I made this code in Python
def hitsin(a):
a = a*57.3
return math.sin(a)
so whenever i put hitin (x), x is converted to radian. I confuse when I set hitin (90), the answer is not 1 or any number is about 1, but negative (it was -0.9971392129043587). Am I doing it wrong?
ps: I am also trying to write the same code in C
#include <stdio.h>
#include <math.h>
int main(){
float degree;
float result;
degree = 90;
degree = degree*57.3;
result = cos(result);
printf("%f",result);
return 1;
}
But the answer is the same.
sincerely your kettlebell
source
share