Skip to content
Snippets Groups Projects
Commit 6488c33f authored by Choi Jinyoung's avatar Choi Jinyoung
Browse files

update test.c

parent a38e7116
No related branches found
No related tags found
1 merge request!8update test.c
......@@ -59,12 +59,17 @@ int main() {
printf("\n\t====== Division =======\n");
fc=fx_s2308_l_div1(fa,fb);
printf("\n\t\tdiv1: Exact answer = %f func result = %f, error = %f\n",da/db, FX_TO_DOUBLE(fc), da/db-FX_TO_DOUBLE(fc));
printf("\n\tdiv1: Exact answer = %f func result = %f, error = %f\n",da/db, FX_TO_DOUBLE(fc), da/db-FX_TO_DOUBLE(fc));
fc=fx_s2308_l_div2(fa,fb);
printf("\n\tdiv2: Exact answer = %f func result = %f, error = %f\n",da/db, FX_TO_DOUBLE(fc), da/db-FX_TO_DOUBLE(fc));
printf("\n\t====== Sine =======\n");
printf("\n\t fx_s2308 long long sine 30 = %lf", FX_TO_DOUBLE(fx_s2308_sind(DOUBLE_TO_FX(30))));
printf("\n\t fx_s2308 long long sine 30 = %lf\n", FX_TO_DOUBLE(fx_s2308_sind(DOUBLE_TO_FX(30))));
printf("\n\t fx_s2308 long long sine -30 = %lf\n", FX_TO_DOUBLE(fx_s2308_sind(DOUBLE_TO_FX(-30))));
printf("\n\t fx_s2308 long long sine 210 = %lf\n", FX_TO_DOUBLE(fx_s2308_sind(DOUBLE_TO_FX(210))));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment