Numeric.Histogram:binBounds from Chart-1.5.3

Percentage Accurate: 92.9% → 98.0%
Time: 21.9s
Alternatives: 10
Speedup: 1.0×

Specification

?
\[\begin{array}{l} \\ x + \frac{\left(y - x\right) \cdot z}{t} \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
	return x + (((y - x) * z) / 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 = x + (((y - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
	return x + (((y - x) * z) / t);
}
def code(x, y, z, t):
	return x + (((y - x) * z) / t)
function code(x, y, z, t)
	return Float64(x + Float64(Float64(Float64(y - x) * z) / t))
end
function tmp = code(x, y, z, t)
	tmp = x + (((y - x) * z) / t);
end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}

Sampling outcomes in binary64 precision:

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Accuracy vs Speed?

Herbie found 10 alternatives:

AlternativeAccuracySpeedup
The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Initial Program: 92.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \frac{\left(y - x\right) \cdot z}{t} \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (/ (* (- y x) z) t)))
double code(double x, double y, double z, double t) {
	return x + (((y - x) * z) / 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 = x + (((y - x) * z) / t)
end function
public static double code(double x, double y, double z, double t) {
	return x + (((y - x) * z) / t);
}
def code(x, y, z, t):
	return x + (((y - x) * z) / t)
function code(x, y, z, t)
	return Float64(x + Float64(Float64(Float64(y - x) * z) / t))
end
function tmp = code(x, y, z, t)
	tmp = x + (((y - x) * z) / t);
end
code[x_, y_, z_, t_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{\left(y - x\right) \cdot z}{t}
\end{array}

Alternative 1: 98.0% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq 6.1 \cdot 10^{-83}:\\ \;\;\;\;x + \left(y - x\right) \cdot \frac{z}{t}\\ \mathbf{else}:\\ \;\;\;\;x + \frac{z}{\frac{t}{y - x}}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= z 6.1e-83) (+ x (* (- y x) (/ z t))) (+ x (/ z (/ t (- y x))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 6.1e-83) {
		tmp = x + ((y - x) * (z / t));
	} else {
		tmp = x + (z / (t / (y - x)));
	}
	return tmp;
}
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
    real(8) :: tmp
    if (z <= 6.1d-83) then
        tmp = x + ((y - x) * (z / t))
    else
        tmp = x + (z / (t / (y - x)))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (z <= 6.1e-83) {
		tmp = x + ((y - x) * (z / t));
	} else {
		tmp = x + (z / (t / (y - x)));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if z <= 6.1e-83:
		tmp = x + ((y - x) * (z / t))
	else:
		tmp = x + (z / (t / (y - x)))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (z <= 6.1e-83)
		tmp = Float64(x + Float64(Float64(y - x) * Float64(z / t)));
	else
		tmp = Float64(x + Float64(z / Float64(t / Float64(y - x))));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (z <= 6.1e-83)
		tmp = x + ((y - x) * (z / t));
	else
		tmp = x + (z / (t / (y - x)));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[z, 6.1e-83], N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / N[(t / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq 6.1 \cdot 10^{-83}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z}{t}\\

\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{t}{y - x}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < 6.10000000000000003e-83

    1. Initial program 97.1%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*98.8%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified98.8%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing

    if 6.10000000000000003e-83 < z

    1. Initial program 93.9%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*94.0%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified94.0%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 86.4%

      \[\leadsto x + \color{blue}{\left(-1 \cdot \frac{x \cdot z}{t} + \frac{y \cdot z}{t}\right)} \]
    6. Step-by-step derivation
      1. +-commutative86.4%

        \[\leadsto x + \color{blue}{\left(\frac{y \cdot z}{t} + -1 \cdot \frac{x \cdot z}{t}\right)} \]
      2. associate-*r/84.0%

        \[\leadsto x + \left(\color{blue}{y \cdot \frac{z}{t}} + -1 \cdot \frac{x \cdot z}{t}\right) \]
      3. associate-/l*83.7%

        \[\leadsto x + \left(y \cdot \frac{z}{t} + -1 \cdot \color{blue}{\left(x \cdot \frac{z}{t}\right)}\right) \]
      4. associate-*r*83.7%

        \[\leadsto x + \left(y \cdot \frac{z}{t} + \color{blue}{\left(-1 \cdot x\right) \cdot \frac{z}{t}}\right) \]
      5. neg-mul-183.7%

        \[\leadsto x + \left(y \cdot \frac{z}{t} + \color{blue}{\left(-x\right)} \cdot \frac{z}{t}\right) \]
      6. distribute-rgt-out94.0%

        \[\leadsto x + \color{blue}{\frac{z}{t} \cdot \left(y + \left(-x\right)\right)} \]
      7. sub-neg94.0%

        \[\leadsto x + \frac{z}{t} \cdot \color{blue}{\left(y - x\right)} \]
      8. associate-*l/93.9%

        \[\leadsto x + \color{blue}{\frac{z \cdot \left(y - x\right)}{t}} \]
      9. associate-*r/98.8%

        \[\leadsto x + \color{blue}{z \cdot \frac{y - x}{t}} \]
    7. Simplified98.8%

      \[\leadsto x + \color{blue}{z \cdot \frac{y - x}{t}} \]
    8. Step-by-step derivation
      1. clear-num98.7%

        \[\leadsto x + z \cdot \color{blue}{\frac{1}{\frac{t}{y - x}}} \]
      2. un-div-inv99.3%

        \[\leadsto x + \color{blue}{\frac{z}{\frac{t}{y - x}}} \]
    9. Applied egg-rr99.3%

      \[\leadsto x + \color{blue}{\frac{z}{\frac{t}{y - x}}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 2: 95.2% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.5 \cdot 10^{-163} \lor \neg \left(z \leq 1.1 \cdot 10^{-191}\right):\\ \;\;\;\;x + z \cdot \frac{y - x}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{z}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= z -3.5e-163) (not (<= z 1.1e-191)))
   (+ x (* z (/ (- y x) t)))
   (+ x (* y (/ z t)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((z <= -3.5e-163) || !(z <= 1.1e-191)) {
		tmp = x + (z * ((y - x) / t));
	} else {
		tmp = x + (y * (z / t));
	}
	return tmp;
}
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
    real(8) :: tmp
    if ((z <= (-3.5d-163)) .or. (.not. (z <= 1.1d-191))) then
        tmp = x + (z * ((y - x) / t))
    else
        tmp = x + (y * (z / t))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((z <= -3.5e-163) || !(z <= 1.1e-191)) {
		tmp = x + (z * ((y - x) / t));
	} else {
		tmp = x + (y * (z / t));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (z <= -3.5e-163) or not (z <= 1.1e-191):
		tmp = x + (z * ((y - x) / t))
	else:
		tmp = x + (y * (z / t))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((z <= -3.5e-163) || !(z <= 1.1e-191))
		tmp = Float64(x + Float64(z * Float64(Float64(y - x) / t)));
	else
		tmp = Float64(x + Float64(y * Float64(z / t)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((z <= -3.5e-163) || ~((z <= 1.1e-191)))
		tmp = x + (z * ((y - x) / t));
	else
		tmp = x + (y * (z / t));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -3.5e-163], N[Not[LessEqual[z, 1.1e-191]], $MachinePrecision]], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{-163} \lor \neg \left(z \leq 1.1 \cdot 10^{-191}\right):\\
\;\;\;\;x + z \cdot \frac{y - x}{t}\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if z < -3.50000000000000027e-163 or 1.09999999999999999e-191 < z

    1. Initial program 95.0%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*96.6%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified96.6%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in y around 0 87.5%

      \[\leadsto x + \color{blue}{\left(-1 \cdot \frac{x \cdot z}{t} + \frac{y \cdot z}{t}\right)} \]
    6. Step-by-step derivation
      1. +-commutative87.5%

        \[\leadsto x + \color{blue}{\left(\frac{y \cdot z}{t} + -1 \cdot \frac{x \cdot z}{t}\right)} \]
      2. associate-*r/84.9%

        \[\leadsto x + \left(\color{blue}{y \cdot \frac{z}{t}} + -1 \cdot \frac{x \cdot z}{t}\right) \]
      3. associate-/l*84.8%

        \[\leadsto x + \left(y \cdot \frac{z}{t} + -1 \cdot \color{blue}{\left(x \cdot \frac{z}{t}\right)}\right) \]
      4. associate-*r*84.8%

        \[\leadsto x + \left(y \cdot \frac{z}{t} + \color{blue}{\left(-1 \cdot x\right) \cdot \frac{z}{t}}\right) \]
      5. neg-mul-184.8%

        \[\leadsto x + \left(y \cdot \frac{z}{t} + \color{blue}{\left(-x\right)} \cdot \frac{z}{t}\right) \]
      6. distribute-rgt-out96.6%

        \[\leadsto x + \color{blue}{\frac{z}{t} \cdot \left(y + \left(-x\right)\right)} \]
      7. sub-neg96.6%

        \[\leadsto x + \frac{z}{t} \cdot \color{blue}{\left(y - x\right)} \]
      8. associate-*l/95.0%

        \[\leadsto x + \color{blue}{\frac{z \cdot \left(y - x\right)}{t}} \]
      9. associate-*r/97.4%

        \[\leadsto x + \color{blue}{z \cdot \frac{y - x}{t}} \]
    7. Simplified97.4%

      \[\leadsto x + \color{blue}{z \cdot \frac{y - x}{t}} \]

    if -3.50000000000000027e-163 < z < 1.09999999999999999e-191

    1. Initial program 99.8%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*99.9%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 94.3%

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{t}} \]
    6. Step-by-step derivation
      1. associate-*r/94.3%

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
    7. Simplified94.3%

      \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification96.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.5 \cdot 10^{-163} \lor \neg \left(z \leq 1.1 \cdot 10^{-191}\right):\\ \;\;\;\;x + z \cdot \frac{y - x}{t}\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{z}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 3: 86.1% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1.18 \cdot 10^{+29} \lor \neg \left(x \leq 10^{+20}\right):\\ \;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{t}{z}}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= x -1.18e+29) (not (<= x 1e+20)))
   (* x (- 1.0 (/ z t)))
   (+ x (/ y (/ t z)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((x <= -1.18e+29) || !(x <= 1e+20)) {
		tmp = x * (1.0 - (z / t));
	} else {
		tmp = x + (y / (t / z));
	}
	return tmp;
}
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
    real(8) :: tmp
    if ((x <= (-1.18d+29)) .or. (.not. (x <= 1d+20))) then
        tmp = x * (1.0d0 - (z / t))
    else
        tmp = x + (y / (t / z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((x <= -1.18e+29) || !(x <= 1e+20)) {
		tmp = x * (1.0 - (z / t));
	} else {
		tmp = x + (y / (t / z));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (x <= -1.18e+29) or not (x <= 1e+20):
		tmp = x * (1.0 - (z / t))
	else:
		tmp = x + (y / (t / z))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((x <= -1.18e+29) || !(x <= 1e+20))
		tmp = Float64(x * Float64(1.0 - Float64(z / t)));
	else
		tmp = Float64(x + Float64(y / Float64(t / z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((x <= -1.18e+29) || ~((x <= 1e+20)))
		tmp = x * (1.0 - (z / t));
	else
		tmp = x + (y / (t / z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.18e+29], N[Not[LessEqual[x, 1e+20]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.18 \cdot 10^{+29} \lor \neg \left(x \leq 10^{+20}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1.18e29 or 1e20 < x

    1. Initial program 96.5%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*99.8%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 90.3%

      \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{z}{t}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg90.3%

        \[\leadsto x \cdot \left(1 + \color{blue}{\left(-\frac{z}{t}\right)}\right) \]
      2. unsub-neg90.3%

        \[\leadsto x \cdot \color{blue}{\left(1 - \frac{z}{t}\right)} \]
    7. Simplified90.3%

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

    if -1.18e29 < x < 1e20

    1. Initial program 95.8%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*95.3%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified95.3%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 85.7%

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{t}} \]
    6. Step-by-step derivation
      1. associate-*r/87.3%

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
    7. Simplified87.3%

      \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
    8. Step-by-step derivation
      1. clear-num87.2%

        \[\leadsto x + y \cdot \color{blue}{\frac{1}{\frac{t}{z}}} \]
      2. div-inv87.4%

        \[\leadsto x + \color{blue}{\frac{y}{\frac{t}{z}}} \]
    9. Applied egg-rr87.4%

      \[\leadsto x + \color{blue}{\frac{y}{\frac{t}{z}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification88.7%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1.18 \cdot 10^{+29} \lor \neg \left(x \leq 10^{+20}\right):\\ \;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y}{\frac{t}{z}}\\ \end{array} \]
  5. Add Preprocessing

Alternative 4: 86.2% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -5.3 \cdot 10^{+29} \lor \neg \left(x \leq 1.95 \cdot 10^{+23}\right):\\ \;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{z}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (or (<= x -5.3e+29) (not (<= x 1.95e+23)))
   (* x (- 1.0 (/ z t)))
   (+ x (* y (/ z t)))))
double code(double x, double y, double z, double t) {
	double tmp;
	if ((x <= -5.3e+29) || !(x <= 1.95e+23)) {
		tmp = x * (1.0 - (z / t));
	} else {
		tmp = x + (y * (z / t));
	}
	return tmp;
}
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
    real(8) :: tmp
    if ((x <= (-5.3d+29)) .or. (.not. (x <= 1.95d+23))) then
        tmp = x * (1.0d0 - (z / t))
    else
        tmp = x + (y * (z / t))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if ((x <= -5.3e+29) || !(x <= 1.95e+23)) {
		tmp = x * (1.0 - (z / t));
	} else {
		tmp = x + (y * (z / t));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if (x <= -5.3e+29) or not (x <= 1.95e+23):
		tmp = x * (1.0 - (z / t))
	else:
		tmp = x + (y * (z / t))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if ((x <= -5.3e+29) || !(x <= 1.95e+23))
		tmp = Float64(x * Float64(1.0 - Float64(z / t)));
	else
		tmp = Float64(x + Float64(y * Float64(z / t)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if ((x <= -5.3e+29) || ~((x <= 1.95e+23)))
		tmp = x * (1.0 - (z / t));
	else
		tmp = x + (y * (z / t));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -5.3e+29], N[Not[LessEqual[x, 1.95e+23]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.3 \cdot 10^{+29} \lor \neg \left(x \leq 1.95 \cdot 10^{+23}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\

\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -5.3e29 or 1.95e23 < x

    1. Initial program 96.5%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*99.8%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified99.8%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 90.3%

      \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{z}{t}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg90.3%

        \[\leadsto x \cdot \left(1 + \color{blue}{\left(-\frac{z}{t}\right)}\right) \]
      2. unsub-neg90.3%

        \[\leadsto x \cdot \color{blue}{\left(1 - \frac{z}{t}\right)} \]
    7. Simplified90.3%

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

    if -5.3e29 < x < 1.95e23

    1. Initial program 95.8%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*95.3%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified95.3%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in y around inf 85.7%

      \[\leadsto x + \color{blue}{\frac{y \cdot z}{t}} \]
    6. Step-by-step derivation
      1. associate-*r/87.3%

        \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
    7. Simplified87.3%

      \[\leadsto x + \color{blue}{y \cdot \frac{z}{t}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification88.6%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -5.3 \cdot 10^{+29} \lor \neg \left(x \leq 1.95 \cdot 10^{+23}\right):\\ \;\;\;\;x \cdot \left(1 - \frac{z}{t}\right)\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{z}{t}\\ \end{array} \]
  5. Add Preprocessing

Alternative 5: 51.4% accurate, 0.6× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -3 \cdot 10^{-7}:\\ \;\;\;\;x\\ \mathbf{elif}\;t \leq 2.8 \cdot 10^{-125}:\\ \;\;\;\;x \cdot \frac{-z}{t}\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (<= t -3e-7) x (if (<= t 2.8e-125) (* x (/ (- z) t)) x)))
double code(double x, double y, double z, double t) {
	double tmp;
	if (t <= -3e-7) {
		tmp = x;
	} else if (t <= 2.8e-125) {
		tmp = x * (-z / t);
	} else {
		tmp = x;
	}
	return tmp;
}
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
    real(8) :: tmp
    if (t <= (-3d-7)) then
        tmp = x
    else if (t <= 2.8d-125) then
        tmp = x * (-z / t)
    else
        tmp = x
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (t <= -3e-7) {
		tmp = x;
	} else if (t <= 2.8e-125) {
		tmp = x * (-z / t);
	} else {
		tmp = x;
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if t <= -3e-7:
		tmp = x
	elif t <= 2.8e-125:
		tmp = x * (-z / t)
	else:
		tmp = x
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (t <= -3e-7)
		tmp = x;
	elseif (t <= 2.8e-125)
		tmp = Float64(x * Float64(Float64(-z) / t));
	else
		tmp = x;
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (t <= -3e-7)
		tmp = x;
	elseif (t <= 2.8e-125)
		tmp = x * (-z / t);
	else
		tmp = x;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[t, -3e-7], x, If[LessEqual[t, 2.8e-125], N[(x * N[((-z) / t), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{-7}:\\
\;\;\;\;x\\

\mathbf{elif}\;t \leq 2.8 \cdot 10^{-125}:\\
\;\;\;\;x \cdot \frac{-z}{t}\\

\mathbf{else}:\\
\;\;\;\;x\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if t < -2.9999999999999999e-7 or 2.8e-125 < t

    1. Initial program 92.2%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*99.1%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified99.1%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in z around 0 56.5%

      \[\leadsto \color{blue}{x} \]

    if -2.9999999999999999e-7 < t < 2.8e-125

    1. Initial program 99.8%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*95.7%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified95.7%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 60.3%

      \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{z}{t}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg60.3%

        \[\leadsto x \cdot \left(1 + \color{blue}{\left(-\frac{z}{t}\right)}\right) \]
      2. unsub-neg60.3%

        \[\leadsto x \cdot \color{blue}{\left(1 - \frac{z}{t}\right)} \]
    7. Simplified60.3%

      \[\leadsto \color{blue}{x \cdot \left(1 - \frac{z}{t}\right)} \]
    8. Taylor expanded in z around inf 51.1%

      \[\leadsto x \cdot \color{blue}{\left(-1 \cdot \frac{z}{t}\right)} \]
    9. Step-by-step derivation
      1. associate-*r/51.1%

        \[\leadsto x \cdot \color{blue}{\frac{-1 \cdot z}{t}} \]
      2. mul-1-neg51.1%

        \[\leadsto x \cdot \frac{\color{blue}{-z}}{t} \]
    10. Simplified51.1%

      \[\leadsto x \cdot \color{blue}{\frac{-z}{t}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 6: 37.4% accurate, 0.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;y \leq 6.4 \cdot 10^{+195}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;x \cdot \frac{z}{t}\\ \end{array} \end{array} \]
(FPCore (x y z t) :precision binary64 (if (<= y 6.4e+195) x (* x (/ z t))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= 6.4e+195) {
		tmp = x;
	} else {
		tmp = x * (z / t);
	}
	return tmp;
}
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
    real(8) :: tmp
    if (y <= 6.4d+195) then
        tmp = x
    else
        tmp = x * (z / t)
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (y <= 6.4e+195) {
		tmp = x;
	} else {
		tmp = x * (z / t);
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if y <= 6.4e+195:
		tmp = x
	else:
		tmp = x * (z / t)
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (y <= 6.4e+195)
		tmp = x;
	else
		tmp = Float64(x * Float64(z / t));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (y <= 6.4e+195)
		tmp = x;
	else
		tmp = x * (z / t);
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[LessEqual[y, 6.4e+195], x, N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.4 \cdot 10^{+195}:\\
\;\;\;\;x\\

\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z}{t}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if y < 6.39999999999999965e195

    1. Initial program 96.9%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*97.0%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified97.0%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in z around 0 35.6%

      \[\leadsto \color{blue}{x} \]

    if 6.39999999999999965e195 < y

    1. Initial program 89.0%

      \[x + \frac{\left(y - x\right) \cdot z}{t} \]
    2. Step-by-step derivation
      1. associate-/l*99.9%

        \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
    3. Simplified99.9%

      \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
    4. Add Preprocessing
    5. Taylor expanded in x around inf 20.5%

      \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{z}{t}\right)} \]
    6. Step-by-step derivation
      1. mul-1-neg20.5%

        \[\leadsto x \cdot \left(1 + \color{blue}{\left(-\frac{z}{t}\right)}\right) \]
      2. unsub-neg20.5%

        \[\leadsto x \cdot \color{blue}{\left(1 - \frac{z}{t}\right)} \]
    7. Simplified20.5%

      \[\leadsto \color{blue}{x \cdot \left(1 - \frac{z}{t}\right)} \]
    8. Taylor expanded in z around inf 13.3%

      \[\leadsto x \cdot \color{blue}{\left(-1 \cdot \frac{z}{t}\right)} \]
    9. Step-by-step derivation
      1. associate-*r/13.3%

        \[\leadsto x \cdot \color{blue}{\frac{-1 \cdot z}{t}} \]
      2. mul-1-neg13.3%

        \[\leadsto x \cdot \frac{\color{blue}{-z}}{t} \]
    10. Simplified13.3%

      \[\leadsto x \cdot \color{blue}{\frac{-z}{t}} \]
    11. Step-by-step derivation
      1. add-sqr-sqrt1.3%

        \[\leadsto x \cdot \frac{\color{blue}{\sqrt{-z} \cdot \sqrt{-z}}}{t} \]
      2. sqrt-unprod9.3%

        \[\leadsto x \cdot \frac{\color{blue}{\sqrt{\left(-z\right) \cdot \left(-z\right)}}}{t} \]
      3. sqr-neg9.3%

        \[\leadsto x \cdot \frac{\sqrt{\color{blue}{z \cdot z}}}{t} \]
      4. sqrt-unprod8.0%

        \[\leadsto x \cdot \frac{\color{blue}{\sqrt{z} \cdot \sqrt{z}}}{t} \]
      5. add-sqr-sqrt28.2%

        \[\leadsto x \cdot \frac{\color{blue}{z}}{t} \]
      6. *-un-lft-identity28.2%

        \[\leadsto x \cdot \color{blue}{\left(1 \cdot \frac{z}{t}\right)} \]
    12. Applied egg-rr28.2%

      \[\leadsto x \cdot \color{blue}{\left(1 \cdot \frac{z}{t}\right)} \]
    13. Step-by-step derivation
      1. *-lft-identity28.2%

        \[\leadsto x \cdot \color{blue}{\frac{z}{t}} \]
    14. Simplified28.2%

      \[\leadsto x \cdot \color{blue}{\frac{z}{t}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 7: 97.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \frac{y - x}{\frac{t}{z}} \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (/ (- y x) (/ t z))))
double code(double x, double y, double z, double t) {
	return x + ((y - x) / (t / z));
}
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 = x + ((y - x) / (t / z))
end function
public static double code(double x, double y, double z, double t) {
	return x + ((y - x) / (t / z));
}
def code(x, y, z, t):
	return x + ((y - x) / (t / z))
function code(x, y, z, t)
	return Float64(x + Float64(Float64(y - x) / Float64(t / z)))
end
function tmp = code(x, y, z, t)
	tmp = x + ((y - x) / (t / z));
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{y - x}{\frac{t}{z}}
\end{array}
Derivation
  1. Initial program 96.1%

    \[x + \frac{\left(y - x\right) \cdot z}{t} \]
  2. Step-by-step derivation
    1. associate-/l*97.3%

      \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
  3. Simplified97.3%

    \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
  4. Add Preprocessing
  5. Step-by-step derivation
    1. clear-num97.3%

      \[\leadsto x + \left(y - x\right) \cdot \color{blue}{\frac{1}{\frac{t}{z}}} \]
    2. un-div-inv97.4%

      \[\leadsto x + \color{blue}{\frac{y - x}{\frac{t}{z}}} \]
  6. Applied egg-rr97.4%

    \[\leadsto x + \color{blue}{\frac{y - x}{\frac{t}{z}}} \]
  7. Add Preprocessing

Alternative 8: 97.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \left(y - x\right) \cdot \frac{z}{t} \end{array} \]
(FPCore (x y z t) :precision binary64 (+ x (* (- y x) (/ z t))))
double code(double x, double y, double z, double t) {
	return x + ((y - x) * (z / 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 = x + ((y - x) * (z / t))
end function
public static double code(double x, double y, double z, double t) {
	return x + ((y - x) * (z / t));
}
def code(x, y, z, t):
	return x + ((y - x) * (z / t))
function code(x, y, z, t)
	return Float64(x + Float64(Float64(y - x) * Float64(z / t)))
end
function tmp = code(x, y, z, t)
	tmp = x + ((y - x) * (z / t));
end
code[x_, y_, z_, t_] := N[(x + N[(N[(y - x), $MachinePrecision] * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \left(y - x\right) \cdot \frac{z}{t}
\end{array}
Derivation
  1. Initial program 96.1%

    \[x + \frac{\left(y - x\right) \cdot z}{t} \]
  2. Step-by-step derivation
    1. associate-/l*97.3%

      \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
  3. Simplified97.3%

    \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
  4. Add Preprocessing
  5. Add Preprocessing

Alternative 9: 66.2% accurate, 1.3× speedup?

\[\begin{array}{l} \\ x \cdot \left(1 - \frac{z}{t}\right) \end{array} \]
(FPCore (x y z t) :precision binary64 (* x (- 1.0 (/ z t))))
double code(double x, double y, double z, double t) {
	return x * (1.0 - (z / 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 = x * (1.0d0 - (z / t))
end function
public static double code(double x, double y, double z, double t) {
	return x * (1.0 - (z / t));
}
def code(x, y, z, t):
	return x * (1.0 - (z / t))
function code(x, y, z, t)
	return Float64(x * Float64(1.0 - Float64(z / t)))
end
function tmp = code(x, y, z, t)
	tmp = x * (1.0 - (z / t));
end
code[x_, y_, z_, t_] := N[(x * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x \cdot \left(1 - \frac{z}{t}\right)
\end{array}
Derivation
  1. Initial program 96.1%

    \[x + \frac{\left(y - x\right) \cdot z}{t} \]
  2. Step-by-step derivation
    1. associate-/l*97.3%

      \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
  3. Simplified97.3%

    \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
  4. Add Preprocessing
  5. Taylor expanded in x around inf 65.9%

    \[\leadsto \color{blue}{x \cdot \left(1 + -1 \cdot \frac{z}{t}\right)} \]
  6. Step-by-step derivation
    1. mul-1-neg65.9%

      \[\leadsto x \cdot \left(1 + \color{blue}{\left(-\frac{z}{t}\right)}\right) \]
    2. unsub-neg65.9%

      \[\leadsto x \cdot \color{blue}{\left(1 - \frac{z}{t}\right)} \]
  7. Simplified65.9%

    \[\leadsto \color{blue}{x \cdot \left(1 - \frac{z}{t}\right)} \]
  8. Add Preprocessing

Alternative 10: 38.6% accurate, 9.0× speedup?

\[\begin{array}{l} \\ x \end{array} \]
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
	return x;
}
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 = x
end function
public static double code(double x, double y, double z, double t) {
	return x;
}
def code(x, y, z, t):
	return x
function code(x, y, z, t)
	return x
end
function tmp = code(x, y, z, t)
	tmp = x;
end
code[x_, y_, z_, t_] := x
\begin{array}{l}

\\
x
\end{array}
Derivation
  1. Initial program 96.1%

    \[x + \frac{\left(y - x\right) \cdot z}{t} \]
  2. Step-by-step derivation
    1. associate-/l*97.3%

      \[\leadsto x + \color{blue}{\left(y - x\right) \cdot \frac{z}{t}} \]
  3. Simplified97.3%

    \[\leadsto \color{blue}{x + \left(y - x\right) \cdot \frac{z}{t}} \]
  4. Add Preprocessing
  5. Taylor expanded in z around 0 33.0%

    \[\leadsto \color{blue}{x} \]
  6. Add Preprocessing

Developer Target 1: 97.8% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x < -9.025511195533005 \cdot 10^{-135}:\\ \;\;\;\;x - \frac{z}{t} \cdot \left(x - y\right)\\ \mathbf{elif}\;x < 4.275032163700715 \cdot 10^{-250}:\\ \;\;\;\;x + \frac{y - x}{t} \cdot z\\ \mathbf{else}:\\ \;\;\;\;x + \frac{y - x}{\frac{t}{z}}\\ \end{array} \end{array} \]
(FPCore (x y z t)
 :precision binary64
 (if (< x -9.025511195533005e-135)
   (- x (* (/ z t) (- x y)))
   (if (< x 4.275032163700715e-250)
     (+ x (* (/ (- y x) t) z))
     (+ x (/ (- y x) (/ t z))))))
double code(double x, double y, double z, double t) {
	double tmp;
	if (x < -9.025511195533005e-135) {
		tmp = x - ((z / t) * (x - y));
	} else if (x < 4.275032163700715e-250) {
		tmp = x + (((y - x) / t) * z);
	} else {
		tmp = x + ((y - x) / (t / z));
	}
	return tmp;
}
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
    real(8) :: tmp
    if (x < (-9.025511195533005d-135)) then
        tmp = x - ((z / t) * (x - y))
    else if (x < 4.275032163700715d-250) then
        tmp = x + (((y - x) / t) * z)
    else
        tmp = x + ((y - x) / (t / z))
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t) {
	double tmp;
	if (x < -9.025511195533005e-135) {
		tmp = x - ((z / t) * (x - y));
	} else if (x < 4.275032163700715e-250) {
		tmp = x + (((y - x) / t) * z);
	} else {
		tmp = x + ((y - x) / (t / z));
	}
	return tmp;
}
def code(x, y, z, t):
	tmp = 0
	if x < -9.025511195533005e-135:
		tmp = x - ((z / t) * (x - y))
	elif x < 4.275032163700715e-250:
		tmp = x + (((y - x) / t) * z)
	else:
		tmp = x + ((y - x) / (t / z))
	return tmp
function code(x, y, z, t)
	tmp = 0.0
	if (x < -9.025511195533005e-135)
		tmp = Float64(x - Float64(Float64(z / t) * Float64(x - y)));
	elseif (x < 4.275032163700715e-250)
		tmp = Float64(x + Float64(Float64(Float64(y - x) / t) * z));
	else
		tmp = Float64(x + Float64(Float64(y - x) / Float64(t / z)));
	end
	return tmp
end
function tmp_2 = code(x, y, z, t)
	tmp = 0.0;
	if (x < -9.025511195533005e-135)
		tmp = x - ((z / t) * (x - y));
	elseif (x < 4.275032163700715e-250)
		tmp = x + (((y - x) / t) * z);
	else
		tmp = x + ((y - x) / (t / z));
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_] := If[Less[x, -9.025511195533005e-135], N[(x - N[(N[(z / t), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[x, 4.275032163700715e-250], N[(x + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x < -9.025511195533005 \cdot 10^{-135}:\\
\;\;\;\;x - \frac{z}{t} \cdot \left(x - y\right)\\

\mathbf{elif}\;x < 4.275032163700715 \cdot 10^{-250}:\\
\;\;\;\;x + \frac{y - x}{t} \cdot z\\

\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{t}{z}}\\


\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024143 
(FPCore (x y z t)
  :name "Numeric.Histogram:binBounds from Chart-1.5.3"
  :precision binary64

  :alt
  (! :herbie-platform default (if (< x -1805102239106601/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- x (* (/ z t) (- x y))) (if (< x 855006432740143/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) t) z)) (+ x (/ (- y x) (/ t z))))))

  (+ x (/ (* (- y x) z) t)))