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

modify error

parent 7f40ea99
No related branches found
No related tags found
No related merge requests found
......@@ -47,14 +47,14 @@ int main() {
fa=DOUBLE_TO_FX(da);
fb=DOUBLE_TO_FX(db);
fc=fx_2308_l_mul(fa,fb);
fc=fx_s2308_l_mul(fa,fb);
printf("\n\t====== Multiplication =======\n");
printf("\n\tmul1: Exact answer = %f func result = %f, error = %f\n", da*db, FX_TO_DOUBLE(fc), da*db-FX_TO_DOUBLE(fc));
fc=fx_2308_l_mul2(fa,fb);
fc=fx_s2308_l_mul2(fa,fb);
printf("\n\tmul2: Exact answer = %f func result = %f, error = %f\n",da*db, FX_TO_DOUBLE(fc), da*db-FX_TO_DOUBLE(fc));
fc=fx_2308_l_mul3(fa,fb);
fc=fx_s2308_l_mul3(fa,fb);
printf("\n\tmul3: Exact answer = %f func result = %f, error = %f\n",da*db, FX_TO_DOUBLE(fc), da*db-FX_TO_DOUBLE(fc));
fc=fx_2308_l_mul4(fa,fb);
fc=fx_s2308_l_mul4(fa,fb);
printf("\n\tmul4: Exact answer = %f func result = %f, error = %f\n",da*db, FX_TO_DOUBLE(fc), da*db-FX_TO_DOUBLE(fc));
printf("\n\t====== Division =======\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment