\left(\sin x + 0.5\right) - 3.75 \cdot \tan \left(2 \cdot x\right)
\left(\sin x + 0.5\right) - 3.75 \cdot \tan \left(2 \cdot x\right)
double code(double x) {
return ((double) (((double) (((double) sin(x)) + 0.5)) - ((double) (3.75 * ((double) tan(((double) (2.0 * x))))))));
}
double code(double x) {
return ((double) (((double) (((double) sin(x)) + 0.5)) - ((double) (3.75 * ((double) tan(((double) (2.0 * x))))))));
}



Bits error versus x
Results
Initial program 0.2
Final simplification0.2
herbie shell --seed 2020152
(FPCore (x)
:name "(- (+ (sin x) 0.5) (* 3.75 (tan (* 2 x))))"
:precision binary64
(- (+ (sin x) 0.5) (* 3.75 (tan (* 2.0 x)))))