?

Average Accuracy: 98.9% → 98.9%
Time: 11.3s
Precision: binary64
Cost: 704

?

\[1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)} \]
\[1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)} \]
(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
double code(double x, double y, double z, double t) {
	return 1.0 - (x / ((y - z) * (y - t)));
}
double code(double x, double y, double z, double t) {
	return 1.0 - (x / ((y - z) * (y - t)));
}
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = 1.0d0 - (x / ((y - z) * (y - t)))
end function
real(8) function code(x, y, z, t)
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    code = 1.0d0 - (x / ((y - z) * (y - t)))
end function
public static double code(double x, double y, double z, double t) {
	return 1.0 - (x / ((y - z) * (y - t)));
}
public static double code(double x, double y, double z, double t) {
	return 1.0 - (x / ((y - z) * (y - t)));
}
def code(x, y, z, t):
	return 1.0 - (x / ((y - z) * (y - t)))
def code(x, y, z, t):
	return 1.0 - (x / ((y - z) * (y - t)))
function code(x, y, z, t)
	return Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t))))
end
function code(x, y, z, t)
	return Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t))))
end
function tmp = code(x, y, z, t)
	tmp = 1.0 - (x / ((y - z) * (y - t)));
end
function tmp = code(x, y, z, t)
	tmp = 1.0 - (x / ((y - z) * (y - t)));
end
code[x_, y_, z_, t_] := N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_, y_, z_, t_] := N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}
1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 98.9%

    \[1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)} \]
  2. Final simplification98.9%

    \[\leadsto 1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)} \]

Alternatives

Alternative 1
Accuracy80.9%
Cost976
\[\begin{array}{l} t_1 := 1 - \frac{x}{y \cdot y}\\ \mathbf{if}\;y \leq -4.5 \cdot 10^{+79}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -1.02 \cdot 10^{-11}:\\ \;\;\;\;1 + \frac{x}{y \cdot t}\\ \mathbf{elif}\;y \leq -1 \cdot 10^{-83}:\\ \;\;\;\;1 - \frac{\frac{x}{y}}{y}\\ \mathbf{elif}\;y \leq 1.35 \cdot 10^{-15}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 2
Accuracy80.9%
Cost976
\[\begin{array}{l} t_1 := 1 - \frac{x}{y \cdot y}\\ \mathbf{if}\;y \leq -3 \cdot 10^{+79}:\\ \;\;\;\;t_1\\ \mathbf{elif}\;y \leq -1.06 \cdot 10^{-10}:\\ \;\;\;\;1 + \frac{\frac{x}{y}}{t}\\ \mathbf{elif}\;y \leq -1.65 \cdot 10^{-83}:\\ \;\;\;\;1 - \frac{\frac{x}{y}}{y}\\ \mathbf{elif}\;y \leq 2.85 \cdot 10^{-21}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;t_1\\ \end{array} \]
Alternative 3
Accuracy77.9%
Cost972
\[\begin{array}{l} \mathbf{if}\;z \leq -5.4 \cdot 10^{+165}:\\ \;\;\;\;1 + \frac{\frac{x}{z}}{y}\\ \mathbf{elif}\;z \leq -1.56 \cdot 10^{+68}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{elif}\;z \leq 4.6 \cdot 10^{-145}:\\ \;\;\;\;1 - \frac{\frac{x}{y}}{y - t}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{\frac{z}{\frac{x}{t}}}\\ \end{array} \]
Alternative 4
Accuracy83.6%
Cost840
\[\begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{-12}:\\ \;\;\;\;1 - \frac{\frac{x}{z}}{t - y}\\ \mathbf{elif}\;z \leq 4.6 \cdot 10^{-145}:\\ \;\;\;\;1 - \frac{\frac{x}{y}}{y - t}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{\frac{z}{\frac{x}{t}}}\\ \end{array} \]
Alternative 5
Accuracy84.3%
Cost840
\[\begin{array}{l} \mathbf{if}\;z \leq -3.8 \cdot 10^{-12}:\\ \;\;\;\;1 - \frac{\frac{x}{z}}{t - y}\\ \mathbf{elif}\;z \leq 4.6 \cdot 10^{-145}:\\ \;\;\;\;1 - \frac{\frac{x}{y - t}}{y}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{-1}{\frac{z}{\frac{x}{t}}}\\ \end{array} \]
Alternative 6
Accuracy87.4%
Cost840
\[\begin{array}{l} \mathbf{if}\;t \leq -2.85 \cdot 10^{-189}:\\ \;\;\;\;1 - \frac{\frac{x}{z}}{t - y}\\ \mathbf{elif}\;t \leq 2.1 \cdot 10^{-71}:\\ \;\;\;\;1 - \frac{\frac{x}{y - z}}{y}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{\frac{x}{t}}{y - z}\\ \end{array} \]
Alternative 7
Accuracy71.2%
Cost713
\[\begin{array}{l} \mathbf{if}\;y \leq -5.9 \cdot 10^{-27} \lor \neg \left(y \leq 2.8 \cdot 10^{+51}\right):\\ \;\;\;\;1 - \frac{x}{y \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \end{array} \]
Alternative 8
Accuracy82.0%
Cost713
\[\begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-83} \lor \neg \left(y \leq 6.2 \cdot 10^{-20}\right):\\ \;\;\;\;1 - \frac{x}{y \cdot y}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \end{array} \]
Alternative 9
Accuracy82.0%
Cost712
\[\begin{array}{l} \mathbf{if}\;y \leq -2.9 \cdot 10^{-83}:\\ \;\;\;\;1 - \frac{\frac{x}{y}}{y}\\ \mathbf{elif}\;y \leq 2.25 \cdot 10^{-15}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{x}{y \cdot y}\\ \end{array} \]
Alternative 10
Accuracy60.3%
Cost448
\[1 - \frac{x}{z \cdot t} \]

Error

Reproduce?

herbie shell --seed 2023141 
(FPCore (x y z t)
  :name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, A"
  :precision binary64
  (- 1.0 (/ x (* (- y z) (- y t)))))