Average Error: 0.2 → 0.2
Time: 2.2s
Precision: binary64
\[\frac{\sin x \cdot \tan x}{\cos x}\]
\[\frac{\sin x \cdot \tan x}{\cos x}\]
\frac{\sin x \cdot \tan x}{\cos x}
\frac{\sin x \cdot \tan x}{\cos x}
double code(double x) {
	return ((double) (((double) (((double) sin(x)) * ((double) tan(x)))) / ((double) cos(x))));
}
double code(double x) {
	return ((double) (((double) (((double) sin(x)) * ((double) tan(x)))) / ((double) cos(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

    \[\frac{\sin x \cdot \tan x}{\cos x}\]
  2. Final simplification0.2

    \[\leadsto \frac{\sin x \cdot \tan x}{\cos x}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ (* (sin x) (tan x)) (cos x))"
  :precision binary64
  (/ (* (sin x) (tan x)) (cos x)))