Average Error: 0.1 → 0.1
Time: 725.0ms
Precision: binary64
\[\frac{1}{x} - \frac{1}{tan} \cdot x\]
\[\frac{1}{x} - \frac{1}{tan} \cdot x\]
\frac{1}{x} - \frac{1}{tan} \cdot x
\frac{1}{x} - \frac{1}{tan} \cdot x
double code(double x, double tan) {
	return ((double) (((double) (1.0 / x)) - ((double) (((double) (1.0 / tan)) * x))));
}
double code(double x, double tan) {
	return ((double) (((double) (1.0 / x)) - ((double) (((double) (1.0 / tan)) * x))));
}

Error

Bits error versus x

Bits error versus tan

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\frac{1}{x} - \frac{1}{tan} \cdot x\]
  2. Final simplification0.1

    \[\leadsto \frac{1}{x} - \frac{1}{tan} \cdot x\]

Reproduce

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