Average Error: 28.4 → 28.4
Time: 3.0s
Precision: binary64
\[\frac{\tan \left(x \cdot 3.1415926535897931\right) + \tan \left(x \cdot 1.2246467991473533\right)}{1 - \tan \left(x \cdot 3.1415926535897931\right) \cdot \tan \left(x \cdot 1.2246467991473533\right)}\]
\[\frac{\tan \left(x \cdot 3.1415926535897931\right) + \tan \left(x \cdot 1.2246467991473533\right)}{1 - \tan \left(x \cdot 3.1415926535897931\right) \cdot \tan \left(x \cdot 1.2246467991473533\right)}\]
\frac{\tan \left(x \cdot 3.1415926535897931\right) + \tan \left(x \cdot 1.2246467991473533\right)}{1 - \tan \left(x \cdot 3.1415926535897931\right) \cdot \tan \left(x \cdot 1.2246467991473533\right)}
\frac{\tan \left(x \cdot 3.1415926535897931\right) + \tan \left(x \cdot 1.2246467991473533\right)}{1 - \tan \left(x \cdot 3.1415926535897931\right) \cdot \tan \left(x \cdot 1.2246467991473533\right)}
double code(double x) {
	return ((double) (((double) (((double) tan(((double) (x * 3.141592653589793)))) + ((double) tan(((double) (x * 1.2246467991473533)))))) / ((double) (1.0 - ((double) (((double) tan(((double) (x * 3.141592653589793)))) * ((double) tan(((double) (x * 1.2246467991473533))))))))));
}
double code(double x) {
	return ((double) (((double) (((double) tan(((double) (x * 3.141592653589793)))) + ((double) tan(((double) (x * 1.2246467991473533)))))) / ((double) (1.0 - ((double) (((double) tan(((double) (x * 3.141592653589793)))) * ((double) tan(((double) (x * 1.2246467991473533))))))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 28.4

    \[\frac{\tan \left(x \cdot 3.1415926535897931\right) + \tan \left(x \cdot 1.2246467991473533\right)}{1 - \tan \left(x \cdot 3.1415926535897931\right) \cdot \tan \left(x \cdot 1.2246467991473533\right)}\]
  2. Final simplification28.4

    \[\leadsto \frac{\tan \left(x \cdot 3.1415926535897931\right) + \tan \left(x \cdot 1.2246467991473533\right)}{1 - \tan \left(x \cdot 3.1415926535897931\right) \cdot \tan \left(x \cdot 1.2246467991473533\right)}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(/ (+ (tan (* x 3.141592653589793)) (tan (* x 1.2246467991473533))) (- 1 (* (tan (* x 3.141592653589793)) (tan (* x 1.2246467991473533)))))"
  :precision binary64
  (/ (+ (tan (* x 3.141592653589793)) (tan (* x 1.2246467991473533))) (- 1.0 (* (tan (* x 3.141592653589793)) (tan (* x 1.2246467991473533))))))