Average Error: 28.1 → 28.1
Time: 1.3s
Precision: binary64
\[\tan \left(0.00872664626000000006 \cdot y + 0.78539816339699997\right)\]
\[\tan \left(0.00872664626000000006 \cdot y + 0.78539816339699997\right)\]
\tan \left(0.00872664626000000006 \cdot y + 0.78539816339699997\right)
\tan \left(0.00872664626000000006 \cdot y + 0.78539816339699997\right)
double code(double y) {
	return ((double) tan(((double) (((double) (0.00872664626 * y)) + 0.785398163397))));
}
double code(double y) {
	return ((double) tan(((double) (((double) (0.00872664626 * y)) + 0.785398163397))));
}

Error

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 28.1

    \[\tan \left(0.00872664626000000006 \cdot y + 0.78539816339699997\right)\]
  2. Final simplification28.1

    \[\leadsto \tan \left(0.00872664626000000006 \cdot y + 0.78539816339699997\right)\]

Reproduce

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