Average Error: 3.9 → 3.9
Time: 1.3s
Precision: binary64
\[\frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}\]
\[\frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}\]
\frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}
\frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}
double code(double x, double y) {
	return ((double) (((double) (((double) tan(x)) * ((double) tan(x)))) / ((double) (y + ((double) (((double) tan(x)) * ((double) tan(x))))))));
}
double code(double x, double y) {
	return ((double) (((double) (((double) tan(x)) * ((double) tan(x)))) / ((double) (y + ((double) (((double) tan(x)) * ((double) tan(x))))))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 3.9

    \[\frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}\]
  2. Final simplification3.9

    \[\leadsto \frac{\tan x \cdot \tan x}{y + \tan x \cdot \tan x}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x y)
  :name "(/ (* (tan x) (tan x)) (+ y (* (tan x) (tan x))))"
  :precision binary64
  (/ (* (tan x) (tan x)) (+ y (* (tan x) (tan x)))))