Average Error: 0.4 → 0.4
Time: 454.0ms
Precision: binary64
\[\frac{180 \cdot x}{\pi}\]
\[\frac{180 \cdot x}{\pi}\]
\frac{180 \cdot x}{\pi}
\frac{180 \cdot x}{\pi}
double code(double x) {
	return ((double) (((double) (180.0 * x)) / ((double) M_PI)));
}
double code(double x) {
	return ((double) (((double) (180.0 * x)) / ((double) M_PI)));
}

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{180 \cdot x}{\pi}\]
  2. Final simplification0.4

    \[\leadsto \frac{180 \cdot x}{\pi}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ (* 180 x) PI)"
  :precision binary64
  (/ (* 180.0 x) PI))