Average Error: 0.2 → 0.2
Time: 1.9s
Precision: binary64
\[\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)\]
\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))))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\left(\sin x + 0.5\right) - 3.75 \cdot \tan \left(2 \cdot x\right)\]
  2. Final simplification0.2

    \[\leadsto \left(\sin x + 0.5\right) - 3.75 \cdot \tan \left(2 \cdot x\right)\]

Reproduce

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)))))