Update of /cvsroot/easycalc/easycalc/mlib
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv15158/mlib
Modified Files:
MathLib.c
Log Message:
Restore full precision sin/cos/tan in MathLib.c. Reducing precision should
be handled elsewhere.
Index: MathLib.c
===================================================================
RCS file: /cvsroot/easycalc/easycalc/mlib/MathLib.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** MathLib.c 12 Sep 2006 19:40:56 -0000 1.3
--- MathLib.c 16 Sep 2006 20:36:29 -0000 1.4
***************
*** 77,84 ****
double result;
MathLibCos(MathLibRef, x, &result);
-
- if(fabs(result)<1E-10)
- result=0;
-
return result;
}
--- 77,80 ----
***************
*** 87,94 ****
double result;
MathLibSin(MathLibRef, x, &result);
-
- if(fabs(result)<1E-10)
- result=0;
-
return result;
}
--- 83,86 ----
***************
*** 97,104 ****
double result;
MathLibTan(MathLibRef, x, &result);
-
- if(fabs(result)<1E-10)
- result=0;
-
return result;
}
--- 89,92 ----
|