Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A

Percentage Accurate: 85.8% → 99.1%
Time: 5.5s
Alternatives: 11
Speedup: 0.3×

Specification

?
\[\begin{array}{l} \\ x + \frac{\left(y - z\right) \cdot t}{a - z} \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) t) (- a z))))
double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * t) / (a - z));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    code = x + (((y - z) * t) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * t) / (a - z));
}
def code(x, y, z, t, a):
	return x + (((y - z) * t) / (a - z))
function code(x, y, z, t, a)
	return Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z)))
end
function tmp = code(x, y, z, t, a)
	tmp = x + (((y - z) * t) / (a - z));
end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
x + \frac{\left(y - z\right) \cdot t}{a - z}
\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 11 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: 85.8% accurate, 1.0× speedup?

\[\begin{array}{l} \\ x + \frac{\left(y - z\right) \cdot t}{a - z} \end{array} \]
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) t) (- a z))))
double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * t) / (a - z));
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    code = x + (((y - z) * t) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
	return x + (((y - z) * t) / (a - z));
}
def code(x, y, z, t, a):
	return x + (((y - z) * t) / (a - z))
function code(x, y, z, t, a)
	return Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z)))
end
function tmp = code(x, y, z, t, a)
	tmp = x + (((y - z) * t) / (a - z));
end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 99.1% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{if}\;t\_1 \leq -2 \cdot 10^{+97} \lor \neg \left(t\_1 \leq 10^{+297}\right):\\ \;\;\;\;\left(\frac{y - z}{a - z} + \frac{x}{t}\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;x + t\_1\\ \end{array} \end{array} \]
(FPCore (x y z t a)
 :precision binary64
 (let* ((t_1 (/ (* (- y z) t) (- a z))))
   (if (or (<= t_1 -2e+97) (not (<= t_1 1e+297)))
     (* (+ (/ (- y z) (- a z)) (/ x t)) t)
     (+ x t_1))))
double code(double x, double y, double z, double t, double a) {
	double t_1 = ((y - z) * t) / (a - z);
	double tmp;
	if ((t_1 <= -2e+97) || !(t_1 <= 1e+297)) {
		tmp = (((y - z) / (a - z)) + (x / t)) * t;
	} else {
		tmp = x + t_1;
	}
	return tmp;
}
module fmin_fmax_functions
    implicit none
    private
    public fmax
    public fmin

    interface fmax
        module procedure fmax88
        module procedure fmax44
        module procedure fmax84
        module procedure fmax48
    end interface
    interface fmin
        module procedure fmin88
        module procedure fmin44
        module procedure fmin84
        module procedure fmin48
    end interface
contains
    real(8) function fmax88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(4) function fmax44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, max(x, y), y /= y), x /= x)
    end function
    real(8) function fmax84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmax48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
    end function
    real(8) function fmin88(x, y) result (res)
        real(8), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(4) function fmin44(x, y) result (res)
        real(4), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(y, merge(x, min(x, y), y /= y), x /= x)
    end function
    real(8) function fmin84(x, y) result(res)
        real(8), intent (in) :: x
        real(4), intent (in) :: y
        res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
    end function
    real(8) function fmin48(x, y) result(res)
        real(4), intent (in) :: x
        real(8), intent (in) :: y
        res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
    end function
end module

real(8) function code(x, y, z, t, a)
use fmin_fmax_functions
    real(8), intent (in) :: x
    real(8), intent (in) :: y
    real(8), intent (in) :: z
    real(8), intent (in) :: t
    real(8), intent (in) :: a
    real(8) :: t_1
    real(8) :: tmp
    t_1 = ((y - z) * t) / (a - z)
    if ((t_1 <= (-2d+97)) .or. (.not. (t_1 <= 1d+297))) then
        tmp = (((y - z) / (a - z)) + (x / t)) * t
    else
        tmp = x + t_1
    end if
    code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
	double t_1 = ((y - z) * t) / (a - z);
	double tmp;
	if ((t_1 <= -2e+97) || !(t_1 <= 1e+297)) {
		tmp = (((y - z) / (a - z)) + (x / t)) * t;
	} else {
		tmp = x + t_1;
	}
	return tmp;
}
def code(x, y, z, t, a):
	t_1 = ((y - z) * t) / (a - z)
	tmp = 0
	if (t_1 <= -2e+97) or not (t_1 <= 1e+297):
		tmp = (((y - z) / (a - z)) + (x / t)) * t
	else:
		tmp = x + t_1
	return tmp
function code(x, y, z, t, a)
	t_1 = Float64(Float64(Float64(y - z) * t) / Float64(a - z))
	tmp = 0.0
	if ((t_1 <= -2e+97) || !(t_1 <= 1e+297))
		tmp = Float64(Float64(Float64(Float64(y - z) / Float64(a - z)) + Float64(x / t)) * t);
	else
		tmp = Float64(x + t_1);
	end
	return tmp
end
function tmp_2 = code(x, y, z, t, a)
	t_1 = ((y - z) * t) / (a - z);
	tmp = 0.0;
	if ((t_1 <= -2e+97) || ~((t_1 <= 1e+297)))
		tmp = (((y - z) / (a - z)) + (x / t)) * t;
	else
		tmp = x + t_1;
	end
	tmp_2 = tmp;
end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e+97], N[Not[LessEqual[t$95$1, 1e+297]], $MachinePrecision]], N[(N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + N[(x / t), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_1 := \frac{\left(y - z\right) \cdot t}{a - z}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+97} \lor \neg \left(t\_1 \leq 10^{+297}\right):\\
\;\;\;\;\left(\frac{y - z}{a - z} + \frac{x}{t}\right) \cdot t\\

\mathbf{else}:\\
\;\;\;\;x + t\_1\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < -2.0000000000000001e97 or 1e297 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))

    1. Initial program 42.0%

      \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
    2. Add Preprocessing
    3. Taylor expanded in t around inf

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

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

      if -2.0000000000000001e97 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 1e297

      1. Initial program 99.3%

        \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
      2. Add Preprocessing
    5. Recombined 2 regimes into one program.
    6. Final simplification99.4%

      \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - z\right) \cdot t}{a - z} \leq -2 \cdot 10^{+97} \lor \neg \left(\frac{\left(y - z\right) \cdot t}{a - z} \leq 10^{+297}\right):\\ \;\;\;\;\left(\frac{y - z}{a - z} + \frac{x}{t}\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \end{array} \]
    7. Add Preprocessing

    Alternative 2: 96.4% accurate, 0.3× speedup?

    \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 10^{+222}\right):\\ \;\;\;\;\frac{t}{a - z} \cdot \left(y - z\right)\\ \mathbf{else}:\\ \;\;\;\;x + t\_1\\ \end{array} \end{array} \]
    (FPCore (x y z t a)
     :precision binary64
     (let* ((t_1 (/ (* (- y z) t) (- a z))))
       (if (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+222)))
         (* (/ t (- a z)) (- y z))
         (+ x t_1))))
    double code(double x, double y, double z, double t, double a) {
    	double t_1 = ((y - z) * t) / (a - z);
    	double tmp;
    	if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 1e+222)) {
    		tmp = (t / (a - z)) * (y - z);
    	} else {
    		tmp = x + t_1;
    	}
    	return tmp;
    }
    
    public static double code(double x, double y, double z, double t, double a) {
    	double t_1 = ((y - z) * t) / (a - z);
    	double tmp;
    	if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 1e+222)) {
    		tmp = (t / (a - z)) * (y - z);
    	} else {
    		tmp = x + t_1;
    	}
    	return tmp;
    }
    
    def code(x, y, z, t, a):
    	t_1 = ((y - z) * t) / (a - z)
    	tmp = 0
    	if (t_1 <= -math.inf) or not (t_1 <= 1e+222):
    		tmp = (t / (a - z)) * (y - z)
    	else:
    		tmp = x + t_1
    	return tmp
    
    function code(x, y, z, t, a)
    	t_1 = Float64(Float64(Float64(y - z) * t) / Float64(a - z))
    	tmp = 0.0
    	if ((t_1 <= Float64(-Inf)) || !(t_1 <= 1e+222))
    		tmp = Float64(Float64(t / Float64(a - z)) * Float64(y - z));
    	else
    		tmp = Float64(x + t_1);
    	end
    	return tmp
    end
    
    function tmp_2 = code(x, y, z, t, a)
    	t_1 = ((y - z) * t) / (a - z);
    	tmp = 0.0;
    	if ((t_1 <= -Inf) || ~((t_1 <= 1e+222)))
    		tmp = (t / (a - z)) * (y - z);
    	else
    		tmp = x + t_1;
    	end
    	tmp_2 = tmp;
    end
    
    code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+222]], $MachinePrecision]], N[(N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision], N[(x + t$95$1), $MachinePrecision]]]
    
    \begin{array}{l}
    
    \\
    \begin{array}{l}
    t_1 := \frac{\left(y - z\right) \cdot t}{a - z}\\
    \mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 10^{+222}\right):\\
    \;\;\;\;\frac{t}{a - z} \cdot \left(y - z\right)\\
    
    \mathbf{else}:\\
    \;\;\;\;x + t\_1\\
    
    
    \end{array}
    \end{array}
    
    Derivation
    1. Split input into 2 regimes
    2. if (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < -inf.0 or 1e222 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))

      1. Initial program 34.2%

        \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
      2. Add Preprocessing
      3. Taylor expanded in x around 0

        \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
      4. Step-by-step derivation
        1. Applied rewrites86.8%

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

        if -inf.0 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 1e222

        1. Initial program 99.3%

          \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
        2. Add Preprocessing
      5. Recombined 2 regimes into one program.
      6. Final simplification96.1%

        \[\leadsto \begin{array}{l} \mathbf{if}\;\frac{\left(y - z\right) \cdot t}{a - z} \leq -\infty \lor \neg \left(\frac{\left(y - z\right) \cdot t}{a - z} \leq 10^{+222}\right):\\ \;\;\;\;\frac{t}{a - z} \cdot \left(y - z\right)\\ \mathbf{else}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \end{array} \]
      7. Add Preprocessing

      Alternative 3: 63.3% accurate, 0.4× speedup?

      \[\begin{array}{l} \\ \begin{array}{l} t_1 := \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{if}\;t\_1 \leq -5 \cdot 10^{-125} \lor \neg \left(t\_1 \leq 10^{-223}\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;x\\ \end{array} \end{array} \]
      (FPCore (x y z t a)
       :precision binary64
       (let* ((t_1 (/ (* (- y z) t) (- a z))))
         (if (or (<= t_1 -5e-125) (not (<= t_1 1e-223))) (+ x t) x)))
      double code(double x, double y, double z, double t, double a) {
      	double t_1 = ((y - z) * t) / (a - z);
      	double tmp;
      	if ((t_1 <= -5e-125) || !(t_1 <= 1e-223)) {
      		tmp = x + t;
      	} else {
      		tmp = x;
      	}
      	return tmp;
      }
      
      module fmin_fmax_functions
          implicit none
          private
          public fmax
          public fmin
      
          interface fmax
              module procedure fmax88
              module procedure fmax44
              module procedure fmax84
              module procedure fmax48
          end interface
          interface fmin
              module procedure fmin88
              module procedure fmin44
              module procedure fmin84
              module procedure fmin48
          end interface
      contains
          real(8) function fmax88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(4) function fmax44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
          end function
          real(8) function fmax84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmax48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
          end function
          real(8) function fmin88(x, y) result (res)
              real(8), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(4) function fmin44(x, y) result (res)
              real(4), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
          end function
          real(8) function fmin84(x, y) result(res)
              real(8), intent (in) :: x
              real(4), intent (in) :: y
              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
          end function
          real(8) function fmin48(x, y) result(res)
              real(4), intent (in) :: x
              real(8), intent (in) :: y
              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
          end function
      end module
      
      real(8) function code(x, y, z, t, a)
      use fmin_fmax_functions
          real(8), intent (in) :: x
          real(8), intent (in) :: y
          real(8), intent (in) :: z
          real(8), intent (in) :: t
          real(8), intent (in) :: a
          real(8) :: t_1
          real(8) :: tmp
          t_1 = ((y - z) * t) / (a - z)
          if ((t_1 <= (-5d-125)) .or. (.not. (t_1 <= 1d-223))) then
              tmp = x + t
          else
              tmp = x
          end if
          code = tmp
      end function
      
      public static double code(double x, double y, double z, double t, double a) {
      	double t_1 = ((y - z) * t) / (a - z);
      	double tmp;
      	if ((t_1 <= -5e-125) || !(t_1 <= 1e-223)) {
      		tmp = x + t;
      	} else {
      		tmp = x;
      	}
      	return tmp;
      }
      
      def code(x, y, z, t, a):
      	t_1 = ((y - z) * t) / (a - z)
      	tmp = 0
      	if (t_1 <= -5e-125) or not (t_1 <= 1e-223):
      		tmp = x + t
      	else:
      		tmp = x
      	return tmp
      
      function code(x, y, z, t, a)
      	t_1 = Float64(Float64(Float64(y - z) * t) / Float64(a - z))
      	tmp = 0.0
      	if ((t_1 <= -5e-125) || !(t_1 <= 1e-223))
      		tmp = Float64(x + t);
      	else
      		tmp = x;
      	end
      	return tmp
      end
      
      function tmp_2 = code(x, y, z, t, a)
      	t_1 = ((y - z) * t) / (a - z);
      	tmp = 0.0;
      	if ((t_1 <= -5e-125) || ~((t_1 <= 1e-223)))
      		tmp = x + t;
      	else
      		tmp = x;
      	end
      	tmp_2 = tmp;
      end
      
      code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-125], N[Not[LessEqual[t$95$1, 1e-223]], $MachinePrecision]], N[(x + t), $MachinePrecision], x]]
      
      \begin{array}{l}
      
      \\
      \begin{array}{l}
      t_1 := \frac{\left(y - z\right) \cdot t}{a - z}\\
      \mathbf{if}\;t\_1 \leq -5 \cdot 10^{-125} \lor \neg \left(t\_1 \leq 10^{-223}\right):\\
      \;\;\;\;x + t\\
      
      \mathbf{else}:\\
      \;\;\;\;x\\
      
      
      \end{array}
      \end{array}
      
      Derivation
      1. Split input into 2 regimes
      2. if (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < -4.99999999999999967e-125 or 9.9999999999999997e-224 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z))

        1. Initial program 77.7%

          \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
        2. Add Preprocessing
        3. Taylor expanded in z around inf

          \[\leadsto x + \color{blue}{t} \]
        4. Step-by-step derivation
          1. Applied rewrites62.3%

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

          if -4.99999999999999967e-125 < (/.f64 (*.f64 (-.f64 y z) t) (-.f64 a z)) < 9.9999999999999997e-224

          1. Initial program 98.3%

            \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
          2. Add Preprocessing
          3. Taylor expanded in x around inf

            \[\leadsto \color{blue}{x} \]
          4. Step-by-step derivation
            1. Applied rewrites92.0%

              \[\leadsto \color{blue}{x} \]
          5. Recombined 2 regimes into one program.
          6. Final simplification68.9%

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

          Alternative 4: 83.2% accurate, 0.7× speedup?

          \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{-47} \lor \neg \left(z \leq 2600000\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \end{array} \]
          (FPCore (x y z t a)
           :precision binary64
           (if (or (<= z -4.5e-47) (not (<= z 2600000.0)))
             (fma (/ z (- a z)) (- t) x)
             (fma (- y z) (/ t a) x)))
          double code(double x, double y, double z, double t, double a) {
          	double tmp;
          	if ((z <= -4.5e-47) || !(z <= 2600000.0)) {
          		tmp = fma((z / (a - z)), -t, x);
          	} else {
          		tmp = fma((y - z), (t / a), x);
          	}
          	return tmp;
          }
          
          function code(x, y, z, t, a)
          	tmp = 0.0
          	if ((z <= -4.5e-47) || !(z <= 2600000.0))
          		tmp = fma(Float64(z / Float64(a - z)), Float64(-t), x);
          	else
          		tmp = fma(Float64(y - z), Float64(t / a), x);
          	end
          	return tmp
          end
          
          code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.5e-47], N[Not[LessEqual[z, 2600000.0]], $MachinePrecision]], N[(N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision] * (-t) + x), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision] + x), $MachinePrecision]]
          
          \begin{array}{l}
          
          \\
          \begin{array}{l}
          \mathbf{if}\;z \leq -4.5 \cdot 10^{-47} \lor \neg \left(z \leq 2600000\right):\\
          \;\;\;\;\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)\\
          
          \mathbf{else}:\\
          \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
          
          
          \end{array}
          \end{array}
          
          Derivation
          1. Split input into 2 regimes
          2. if z < -4.5e-47 or 2.6e6 < z

            1. Initial program 73.4%

              \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
            2. Add Preprocessing
            3. Taylor expanded in y around 0

              \[\leadsto \color{blue}{x + -1 \cdot \frac{t \cdot z}{a - z}} \]
            4. Step-by-step derivation
              1. Applied rewrites89.3%

                \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)} \]

              if -4.5e-47 < z < 2.6e6

              1. Initial program 95.3%

                \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
              2. Add Preprocessing
              3. Taylor expanded in a around inf

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

                  \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)} \]
              5. Recombined 2 regimes into one program.
              6. Final simplification87.7%

                \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4.5 \cdot 10^{-47} \lor \neg \left(z \leq 2600000\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z}{a - z}, -t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \]
              7. Add Preprocessing

              Alternative 5: 82.8% accurate, 0.8× speedup?

              \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -3.7 \cdot 10^{+68} \lor \neg \left(z \leq 4.4 \cdot 10^{+36}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z - y}{z}, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \end{array} \]
              (FPCore (x y z t a)
               :precision binary64
               (if (or (<= z -3.7e+68) (not (<= z 4.4e+36)))
                 (fma (/ (- z y) z) t x)
                 (fma (- y z) (/ t a) x)))
              double code(double x, double y, double z, double t, double a) {
              	double tmp;
              	if ((z <= -3.7e+68) || !(z <= 4.4e+36)) {
              		tmp = fma(((z - y) / z), t, x);
              	} else {
              		tmp = fma((y - z), (t / a), x);
              	}
              	return tmp;
              }
              
              function code(x, y, z, t, a)
              	tmp = 0.0
              	if ((z <= -3.7e+68) || !(z <= 4.4e+36))
              		tmp = fma(Float64(Float64(z - y) / z), t, x);
              	else
              		tmp = fma(Float64(y - z), Float64(t / a), x);
              	end
              	return tmp
              end
              
              code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3.7e+68], N[Not[LessEqual[z, 4.4e+36]], $MachinePrecision]], N[(N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision] * t + x), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision] + x), $MachinePrecision]]
              
              \begin{array}{l}
              
              \\
              \begin{array}{l}
              \mathbf{if}\;z \leq -3.7 \cdot 10^{+68} \lor \neg \left(z \leq 4.4 \cdot 10^{+36}\right):\\
              \;\;\;\;\mathsf{fma}\left(\frac{z - y}{z}, t, x\right)\\
              
              \mathbf{else}:\\
              \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
              
              
              \end{array}
              \end{array}
              
              Derivation
              1. Split input into 2 regimes
              2. if z < -3.69999999999999998e68 or 4.40000000000000001e36 < z

                1. Initial program 66.6%

                  \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                2. Add Preprocessing
                3. Taylor expanded in a around 0

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

                    \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{z - y}{z}, t, x\right)} \]

                  if -3.69999999999999998e68 < z < 4.40000000000000001e36

                  1. Initial program 95.1%

                    \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                  2. Add Preprocessing
                  3. Taylor expanded in a around inf

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

                      \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)} \]
                  5. Recombined 2 regimes into one program.
                  6. Final simplification84.7%

                    \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -3.7 \cdot 10^{+68} \lor \neg \left(z \leq 4.4 \cdot 10^{+36}\right):\\ \;\;\;\;\mathsf{fma}\left(\frac{z - y}{z}, t, x\right)\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \]
                  7. Add Preprocessing

                  Alternative 6: 79.1% accurate, 0.8× speedup?

                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+39} \lor \neg \left(z \leq 5 \cdot 10^{+36}\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \end{array} \]
                  (FPCore (x y z t a)
                   :precision binary64
                   (if (or (<= z -1.16e+39) (not (<= z 5e+36))) (+ x t) (fma (- y z) (/ t a) x)))
                  double code(double x, double y, double z, double t, double a) {
                  	double tmp;
                  	if ((z <= -1.16e+39) || !(z <= 5e+36)) {
                  		tmp = x + t;
                  	} else {
                  		tmp = fma((y - z), (t / a), x);
                  	}
                  	return tmp;
                  }
                  
                  function code(x, y, z, t, a)
                  	tmp = 0.0
                  	if ((z <= -1.16e+39) || !(z <= 5e+36))
                  		tmp = Float64(x + t);
                  	else
                  		tmp = fma(Float64(y - z), Float64(t / a), x);
                  	end
                  	return tmp
                  end
                  
                  code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.16e+39], N[Not[LessEqual[z, 5e+36]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(t / a), $MachinePrecision] + x), $MachinePrecision]]
                  
                  \begin{array}{l}
                  
                  \\
                  \begin{array}{l}
                  \mathbf{if}\;z \leq -1.16 \cdot 10^{+39} \lor \neg \left(z \leq 5 \cdot 10^{+36}\right):\\
                  \;\;\;\;x + t\\
                  
                  \mathbf{else}:\\
                  \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\
                  
                  
                  \end{array}
                  \end{array}
                  
                  Derivation
                  1. Split input into 2 regimes
                  2. if z < -1.16000000000000003e39 or 4.99999999999999977e36 < z

                    1. Initial program 67.7%

                      \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                    2. Add Preprocessing
                    3. Taylor expanded in z around inf

                      \[\leadsto x + \color{blue}{t} \]
                    4. Step-by-step derivation
                      1. Applied rewrites83.8%

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

                      if -1.16000000000000003e39 < z < 4.99999999999999977e36

                      1. Initial program 95.6%

                        \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                      2. Add Preprocessing
                      3. Taylor expanded in a around inf

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

                          \[\leadsto \color{blue}{\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)} \]
                      5. Recombined 2 regimes into one program.
                      6. Final simplification82.5%

                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+39} \lor \neg \left(z \leq 5 \cdot 10^{+36}\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(y - z, \frac{t}{a}, x\right)\\ \end{array} \]
                      7. Add Preprocessing

                      Alternative 7: 79.0% accurate, 0.8× speedup?

                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+39} \lor \neg \left(z \leq 4.9 \cdot 10^{+36}\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{y - z}{a}, x\right)\\ \end{array} \end{array} \]
                      (FPCore (x y z t a)
                       :precision binary64
                       (if (or (<= z -1.16e+39) (not (<= z 4.9e+36)))
                         (+ x t)
                         (fma t (/ (- y z) a) x)))
                      double code(double x, double y, double z, double t, double a) {
                      	double tmp;
                      	if ((z <= -1.16e+39) || !(z <= 4.9e+36)) {
                      		tmp = x + t;
                      	} else {
                      		tmp = fma(t, ((y - z) / a), x);
                      	}
                      	return tmp;
                      }
                      
                      function code(x, y, z, t, a)
                      	tmp = 0.0
                      	if ((z <= -1.16e+39) || !(z <= 4.9e+36))
                      		tmp = Float64(x + t);
                      	else
                      		tmp = fma(t, Float64(Float64(y - z) / a), x);
                      	end
                      	return tmp
                      end
                      
                      code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.16e+39], N[Not[LessEqual[z, 4.9e+36]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]]
                      
                      \begin{array}{l}
                      
                      \\
                      \begin{array}{l}
                      \mathbf{if}\;z \leq -1.16 \cdot 10^{+39} \lor \neg \left(z \leq 4.9 \cdot 10^{+36}\right):\\
                      \;\;\;\;x + t\\
                      
                      \mathbf{else}:\\
                      \;\;\;\;\mathsf{fma}\left(t, \frac{y - z}{a}, x\right)\\
                      
                      
                      \end{array}
                      \end{array}
                      
                      Derivation
                      1. Split input into 2 regimes
                      2. if z < -1.16000000000000003e39 or 4.89999999999999981e36 < z

                        1. Initial program 67.7%

                          \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                        2. Add Preprocessing
                        3. Taylor expanded in z around inf

                          \[\leadsto x + \color{blue}{t} \]
                        4. Step-by-step derivation
                          1. Applied rewrites83.8%

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

                          if -1.16000000000000003e39 < z < 4.89999999999999981e36

                          1. Initial program 95.6%

                            \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                          2. Add Preprocessing
                          3. Taylor expanded in t around inf

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

                              \[\leadsto \color{blue}{\left(\frac{y - z}{a - z} + \frac{x}{t}\right) \cdot t} \]
                            2. Taylor expanded in a around inf

                              \[\leadsto \color{blue}{x + \frac{t \cdot \left(y - z\right)}{a}} \]
                            3. Step-by-step derivation
                              1. Applied rewrites79.0%

                                \[\leadsto \color{blue}{\mathsf{fma}\left(t, \frac{y - z}{a}, x\right)} \]
                            4. Recombined 2 regimes into one program.
                            5. Final simplification81.3%

                              \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -1.16 \cdot 10^{+39} \lor \neg \left(z \leq 4.9 \cdot 10^{+36}\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(t, \frac{y - z}{a}, x\right)\\ \end{array} \]
                            6. Add Preprocessing

                            Alternative 8: 77.2% accurate, 0.8× speedup?

                            \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+68} \lor \neg \left(z \leq 9800000\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;x + y \cdot \frac{t}{a}\\ \end{array} \end{array} \]
                            (FPCore (x y z t a)
                             :precision binary64
                             (if (or (<= z -4e+68) (not (<= z 9800000.0))) (+ x t) (+ x (* y (/ t a)))))
                            double code(double x, double y, double z, double t, double a) {
                            	double tmp;
                            	if ((z <= -4e+68) || !(z <= 9800000.0)) {
                            		tmp = x + t;
                            	} else {
                            		tmp = x + (y * (t / a));
                            	}
                            	return tmp;
                            }
                            
                            module fmin_fmax_functions
                                implicit none
                                private
                                public fmax
                                public fmin
                            
                                interface fmax
                                    module procedure fmax88
                                    module procedure fmax44
                                    module procedure fmax84
                                    module procedure fmax48
                                end interface
                                interface fmin
                                    module procedure fmin88
                                    module procedure fmin44
                                    module procedure fmin84
                                    module procedure fmin48
                                end interface
                            contains
                                real(8) function fmax88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmax44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmax84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmax48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                end function
                                real(8) function fmin88(x, y) result (res)
                                    real(8), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(4) function fmin44(x, y) result (res)
                                    real(4), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                end function
                                real(8) function fmin84(x, y) result(res)
                                    real(8), intent (in) :: x
                                    real(4), intent (in) :: y
                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                end function
                                real(8) function fmin48(x, y) result(res)
                                    real(4), intent (in) :: x
                                    real(8), intent (in) :: y
                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                end function
                            end module
                            
                            real(8) function code(x, y, z, t, a)
                            use fmin_fmax_functions
                                real(8), intent (in) :: x
                                real(8), intent (in) :: y
                                real(8), intent (in) :: z
                                real(8), intent (in) :: t
                                real(8), intent (in) :: a
                                real(8) :: tmp
                                if ((z <= (-4d+68)) .or. (.not. (z <= 9800000.0d0))) then
                                    tmp = x + t
                                else
                                    tmp = x + (y * (t / a))
                                end if
                                code = tmp
                            end function
                            
                            public static double code(double x, double y, double z, double t, double a) {
                            	double tmp;
                            	if ((z <= -4e+68) || !(z <= 9800000.0)) {
                            		tmp = x + t;
                            	} else {
                            		tmp = x + (y * (t / a));
                            	}
                            	return tmp;
                            }
                            
                            def code(x, y, z, t, a):
                            	tmp = 0
                            	if (z <= -4e+68) or not (z <= 9800000.0):
                            		tmp = x + t
                            	else:
                            		tmp = x + (y * (t / a))
                            	return tmp
                            
                            function code(x, y, z, t, a)
                            	tmp = 0.0
                            	if ((z <= -4e+68) || !(z <= 9800000.0))
                            		tmp = Float64(x + t);
                            	else
                            		tmp = Float64(x + Float64(y * Float64(t / a)));
                            	end
                            	return tmp
                            end
                            
                            function tmp_2 = code(x, y, z, t, a)
                            	tmp = 0.0;
                            	if ((z <= -4e+68) || ~((z <= 9800000.0)))
                            		tmp = x + t;
                            	else
                            		tmp = x + (y * (t / a));
                            	end
                            	tmp_2 = tmp;
                            end
                            
                            code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4e+68], N[Not[LessEqual[z, 9800000.0]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
                            
                            \begin{array}{l}
                            
                            \\
                            \begin{array}{l}
                            \mathbf{if}\;z \leq -4 \cdot 10^{+68} \lor \neg \left(z \leq 9800000\right):\\
                            \;\;\;\;x + t\\
                            
                            \mathbf{else}:\\
                            \;\;\;\;x + y \cdot \frac{t}{a}\\
                            
                            
                            \end{array}
                            \end{array}
                            
                            Derivation
                            1. Split input into 2 regimes
                            2. if z < -3.99999999999999981e68 or 9.8e6 < z

                              1. Initial program 68.2%

                                \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                              2. Add Preprocessing
                              3. Taylor expanded in z around inf

                                \[\leadsto x + \color{blue}{t} \]
                              4. Step-by-step derivation
                                1. Applied rewrites83.2%

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

                                if -3.99999999999999981e68 < z < 9.8e6

                                1. Initial program 95.5%

                                  \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                                2. Add Preprocessing
                                3. Taylor expanded in z around 0

                                  \[\leadsto x + \color{blue}{\frac{t \cdot y}{a}} \]
                                4. Step-by-step derivation
                                  1. Applied rewrites71.1%

                                    \[\leadsto x + \color{blue}{\frac{t \cdot y}{a}} \]
                                  2. Step-by-step derivation
                                    1. Applied rewrites74.6%

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

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

                                  Alternative 9: 77.2% accurate, 0.9× speedup?

                                  \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+68} \lor \neg \left(z \leq 9800000\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t, x\right)\\ \end{array} \end{array} \]
                                  (FPCore (x y z t a)
                                   :precision binary64
                                   (if (or (<= z -4e+68) (not (<= z 9800000.0))) (+ x t) (fma (/ y a) t x)))
                                  double code(double x, double y, double z, double t, double a) {
                                  	double tmp;
                                  	if ((z <= -4e+68) || !(z <= 9800000.0)) {
                                  		tmp = x + t;
                                  	} else {
                                  		tmp = fma((y / a), t, x);
                                  	}
                                  	return tmp;
                                  }
                                  
                                  function code(x, y, z, t, a)
                                  	tmp = 0.0
                                  	if ((z <= -4e+68) || !(z <= 9800000.0))
                                  		tmp = Float64(x + t);
                                  	else
                                  		tmp = fma(Float64(y / a), t, x);
                                  	end
                                  	return tmp
                                  end
                                  
                                  code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4e+68], N[Not[LessEqual[z, 9800000.0]], $MachinePrecision]], N[(x + t), $MachinePrecision], N[(N[(y / a), $MachinePrecision] * t + x), $MachinePrecision]]
                                  
                                  \begin{array}{l}
                                  
                                  \\
                                  \begin{array}{l}
                                  \mathbf{if}\;z \leq -4 \cdot 10^{+68} \lor \neg \left(z \leq 9800000\right):\\
                                  \;\;\;\;x + t\\
                                  
                                  \mathbf{else}:\\
                                  \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t, x\right)\\
                                  
                                  
                                  \end{array}
                                  \end{array}
                                  
                                  Derivation
                                  1. Split input into 2 regimes
                                  2. if z < -3.99999999999999981e68 or 9.8e6 < z

                                    1. Initial program 68.2%

                                      \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                                    2. Add Preprocessing
                                    3. Taylor expanded in z around inf

                                      \[\leadsto x + \color{blue}{t} \]
                                    4. Step-by-step derivation
                                      1. Applied rewrites83.2%

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

                                      if -3.99999999999999981e68 < z < 9.8e6

                                      1. Initial program 95.5%

                                        \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                                      2. Add Preprocessing
                                      3. Taylor expanded in z around 0

                                        \[\leadsto \color{blue}{x + \frac{t \cdot y}{a}} \]
                                      4. Step-by-step derivation
                                        1. Applied rewrites73.1%

                                          \[\leadsto \color{blue}{\mathsf{fma}\left(\frac{y}{a}, t, x\right)} \]
                                      5. Recombined 2 regimes into one program.
                                      6. Final simplification78.0%

                                        \[\leadsto \begin{array}{l} \mathbf{if}\;z \leq -4 \cdot 10^{+68} \lor \neg \left(z \leq 9800000\right):\\ \;\;\;\;x + t\\ \mathbf{else}:\\ \;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t, x\right)\\ \end{array} \]
                                      7. Add Preprocessing

                                      Alternative 10: 52.8% accurate, 2.0× speedup?

                                      \[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;t \leq -7 \cdot 10^{+74}:\\ \;\;\;\;t\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{+259}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \end{array} \]
                                      (FPCore (x y z t a)
                                       :precision binary64
                                       (if (<= t -7e+74) t (if (<= t 1.15e+259) x t)))
                                      double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if (t <= -7e+74) {
                                      		tmp = t;
                                      	} else if (t <= 1.15e+259) {
                                      		tmp = x;
                                      	} else {
                                      		tmp = t;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      module fmin_fmax_functions
                                          implicit none
                                          private
                                          public fmax
                                          public fmin
                                      
                                          interface fmax
                                              module procedure fmax88
                                              module procedure fmax44
                                              module procedure fmax84
                                              module procedure fmax48
                                          end interface
                                          interface fmin
                                              module procedure fmin88
                                              module procedure fmin44
                                              module procedure fmin84
                                              module procedure fmin48
                                          end interface
                                      contains
                                          real(8) function fmax88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmax44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmax84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmax48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin88(x, y) result (res)
                                              real(8), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(4) function fmin44(x, y) result (res)
                                              real(4), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                          end function
                                          real(8) function fmin84(x, y) result(res)
                                              real(8), intent (in) :: x
                                              real(4), intent (in) :: y
                                              res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                          end function
                                          real(8) function fmin48(x, y) result(res)
                                              real(4), intent (in) :: x
                                              real(8), intent (in) :: y
                                              res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                          end function
                                      end module
                                      
                                      real(8) function code(x, y, z, t, a)
                                      use fmin_fmax_functions
                                          real(8), intent (in) :: x
                                          real(8), intent (in) :: y
                                          real(8), intent (in) :: z
                                          real(8), intent (in) :: t
                                          real(8), intent (in) :: a
                                          real(8) :: tmp
                                          if (t <= (-7d+74)) then
                                              tmp = t
                                          else if (t <= 1.15d+259) then
                                              tmp = x
                                          else
                                              tmp = t
                                          end if
                                          code = tmp
                                      end function
                                      
                                      public static double code(double x, double y, double z, double t, double a) {
                                      	double tmp;
                                      	if (t <= -7e+74) {
                                      		tmp = t;
                                      	} else if (t <= 1.15e+259) {
                                      		tmp = x;
                                      	} else {
                                      		tmp = t;
                                      	}
                                      	return tmp;
                                      }
                                      
                                      def code(x, y, z, t, a):
                                      	tmp = 0
                                      	if t <= -7e+74:
                                      		tmp = t
                                      	elif t <= 1.15e+259:
                                      		tmp = x
                                      	else:
                                      		tmp = t
                                      	return tmp
                                      
                                      function code(x, y, z, t, a)
                                      	tmp = 0.0
                                      	if (t <= -7e+74)
                                      		tmp = t;
                                      	elseif (t <= 1.15e+259)
                                      		tmp = x;
                                      	else
                                      		tmp = t;
                                      	end
                                      	return tmp
                                      end
                                      
                                      function tmp_2 = code(x, y, z, t, a)
                                      	tmp = 0.0;
                                      	if (t <= -7e+74)
                                      		tmp = t;
                                      	elseif (t <= 1.15e+259)
                                      		tmp = x;
                                      	else
                                      		tmp = t;
                                      	end
                                      	tmp_2 = tmp;
                                      end
                                      
                                      code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7e+74], t, If[LessEqual[t, 1.15e+259], x, t]]
                                      
                                      \begin{array}{l}
                                      
                                      \\
                                      \begin{array}{l}
                                      \mathbf{if}\;t \leq -7 \cdot 10^{+74}:\\
                                      \;\;\;\;t\\
                                      
                                      \mathbf{elif}\;t \leq 1.15 \cdot 10^{+259}:\\
                                      \;\;\;\;x\\
                                      
                                      \mathbf{else}:\\
                                      \;\;\;\;t\\
                                      
                                      
                                      \end{array}
                                      \end{array}
                                      
                                      Derivation
                                      1. Split input into 2 regimes
                                      2. if t < -7.00000000000000029e74 or 1.1500000000000001e259 < t

                                        1. Initial program 54.4%

                                          \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                                        2. Add Preprocessing
                                        3. Taylor expanded in x around 0

                                          \[\leadsto \color{blue}{\frac{t \cdot \left(y - z\right)}{a - z}} \]
                                        4. Step-by-step derivation
                                          1. Applied rewrites83.2%

                                            \[\leadsto \color{blue}{\frac{t}{a - z} \cdot \left(y - z\right)} \]
                                          2. Taylor expanded in z around inf

                                            \[\leadsto t \]
                                          3. Step-by-step derivation
                                            1. Applied rewrites49.5%

                                              \[\leadsto t \]

                                            if -7.00000000000000029e74 < t < 1.1500000000000001e259

                                            1. Initial program 90.7%

                                              \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in x around inf

                                              \[\leadsto \color{blue}{x} \]
                                            4. Step-by-step derivation
                                              1. Applied rewrites62.9%

                                                \[\leadsto \color{blue}{x} \]
                                            5. Recombined 2 regimes into one program.
                                            6. Final simplification59.8%

                                              \[\leadsto \begin{array}{l} \mathbf{if}\;t \leq -7 \cdot 10^{+74}:\\ \;\;\;\;t\\ \mathbf{elif}\;t \leq 1.15 \cdot 10^{+259}:\\ \;\;\;\;x\\ \mathbf{else}:\\ \;\;\;\;t\\ \end{array} \]
                                            7. Add Preprocessing

                                            Alternative 11: 51.2% accurate, 26.0× speedup?

                                            \[\begin{array}{l} \\ x \end{array} \]
                                            (FPCore (x y z t a) :precision binary64 x)
                                            double code(double x, double y, double z, double t, double a) {
                                            	return x;
                                            }
                                            
                                            module fmin_fmax_functions
                                                implicit none
                                                private
                                                public fmax
                                                public fmin
                                            
                                                interface fmax
                                                    module procedure fmax88
                                                    module procedure fmax44
                                                    module procedure fmax84
                                                    module procedure fmax48
                                                end interface
                                                interface fmin
                                                    module procedure fmin88
                                                    module procedure fmin44
                                                    module procedure fmin84
                                                    module procedure fmin48
                                                end interface
                                            contains
                                                real(8) function fmax88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmax44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmax84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmax48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin88(x, y) result (res)
                                                    real(8), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(4) function fmin44(x, y) result (res)
                                                    real(4), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                end function
                                                real(8) function fmin84(x, y) result(res)
                                                    real(8), intent (in) :: x
                                                    real(4), intent (in) :: y
                                                    res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                end function
                                                real(8) function fmin48(x, y) result(res)
                                                    real(4), intent (in) :: x
                                                    real(8), intent (in) :: y
                                                    res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                end function
                                            end module
                                            
                                            real(8) function code(x, y, z, t, a)
                                            use fmin_fmax_functions
                                                real(8), intent (in) :: x
                                                real(8), intent (in) :: y
                                                real(8), intent (in) :: z
                                                real(8), intent (in) :: t
                                                real(8), intent (in) :: a
                                                code = x
                                            end function
                                            
                                            public static double code(double x, double y, double z, double t, double a) {
                                            	return x;
                                            }
                                            
                                            def code(x, y, z, t, a):
                                            	return x
                                            
                                            function code(x, y, z, t, a)
                                            	return x
                                            end
                                            
                                            function tmp = code(x, y, z, t, a)
                                            	tmp = x;
                                            end
                                            
                                            code[x_, y_, z_, t_, a_] := x
                                            
                                            \begin{array}{l}
                                            
                                            \\
                                            x
                                            \end{array}
                                            
                                            Derivation
                                            1. Initial program 82.3%

                                              \[x + \frac{\left(y - z\right) \cdot t}{a - z} \]
                                            2. Add Preprocessing
                                            3. Taylor expanded in x around inf

                                              \[\leadsto \color{blue}{x} \]
                                            4. Step-by-step derivation
                                              1. Applied rewrites51.2%

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

                                              Developer Target 1: 99.2% accurate, 0.7× speedup?

                                              \[\begin{array}{l} \\ \begin{array}{l} t_1 := x + \frac{y - z}{a - z} \cdot t\\ \mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\ \;\;\;\;t\_1\\ \mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\ \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\ \mathbf{else}:\\ \;\;\;\;t\_1\\ \end{array} \end{array} \]
                                              (FPCore (x y z t a)
                                               :precision binary64
                                               (let* ((t_1 (+ x (* (/ (- y z) (- a z)) t))))
                                                 (if (< t -1.0682974490174067e-39)
                                                   t_1
                                                   (if (< t 3.9110949887586375e-141) (+ x (/ (* (- y z) t) (- a z))) t_1))))
                                              double code(double x, double y, double z, double t, double a) {
                                              	double t_1 = x + (((y - z) / (a - z)) * t);
                                              	double tmp;
                                              	if (t < -1.0682974490174067e-39) {
                                              		tmp = t_1;
                                              	} else if (t < 3.9110949887586375e-141) {
                                              		tmp = x + (((y - z) * t) / (a - z));
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              module fmin_fmax_functions
                                                  implicit none
                                                  private
                                                  public fmax
                                                  public fmin
                                              
                                                  interface fmax
                                                      module procedure fmax88
                                                      module procedure fmax44
                                                      module procedure fmax84
                                                      module procedure fmax48
                                                  end interface
                                                  interface fmin
                                                      module procedure fmin88
                                                      module procedure fmin44
                                                      module procedure fmin84
                                                      module procedure fmin48
                                                  end interface
                                              contains
                                                  real(8) function fmax88(x, y) result (res)
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                  end function
                                                  real(4) function fmax44(x, y) result (res)
                                                      real(4), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(y, merge(x, max(x, y), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmax84(x, y) result(res)
                                                      real(8), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmax48(x, y) result(res)
                                                      real(4), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmin88(x, y) result (res)
                                                      real(8), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                  end function
                                                  real(4) function fmin44(x, y) result (res)
                                                      real(4), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(y, merge(x, min(x, y), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmin84(x, y) result(res)
                                                      real(8), intent (in) :: x
                                                      real(4), intent (in) :: y
                                                      res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
                                                  end function
                                                  real(8) function fmin48(x, y) result(res)
                                                      real(4), intent (in) :: x
                                                      real(8), intent (in) :: y
                                                      res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
                                                  end function
                                              end module
                                              
                                              real(8) function code(x, y, z, t, a)
                                              use fmin_fmax_functions
                                                  real(8), intent (in) :: x
                                                  real(8), intent (in) :: y
                                                  real(8), intent (in) :: z
                                                  real(8), intent (in) :: t
                                                  real(8), intent (in) :: a
                                                  real(8) :: t_1
                                                  real(8) :: tmp
                                                  t_1 = x + (((y - z) / (a - z)) * t)
                                                  if (t < (-1.0682974490174067d-39)) then
                                                      tmp = t_1
                                                  else if (t < 3.9110949887586375d-141) then
                                                      tmp = x + (((y - z) * t) / (a - z))
                                                  else
                                                      tmp = t_1
                                                  end if
                                                  code = tmp
                                              end function
                                              
                                              public static double code(double x, double y, double z, double t, double a) {
                                              	double t_1 = x + (((y - z) / (a - z)) * t);
                                              	double tmp;
                                              	if (t < -1.0682974490174067e-39) {
                                              		tmp = t_1;
                                              	} else if (t < 3.9110949887586375e-141) {
                                              		tmp = x + (((y - z) * t) / (a - z));
                                              	} else {
                                              		tmp = t_1;
                                              	}
                                              	return tmp;
                                              }
                                              
                                              def code(x, y, z, t, a):
                                              	t_1 = x + (((y - z) / (a - z)) * t)
                                              	tmp = 0
                                              	if t < -1.0682974490174067e-39:
                                              		tmp = t_1
                                              	elif t < 3.9110949887586375e-141:
                                              		tmp = x + (((y - z) * t) / (a - z))
                                              	else:
                                              		tmp = t_1
                                              	return tmp
                                              
                                              function code(x, y, z, t, a)
                                              	t_1 = Float64(x + Float64(Float64(Float64(y - z) / Float64(a - z)) * t))
                                              	tmp = 0.0
                                              	if (t < -1.0682974490174067e-39)
                                              		tmp = t_1;
                                              	elseif (t < 3.9110949887586375e-141)
                                              		tmp = Float64(x + Float64(Float64(Float64(y - z) * t) / Float64(a - z)));
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	return tmp
                                              end
                                              
                                              function tmp_2 = code(x, y, z, t, a)
                                              	t_1 = x + (((y - z) / (a - z)) * t);
                                              	tmp = 0.0;
                                              	if (t < -1.0682974490174067e-39)
                                              		tmp = t_1;
                                              	elseif (t < 3.9110949887586375e-141)
                                              		tmp = x + (((y - z) * t) / (a - z));
                                              	else
                                              		tmp = t_1;
                                              	end
                                              	tmp_2 = tmp;
                                              end
                                              
                                              code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -1.0682974490174067e-39], t$95$1, If[Less[t, 3.9110949887586375e-141], N[(x + N[(N[(N[(y - z), $MachinePrecision] * t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
                                              
                                              \begin{array}{l}
                                              
                                              \\
                                              \begin{array}{l}
                                              t_1 := x + \frac{y - z}{a - z} \cdot t\\
                                              \mathbf{if}\;t < -1.0682974490174067 \cdot 10^{-39}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              \mathbf{elif}\;t < 3.9110949887586375 \cdot 10^{-141}:\\
                                              \;\;\;\;x + \frac{\left(y - z\right) \cdot t}{a - z}\\
                                              
                                              \mathbf{else}:\\
                                              \;\;\;\;t\_1\\
                                              
                                              
                                              \end{array}
                                              \end{array}
                                              

                                              Reproduce

                                              ?
                                              herbie shell --seed 2025019 
                                              (FPCore (x y z t a)
                                                :name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, A"
                                                :precision binary64
                                              
                                                :alt
                                                (! :herbie-platform default (if (< t -10682974490174067/10000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y z) (- a z)) t)) (if (< t 312887599100691/80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (/ (* (- y z) t) (- a z))) (+ x (* (/ (- y z) (- a z)) t)))))
                                              
                                                (+ x (/ (* (- y z) t) (- a z))))