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

Merge branch 'test2' into 'master'

update test.c

See merge request !8
parents a38e7116 6488c33f
No related branches found
No related tags found
1 merge request!8update test.c
...@@ -59,12 +59,17 @@ int main() { ...@@ -59,12 +59,17 @@ int main() {
printf("\n\t====== Division =======\n"); printf("\n\t====== Division =======\n");
fc=fx_s2308_l_div1(fa,fb); 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); 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\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====== 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