?

Average Error: 0.1 → 0.1
Time: 10.5s
Precision: binary64
Cost: 6848

?

\[\left(x \cdot \log y - z\right) - y \]
\[\left(x \cdot \log y - z\right) - y \]
(FPCore (x y z) :precision binary64 (- (- (* x (log y)) z) y))
(FPCore (x y z) :precision binary64 (- (- (* x (log y)) z) y))
double code(double x, double y, double z) {
	return ((x * log(y)) - z) - y;
}
double code(double x, double y, double z) {
	return ((x * log(y)) - z) - y;
}
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = ((x * log(y)) - z) - y
end function
real(8) function code(x, y, z)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    code = ((x * log(y)) - z) - y
end function
public static double code(double x, double y, double z) {
	return ((x * Math.log(y)) - z) - y;
}
public static double code(double x, double y, double z) {
	return ((x * Math.log(y)) - z) - y;
}
def code(x, y, z):
	return ((x * math.log(y)) - z) - y
def code(x, y, z):
	return ((x * math.log(y)) - z) - y
function code(x, y, z)
	return Float64(Float64(Float64(x * log(y)) - z) - y)
end
function code(x, y, z)
	return Float64(Float64(Float64(x * log(y)) - z) - y)
end
function tmp = code(x, y, z)
	tmp = ((x * log(y)) - z) - y;
end
function tmp = code(x, y, z)
	tmp = ((x * log(y)) - z) - y;
end
code[x_, y_, z_] := N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]
code[x_, y_, z_] := N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision] - y), $MachinePrecision]
\left(x \cdot \log y - z\right) - y
\left(x \cdot \log y - z\right) - y

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 0.1

    \[\left(x \cdot \log y - z\right) - y \]
  2. Final simplification0.1

    \[\leadsto \left(x \cdot \log y - z\right) - y \]

Alternatives

Alternative 1
Error9.3
Cost7248
\[\begin{array}{l} t_0 := -\left(y + z\right)\\ t_1 := \log y \cdot x - y\\ \mathbf{if}\;z \leq -1.1 \cdot 10^{+94}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;z \leq -2.55 \cdot 10^{+45}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;z \leq -7.1 \cdot 10^{-40}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;z \leq 5.2 \cdot 10^{+59}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 2
Error13.8
Cost7120
\[\begin{array}{l} t_0 := \log y \cdot x\\ t_1 := -\left(y + z\right)\\ \mathbf{if}\;x \leq -4.8 \cdot 10^{+169}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 7 \cdot 10^{+69}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;x \leq 2.4 \cdot 10^{+92}:\\ \;\;\;\;t_0\\ \mathbf{elif}\;x \leq 1.8 \cdot 10^{+189}:\\ \;\;\;\;t_1\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 3
Error9.1
Cost6852
\[\begin{array}{l} \mathbf{if}\;y \leq 2.3 \cdot 10^{+83}:\\ \;\;\;\;\log y \cdot x - z\\ \mathbf{else}:\\ \;\;\;\;-\left(y + z\right)\\ \end{array} \]
Alternative 4
Error30.5
Cost260
\[\begin{array}{l} \mathbf{if}\;y \leq 2.3 \cdot 10^{+108}:\\ \;\;\;\;-z\\ \mathbf{else}:\\ \;\;\;\;-y\\ \end{array} \]
Alternative 5
Error21.1
Cost256
\[-\left(y + z\right) \]
Alternative 6
Error41.9
Cost128
\[-y \]

Error

Reproduce?

herbie shell --seed 2023090 
(FPCore (x y z)
  :name "Statistics.Distribution.Poisson:$clogProbability from math-functions-0.1.5.2"
  :precision binary64
  (- (- (* x (log y)) z) y))