Average Error: 0.4 → 0.4
Time: 1.9s
Precision: binary64
\[\frac{1}{1 - 3 \cdot {\left(\tan x\right)}^{2}}\]
\[\frac{1}{1 - 3 \cdot {\left(\tan x\right)}^{2}}\]
\frac{1}{1 - 3 \cdot {\left(\tan x\right)}^{2}}
\frac{1}{1 - 3 \cdot {\left(\tan x\right)}^{2}}
double code(double x) {
	return ((double) (1.0 / ((double) (1.0 - ((double) (3.0 * ((double) pow(((double) tan(x)), 2.0))))))));
}
double code(double x) {
	return ((double) (1.0 / ((double) (1.0 - ((double) (3.0 * ((double) pow(((double) tan(x)), 2.0))))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.4

    \[\frac{1}{1 - 3 \cdot {\left(\tan x\right)}^{2}}\]
  2. Final simplification0.4

    \[\leadsto \frac{1}{1 - 3 \cdot {\left(\tan x\right)}^{2}}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(/ 1 (- 1 (* 3 (pow (tan x) 2))))"
  :precision binary64
  (/ 1.0 (- 1.0 (* 3.0 (pow (tan x) 2.0)))))