Average Error: 0.0 → 0.0
Time: 1.1s
Precision: binary64
\[\left(\frac{\log \left(\left|3 \cdot \left(1 - x\right) + 1\right|\right)}{80} + x \cdot x\right) + 1\]
\[\left(\frac{\log \left(\left|3 \cdot \left(1 - x\right) + 1\right|\right)}{80} + x \cdot x\right) + 1\]
\left(\frac{\log \left(\left|3 \cdot \left(1 - x\right) + 1\right|\right)}{80} + x \cdot x\right) + 1
\left(\frac{\log \left(\left|3 \cdot \left(1 - x\right) + 1\right|\right)}{80} + x \cdot x\right) + 1
double code(double x) {
	return ((double) (((double) (((double) (((double) log(((double) fabs(((double) (((double) (3.0 * ((double) (1.0 - x)))) + 1.0)))))) / 80.0)) + ((double) (x * x)))) + 1.0));
}
double code(double x) {
	return ((double) (((double) (((double) (((double) log(((double) fabs(((double) (((double) (3.0 * ((double) (1.0 - x)))) + 1.0)))))) / 80.0)) + ((double) (x * x)))) + 1.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.0

    \[\left(\frac{\log \left(\left|3 \cdot \left(1 - x\right) + 1\right|\right)}{80} + x \cdot x\right) + 1\]
  2. Final simplification0.0

    \[\leadsto \left(\frac{\log \left(\left|3 \cdot \left(1 - x\right) + 1\right|\right)}{80} + x \cdot x\right) + 1\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(+ (+ (/ (log (fabs (+ (* 3 (- 1 x)) 1))) 80) (* x x)) 1)"
  :precision binary64
  (+ (+ (/ (log (fabs (+ (* 3.0 (- 1.0 x)) 1.0))) 80.0) (* x x)) 1.0))