Skip to content
Snippets Groups Projects
Commit ea9c68a8 authored by Sangbaek Lee's avatar Sangbaek Lee
Browse files

modified sine angle

parent 9c031cd7
Branches
No related tags found
No related merge requests found
......@@ -38,6 +38,12 @@ fx_s4716 fx_s4716_longlong_div3(fx_s4716 a, fx_s4716 b){
return fx_to_longlong(result);
}
fx_s4716 fx_s4716_longlong_sin(fx_s4716 a){
long long result=sinTable[a];
long long quotient, remain, result;
remain=a%180;
if(remain>90)
remain=180-remain;
quotient=a/180;
result=(sinTable[remain])*(pow(-1,quotient));
return fx_to_longlong(result);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment