?

Average Accuracy: 98.8% → 98.8%
Time: 12.4s
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.8%

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

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

Alternatives

Alternative 1
Accuracy83.3%
Cost844
\[\begin{array}{l} \mathbf{if}\;y \leq -3250000:\\ \;\;\;\;1 - \frac{x}{y \cdot y}\\ \mathbf{elif}\;y \leq -6.8 \cdot 10^{-78}:\\ \;\;\;\;1 + \frac{x}{y \cdot z}\\ \mathbf{elif}\;y \leq 7 \cdot 10^{-106}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 2
Accuracy83.4%
Cost844
\[\begin{array}{l} \mathbf{if}\;y \leq -0.52:\\ \;\;\;\;1 - x \cdot \frac{1}{y \cdot y}\\ \mathbf{elif}\;y \leq -1 \cdot 10^{-77}:\\ \;\;\;\;1 + \frac{x}{y \cdot z}\\ \mathbf{elif}\;y \leq 5.6 \cdot 10^{-106}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 3
Accuracy83.3%
Cost844
\[\begin{array}{l} \mathbf{if}\;y \leq -500:\\ \;\;\;\;1 - x \cdot \frac{1}{y \cdot y}\\ \mathbf{elif}\;y \leq -1.2 \cdot 10^{-77}:\\ \;\;\;\;1 + \frac{x}{z} \cdot \frac{1}{y}\\ \mathbf{elif}\;y \leq 4.3 \cdot 10^{-106}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 4
Accuracy86.2%
Cost840
\[\begin{array}{l} \mathbf{if}\;y \leq -5.2 \cdot 10^{-78}:\\ \;\;\;\;1 - \frac{x}{y \cdot \left(y - z\right)}\\ \mathbf{elif}\;y \leq 2.75 \cdot 10^{-132}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{x}{y \cdot \left(y - t\right)}\\ \end{array} \]
Alternative 5
Accuracy82.8%
Cost836
\[\begin{array}{l} \mathbf{if}\;t \leq 5.2 \cdot 10^{-42}:\\ \;\;\;\;1 - \frac{\frac{x}{y - z}}{y}\\ \mathbf{else}:\\ \;\;\;\;1 + \frac{x}{t} \cdot \frac{-1}{z - y}\\ \end{array} \]
Alternative 6
Accuracy84.5%
Cost712
\[\begin{array}{l} \mathbf{if}\;y \leq -3.9 \cdot 10^{-78}:\\ \;\;\;\;1\\ \mathbf{elif}\;y \leq 9.8 \cdot 10^{-108}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 7
Accuracy82.9%
Cost712
\[\begin{array}{l} \mathbf{if}\;y \leq -6.6 \cdot 10^{-63}:\\ \;\;\;\;1 - \frac{x}{y \cdot y}\\ \mathbf{elif}\;y \leq 1.4 \cdot 10^{-107}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 8
Accuracy85.5%
Cost712
\[\begin{array}{l} \mathbf{if}\;y \leq -1 \cdot 10^{-77}:\\ \;\;\;\;1 - \frac{x}{y \cdot \left(y - z\right)}\\ \mathbf{elif}\;y \leq 5 \cdot 10^{-107}:\\ \;\;\;\;1 - \frac{x}{z \cdot t}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 9
Accuracy82.4%
Cost708
\[\begin{array}{l} \mathbf{if}\;t \leq 7.5 \cdot 10^{-42}:\\ \;\;\;\;1 - \frac{x}{y \cdot \left(y - z\right)}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{\frac{x}{t}}{z - y}\\ \end{array} \]
Alternative 10
Accuracy82.8%
Cost708
\[\begin{array}{l} \mathbf{if}\;t \leq 4.4 \cdot 10^{-43}:\\ \;\;\;\;1 - \frac{\frac{x}{y - z}}{y}\\ \mathbf{else}:\\ \;\;\;\;1 - \frac{\frac{x}{t}}{z - y}\\ \end{array} \]
Alternative 11
Accuracy79.2%
Cost64
\[1 \]

Error

Reproduce?

herbie shell --seed 2023140 
(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)))))