
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- z a))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
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)) / (z - a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (z - a))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(z - a))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (z - a)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{z - a}
\end{array}
Herbie found 14 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- z a))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
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)) / (z - a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (z - a))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(z - a))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (z - a)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{z - a}
\end{array}
(FPCore (x y z t a) :precision binary64 (fma (/ (- z t) (- z a)) y x))
double code(double x, double y, double z, double t, double a) {
return fma(((z - t) / (z - a)), y, x);
}
function code(x, y, z, t, a) return fma(Float64(Float64(z - t) / Float64(z - a)), y, x) end
code[x_, y_, z_, t_, a_] := N[(N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\frac{z - t}{z - a}, y, x\right)
\end{array}
Initial program 85.5%
lift-+.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
+-commutativeN/A
associate-/l*N/A
sub-divN/A
*-commutativeN/A
lower-fma.f64N/A
sub-divN/A
lower-/.f64N/A
lift--.f64N/A
lift--.f6498.0
Applied rewrites98.0%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ x (* (/ (- y) (- z a)) t)))) (if (<= t -1.3e+20) t_1 (if (<= t 0.00018) (fma y (/ z (- z a)) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((-y / (z - a)) * t);
double tmp;
if (t <= -1.3e+20) {
tmp = t_1;
} else if (t <= 0.00018) {
tmp = fma(y, (z / (z - a)), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(-y) / Float64(z - a)) * t)) tmp = 0.0 if (t <= -1.3e+20) tmp = t_1; elseif (t <= 0.00018) tmp = fma(y, Float64(z / Float64(z - a)), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[((-y) / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+20], t$95$1, If[LessEqual[t, 0.00018], N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{-y}{z - a} \cdot t\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.00018:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.3e20 or 1.80000000000000011e-4 < t Initial program 83.1%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6457.2
Applied rewrites57.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift--.f64N/A
associate-*r/N/A
lower-/.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lift--.f6491.9
Applied rewrites91.9%
Taylor expanded in t around inf
mul-1-negN/A
distribute-frac-negN/A
lift-neg.f64N/A
lift-/.f64N/A
lift--.f6486.4
Applied rewrites86.4%
if -1.3e20 < t < 1.80000000000000011e-4Initial program 87.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6489.6
Applied rewrites89.6%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ (- t) (- z a)) y x))) (if (<= t -1.3e+20) t_1 (if (<= t 0.00018) (fma y (/ z (- z a)) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((-t / (z - a)), y, x);
double tmp;
if (t <= -1.3e+20) {
tmp = t_1;
} else if (t <= 0.00018) {
tmp = fma(y, (z / (z - a)), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(-t) / Float64(z - a)), y, x) tmp = 0.0 if (t <= -1.3e+20) tmp = t_1; elseif (t <= 0.00018) tmp = fma(y, Float64(z / Float64(z - a)), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[((-t) / N[(z - a), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[t, -1.3e+20], t$95$1, If[LessEqual[t, 0.00018], N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{-t}{z - a}, y, x\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.00018:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.3e20 or 1.80000000000000011e-4 < t Initial program 83.1%
lift-+.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
+-commutativeN/A
associate-/l*N/A
sub-divN/A
*-commutativeN/A
lower-fma.f64N/A
sub-divN/A
lower-/.f64N/A
lift--.f64N/A
lift--.f6496.9
Applied rewrites96.9%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6485.2
Applied rewrites85.2%
if -1.3e20 < t < 1.80000000000000011e-4Initial program 87.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6489.6
Applied rewrites89.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.6e+32) (fma y (/ z (- z a)) x) (if (<= z 6.2e-24) (- x (* (- z t) (/ y a))) (fma y (/ (- z t) z) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.6e+32) {
tmp = fma(y, (z / (z - a)), x);
} else if (z <= 6.2e-24) {
tmp = x - ((z - t) * (y / a));
} else {
tmp = fma(y, ((z - t) / z), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.6e+32) tmp = fma(y, Float64(z / Float64(z - a)), x); elseif (z <= 6.2e-24) tmp = Float64(x - Float64(Float64(z - t) * Float64(y / a))); else tmp = fma(y, Float64(Float64(z - t) / z), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.6e+32], N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 6.2e-24], N[(x - N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+32}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{-24}:\\
\;\;\;\;x - \left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z - t}{z}, x\right)\\
\end{array}
\end{array}
if z < -2.6000000000000002e32Initial program 74.4%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6486.5
Applied rewrites86.5%
if -2.6000000000000002e32 < z < 6.2000000000000001e-24Initial program 95.5%
Taylor expanded in a around inf
fp-cancel-sign-sub-invN/A
metadata-evalN/A
metadata-evalN/A
times-fracN/A
mul-1-negN/A
mul-1-negN/A
frac-2negN/A
lower--.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lift--.f6479.2
Applied rewrites79.2%
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
associate-/l*N/A
lower-*.f64N/A
lift--.f64N/A
lower-/.f6480.7
Applied rewrites80.7%
if 6.2000000000000001e-24 < z Initial program 76.0%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6484.5
Applied rewrites84.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -8.2e-79) (fma y (/ z (- z a)) x) (if (<= z 4.8e-24) (fma (/ t a) y x) (fma y (/ (- z t) z) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.2e-79) {
tmp = fma(y, (z / (z - a)), x);
} else if (z <= 4.8e-24) {
tmp = fma((t / a), y, x);
} else {
tmp = fma(y, ((z - t) / z), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.2e-79) tmp = fma(y, Float64(z / Float64(z - a)), x); elseif (z <= 4.8e-24) tmp = fma(Float64(t / a), y, x); else tmp = fma(y, Float64(Float64(z - t) / z), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.2e-79], N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.8e-24], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{-79}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-24}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z - t}{z}, x\right)\\
\end{array}
\end{array}
if z < -8.19999999999999987e-79Initial program 79.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6480.9
Applied rewrites80.9%
if -8.19999999999999987e-79 < z < 4.7999999999999996e-24Initial program 95.8%
lift-+.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
+-commutativeN/A
associate-/l*N/A
sub-divN/A
*-commutativeN/A
lower-fma.f64N/A
sub-divN/A
lower-/.f64N/A
lift--.f64N/A
lift--.f6495.6
Applied rewrites95.6%
Taylor expanded in z around 0
lower-/.f6480.5
Applied rewrites80.5%
if 4.7999999999999996e-24 < z Initial program 76.0%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6484.5
Applied rewrites84.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma y (/ (- t) z) x)))
(if (<= t -2.7e+187)
t_1
(if (<= t 4.5e+16)
(fma y (/ z (- z a)) x)
(if (<= t 1.22e+166) (fma t (/ y a) x) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(y, (-t / z), x);
double tmp;
if (t <= -2.7e+187) {
tmp = t_1;
} else if (t <= 4.5e+16) {
tmp = fma(y, (z / (z - a)), x);
} else if (t <= 1.22e+166) {
tmp = fma(t, (y / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(y, Float64(Float64(-t) / z), x) tmp = 0.0 if (t <= -2.7e+187) tmp = t_1; elseif (t <= 4.5e+16) tmp = fma(y, Float64(z / Float64(z - a)), x); elseif (t <= 1.22e+166) tmp = fma(t, Float64(y / a), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[((-t) / z), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -2.7e+187], t$95$1, If[LessEqual[t, 4.5e+16], N[(y * N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t, 1.22e+166], N[(t * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \frac{-t}{z}, x\right)\\
\mathbf{if}\;t \leq -2.7 \cdot 10^{+187}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{z}{z - a}, x\right)\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{+166}:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.70000000000000008e187 or 1.21999999999999993e166 < t Initial program 79.7%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6457.8
Applied rewrites57.8%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6452.7
Applied rewrites52.7%
if -2.70000000000000008e187 < t < 4.5e16Initial program 87.3%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6483.2
Applied rewrites83.2%
if 4.5e16 < t < 1.21999999999999993e166Initial program 86.4%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6463.3
Applied rewrites63.3%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.9e+25)
(+ x y)
(if (<= z 8.2e-24)
(fma (/ t a) y x)
(if (<= z 4.2e+97)
(+ (- (* t (/ y z))) y)
(if (<= z 4.3e+229) (fma y (/ (- t) z) x) (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+25) {
tmp = x + y;
} else if (z <= 8.2e-24) {
tmp = fma((t / a), y, x);
} else if (z <= 4.2e+97) {
tmp = -(t * (y / z)) + y;
} else if (z <= 4.3e+229) {
tmp = fma(y, (-t / z), x);
} else {
tmp = x + y;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+25) tmp = Float64(x + y); elseif (z <= 8.2e-24) tmp = fma(Float64(t / a), y, x); elseif (z <= 4.2e+97) tmp = Float64(Float64(-Float64(t * Float64(y / z))) + y); elseif (z <= 4.3e+229) tmp = fma(y, Float64(Float64(-t) / z), x); else tmp = Float64(x + y); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+25], N[(x + y), $MachinePrecision], If[LessEqual[z, 8.2e-24], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 4.2e+97], N[((-N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]) + y), $MachinePrecision], If[LessEqual[z, 4.3e+229], N[(y * N[((-t) / z), $MachinePrecision] + x), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-24}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+97}:\\
\;\;\;\;\left(-t \cdot \frac{y}{z}\right) + y\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+229}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{-t}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.9e25 or 4.29999999999999991e229 < z Initial program 70.9%
Taylor expanded in z around inf
Applied rewrites81.6%
if -1.9e25 < z < 8.20000000000000029e-24Initial program 95.5%
lift-+.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
+-commutativeN/A
associate-/l*N/A
sub-divN/A
*-commutativeN/A
lower-fma.f64N/A
sub-divN/A
lower-/.f64N/A
lift--.f64N/A
lift--.f6496.2
Applied rewrites96.2%
Taylor expanded in z around 0
lower-/.f6477.6
Applied rewrites77.6%
if 8.20000000000000029e-24 < z < 4.20000000000000023e97Initial program 88.7%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6474.4
Applied rewrites74.4%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f6434.8
Applied rewrites34.8%
Taylor expanded in z around inf
+-commutativeN/A
lower-+.f64N/A
mul-1-negN/A
lower-neg.f64N/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6434.6
Applied rewrites34.6%
if 4.20000000000000023e97 < z < 4.29999999999999991e229Initial program 75.8%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6486.9
Applied rewrites86.9%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6460.1
Applied rewrites60.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.9e+25)
(+ x y)
(if (<= z 8e-24)
(fma (/ t a) y x)
(if (<= z 4.2e+97)
(* (- 1.0 (/ t z)) y)
(if (<= z 4.3e+229) (fma y (/ (- t) z) x) (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+25) {
tmp = x + y;
} else if (z <= 8e-24) {
tmp = fma((t / a), y, x);
} else if (z <= 4.2e+97) {
tmp = (1.0 - (t / z)) * y;
} else if (z <= 4.3e+229) {
tmp = fma(y, (-t / z), x);
} else {
tmp = x + y;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+25) tmp = Float64(x + y); elseif (z <= 8e-24) tmp = fma(Float64(t / a), y, x); elseif (z <= 4.2e+97) tmp = Float64(Float64(1.0 - Float64(t / z)) * y); elseif (z <= 4.3e+229) tmp = fma(y, Float64(Float64(-t) / z), x); else tmp = Float64(x + y); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+25], N[(x + y), $MachinePrecision], If[LessEqual[z, 8e-24], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 4.2e+97], N[(N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 4.3e+229], N[(y * N[((-t) / z), $MachinePrecision] + x), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-24}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+97}:\\
\;\;\;\;\left(1 - \frac{t}{z}\right) \cdot y\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+229}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{-t}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.9e25 or 4.29999999999999991e229 < z Initial program 70.9%
Taylor expanded in z around inf
Applied rewrites81.6%
if -1.9e25 < z < 7.99999999999999939e-24Initial program 95.5%
lift-+.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
+-commutativeN/A
associate-/l*N/A
sub-divN/A
*-commutativeN/A
lower-fma.f64N/A
sub-divN/A
lower-/.f64N/A
lift--.f64N/A
lift--.f6496.2
Applied rewrites96.2%
Taylor expanded in z around 0
lower-/.f6477.6
Applied rewrites77.6%
if 7.99999999999999939e-24 < z < 4.20000000000000023e97Initial program 88.8%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6474.3
Applied rewrites74.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f6434.7
Applied rewrites34.7%
if 4.20000000000000023e97 < z < 4.29999999999999991e229Initial program 75.8%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6486.9
Applied rewrites86.9%
Taylor expanded in z around 0
mul-1-negN/A
lower-neg.f6460.1
Applied rewrites60.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.9e+25)
(+ x y)
(if (<= z 8e-24)
(fma (/ t a) y x)
(if (<= z 8.1e+15) (* (- 1.0 (/ t z)) y) (+ x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+25) {
tmp = x + y;
} else if (z <= 8e-24) {
tmp = fma((t / a), y, x);
} else if (z <= 8.1e+15) {
tmp = (1.0 - (t / z)) * y;
} else {
tmp = x + y;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+25) tmp = Float64(x + y); elseif (z <= 8e-24) tmp = fma(Float64(t / a), y, x); elseif (z <= 8.1e+15) tmp = Float64(Float64(1.0 - Float64(t / z)) * y); else tmp = Float64(x + y); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+25], N[(x + y), $MachinePrecision], If[LessEqual[z, 8e-24], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 8.1e+15], N[(N[(1.0 - N[(t / z), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(x + y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-24}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{elif}\;z \leq 8.1 \cdot 10^{+15}:\\
\;\;\;\;\left(1 - \frac{t}{z}\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.9e25 or 8.1e15 < z Initial program 74.2%
Taylor expanded in z around inf
Applied rewrites77.4%
if -1.9e25 < z < 7.99999999999999939e-24Initial program 95.5%
lift-+.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
+-commutativeN/A
associate-/l*N/A
sub-divN/A
*-commutativeN/A
lower-fma.f64N/A
sub-divN/A
lower-/.f64N/A
lift--.f64N/A
lift--.f6496.2
Applied rewrites96.2%
Taylor expanded in z around 0
lower-/.f6477.6
Applied rewrites77.6%
if 7.99999999999999939e-24 < z < 8.1e15Initial program 95.8%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6470.5
Applied rewrites70.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f6430.7
Applied rewrites30.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.9e+25) (+ x y) (if (<= z 7.8e-25) (fma (/ t a) y x) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+25) {
tmp = x + y;
} else if (z <= 7.8e-25) {
tmp = fma((t / a), y, x);
} else {
tmp = x + y;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+25) tmp = Float64(x + y); elseif (z <= 7.8e-25) tmp = fma(Float64(t / a), y, x); else tmp = Float64(x + y); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+25], N[(x + y), $MachinePrecision], If[LessEqual[z, 7.8e-25], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{-25}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.9e25 or 7.8e-25 < z Initial program 75.5%
Taylor expanded in z around inf
Applied rewrites76.0%
if -1.9e25 < z < 7.8e-25Initial program 95.5%
lift-+.f64N/A
lift--.f64N/A
lift-/.f64N/A
lift-*.f64N/A
lift--.f64N/A
+-commutativeN/A
associate-/l*N/A
sub-divN/A
*-commutativeN/A
lower-fma.f64N/A
sub-divN/A
lower-/.f64N/A
lift--.f64N/A
lift--.f6496.2
Applied rewrites96.2%
Taylor expanded in z around 0
lower-/.f6477.6
Applied rewrites77.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.9e+25) (+ x y) (if (<= z 8.4e-26) (fma t (/ y a) x) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+25) {
tmp = x + y;
} else if (z <= 8.4e-26) {
tmp = fma(t, (y / a), x);
} else {
tmp = x + y;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+25) tmp = Float64(x + y); elseif (z <= 8.4e-26) tmp = fma(t, Float64(y / a), x); else tmp = Float64(x + y); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+25], N[(x + y), $MachinePrecision], If[LessEqual[z, 8.4e-26], N[(t * N[(y / a), $MachinePrecision] + x), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 8.4 \cdot 10^{-26}:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{y}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.9e25 or 8.40000000000000032e-26 < z Initial program 75.5%
Taylor expanded in z around inf
Applied rewrites76.0%
if -1.9e25 < z < 8.40000000000000032e-26Initial program 95.5%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f6477.6
Applied rewrites77.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.9e+25) (+ x y) (if (<= z 2.9e-30) x (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+25) {
tmp = x + y;
} else if (z <= 2.9e-30) {
tmp = x;
} else {
tmp = x + y;
}
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 <= (-1.9d+25)) then
tmp = x + y
else if (z <= 2.9d-30) then
tmp = x
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.9e+25) {
tmp = x + y;
} else if (z <= 2.9e-30) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.9e+25: tmp = x + y elif z <= 2.9e-30: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.9e+25) tmp = Float64(x + y); elseif (z <= 2.9e-30) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.9e+25) tmp = x + y; elseif (z <= 2.9e-30) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.9e+25], N[(x + y), $MachinePrecision], If[LessEqual[z, 2.9e-30], x, N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+25}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-30}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.9e25 or 2.89999999999999989e-30 < z Initial program 75.7%
Taylor expanded in z around inf
Applied rewrites75.7%
if -1.9e25 < z < 2.89999999999999989e-30Initial program 95.5%
Taylor expanded in x around inf
Applied rewrites49.0%
(FPCore (x y z t a) :precision binary64 (if (<= (/ (* y (- z t)) (- z a)) -1e+164) y x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((y * (z - t)) / (z - a)) <= -1e+164) {
tmp = y;
} 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) :: tmp
if (((y * (z - t)) / (z - a)) <= (-1d+164)) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((y * (z - t)) / (z - a)) <= -1e+164) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((y * (z - t)) / (z - a)) <= -1e+164: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(Float64(y * Float64(z - t)) / Float64(z - a)) <= -1e+164) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((y * (z - t)) / (z - a)) <= -1e+164) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision], -1e+164], y, x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z - t\right)}{z - a} \leq -1 \cdot 10^{+164}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) < -1e164Initial program 54.9%
Taylor expanded in a around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6467.1
Applied rewrites67.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f6458.5
Applied rewrites58.5%
Taylor expanded in z around inf
Applied rewrites29.0%
if -1e164 < (/.f64 (*.f64 y (-.f64 z t)) (-.f64 z a)) Initial program 91.4%
Taylor expanded in x around inf
Applied rewrites57.1%
(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}
Initial program 85.5%
Taylor expanded in x around inf
Applied rewrites50.1%
herbie shell --seed 2025120
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
(+ x (/ (* y (- z t)) (- z a))))