Average Error: 0.2 → 0.2
Time: 280.0ms
Precision: binary64
Cost: 320
\[\left(x \cdot 3\right) \cdot x\]
\[\left(x \cdot 3\right) \cdot x\]
\left(x \cdot 3\right) \cdot x
\left(x \cdot 3\right) \cdot x
(FPCore (x) :precision binary64 (* (* x 3.0) x))
(FPCore (x) :precision binary64 (* (* x 3.0) x))
double code(double x) {
	return (x * 3.0) * x;
}
double code(double x) {
	return (x * 3.0) * x;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\left(x \cdot 3\right) \cdot x\]

Reproduce

herbie shell --seed 2021042 
(FPCore (x)
  :name "Diagrams.Tangent:$catParam from diagrams-lib-1.3.0.3, F"
  :precision binary64
  (* (* x 3.0) x))