Average Error: 0.0 → 0.0
Time: 1.2s
Precision: binary64
\[\log y - y \cdot x\]
\[\log y - y \cdot x\]
\log y - y \cdot x
\log y - y \cdot x
double code(double y, double x) {
	return ((double) (((double) log(y)) - ((double) (y * x))));
}
double code(double y, double x) {
	return ((double) (((double) log(y)) - ((double) (y * x))));
}

Error

Bits error versus y

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\log y - y \cdot x\]
  2. Final simplification0.0

    \[\leadsto \log y - y \cdot x\]

Reproduce

herbie shell --seed 2020152 
(FPCore (y x)
  :name "(- (log y) (* y x))"
  :precision binary64
  (- (log y) (* y x)))