
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (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 - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (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 - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (* (- 1.0 (/ x t)) (/ (- y z) (- a z))) t)))
(t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -4e-305)
t_2
(if (<= t_2 0.0)
(- t (* (/ (- a y) z) x))
(if (<= t_2 5e+296) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((1.0 - (x / t)) * ((y - z) / (a - z))) * t);
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -4e-305) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t - (((a - y) / z) * x);
} else if (t_2 <= 5e+296) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((1.0 - (x / t)) * ((y - z) / (a - z))) * t);
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -4e-305) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t - (((a - y) / z) * x);
} else if (t_2 <= 5e+296) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((1.0 - (x / t)) * ((y - z) / (a - z))) * t) t_2 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -4e-305: tmp = t_2 elif t_2 <= 0.0: tmp = t - (((a - y) / z) * x) elif t_2 <= 5e+296: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(1.0 - Float64(x / t)) * Float64(Float64(y - z) / Float64(a - z))) * t)) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -4e-305) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(a - y) / z) * x)); elseif (t_2 <= 5e+296) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((1.0 - (x / t)) * ((y - z) / (a - z))) * t); t_2 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -4e-305) tmp = t_2; elseif (t_2 <= 0.0) tmp = t - (((a - y) / z) * x); elseif (t_2 <= 5e+296) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(1.0 - N[(x / t), $MachinePrecision]), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -4e-305], t$95$2, If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+296], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(1 - \frac{x}{t}\right) \cdot \frac{y - z}{a - z}\right) \cdot t\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -4 \cdot 10^{-305}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \frac{a - y}{z} \cdot x\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+296}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0 or 5.0000000000000001e296 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 39.4%
Taylor expanded in t around inf
Applied rewrites76.7%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -3.99999999999999999e-305 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5.0000000000000001e296Initial program 97.0%
if -3.99999999999999999e-305 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6490.9
Applied rewrites90.9%
Taylor expanded in x around inf
Applied rewrites99.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.75e+167)
(- t (* (/ (- a y) z) x))
(if (<= z 6.8e+121)
(+ x (/ (* (- y z) (- t x)) (- a z)))
(- t (* (/ (- t x) z) (- y a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.75e+167) {
tmp = t - (((a - y) / z) * x);
} else if (z <= 6.8e+121) {
tmp = x + (((y - z) * (t - x)) / (a - z));
} else {
tmp = t - (((t - x) / z) * (y - 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 <= (-3.75d+167)) then
tmp = t - (((a - y) / z) * x)
else if (z <= 6.8d+121) then
tmp = x + (((y - z) * (t - x)) / (a - z))
else
tmp = t - (((t - x) / z) * (y - 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 <= -3.75e+167) {
tmp = t - (((a - y) / z) * x);
} else if (z <= 6.8e+121) {
tmp = x + (((y - z) * (t - x)) / (a - z));
} else {
tmp = t - (((t - x) / z) * (y - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.75e+167: tmp = t - (((a - y) / z) * x) elif z <= 6.8e+121: tmp = x + (((y - z) * (t - x)) / (a - z)) else: tmp = t - (((t - x) / z) * (y - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.75e+167) tmp = Float64(t - Float64(Float64(Float64(a - y) / z) * x)); elseif (z <= 6.8e+121) tmp = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))); else tmp = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.75e+167) tmp = t - (((a - y) / z) * x); elseif (z <= 6.8e+121) tmp = x + (((y - z) * (t - x)) / (a - z)); else tmp = t - (((t - x) / z) * (y - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.75e+167], N[(t - N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e+121], N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.75 \cdot 10^{+167}:\\
\;\;\;\;t - \frac{a - y}{z} \cdot x\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+121}:\\
\;\;\;\;x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\
\end{array}
\end{array}
if z < -3.7499999999999998e167Initial program 30.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6484.8
Applied rewrites84.8%
Taylor expanded in x around inf
Applied rewrites81.9%
if -3.7499999999999998e167 < z < 6.80000000000000021e121Initial program 81.6%
if 6.80000000000000021e121 < z Initial program 30.8%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6481.5
Applied rewrites81.5%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.55e+191)
(- t (* (/ (- a y) z) x))
(if (<= z -1.1e+69)
(- x (* (- t x) (/ z (- a z))))
(if (<= z 3.2e-11)
(+ x (/ (* y (- t x)) (- a z)))
(- t (* (/ (- t x) z) (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.55e+191) {
tmp = t - (((a - y) / z) * x);
} else if (z <= -1.1e+69) {
tmp = x - ((t - x) * (z / (a - z)));
} else if (z <= 3.2e-11) {
tmp = x + ((y * (t - x)) / (a - z));
} else {
tmp = t - (((t - x) / z) * (y - 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 <= (-1.55d+191)) then
tmp = t - (((a - y) / z) * x)
else if (z <= (-1.1d+69)) then
tmp = x - ((t - x) * (z / (a - z)))
else if (z <= 3.2d-11) then
tmp = x + ((y * (t - x)) / (a - z))
else
tmp = t - (((t - x) / z) * (y - 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 <= -1.55e+191) {
tmp = t - (((a - y) / z) * x);
} else if (z <= -1.1e+69) {
tmp = x - ((t - x) * (z / (a - z)));
} else if (z <= 3.2e-11) {
tmp = x + ((y * (t - x)) / (a - z));
} else {
tmp = t - (((t - x) / z) * (y - a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.55e+191: tmp = t - (((a - y) / z) * x) elif z <= -1.1e+69: tmp = x - ((t - x) * (z / (a - z))) elif z <= 3.2e-11: tmp = x + ((y * (t - x)) / (a - z)) else: tmp = t - (((t - x) / z) * (y - a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.55e+191) tmp = Float64(t - Float64(Float64(Float64(a - y) / z) * x)); elseif (z <= -1.1e+69) tmp = Float64(x - Float64(Float64(t - x) * Float64(z / Float64(a - z)))); elseif (z <= 3.2e-11) tmp = Float64(x + Float64(Float64(y * Float64(t - x)) / Float64(a - z))); else tmp = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.55e+191) tmp = t - (((a - y) / z) * x); elseif (z <= -1.1e+69) tmp = x - ((t - x) * (z / (a - z))); elseif (z <= 3.2e-11) tmp = x + ((y * (t - x)) / (a - z)); else tmp = t - (((t - x) / z) * (y - a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.55e+191], N[(t - N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.1e+69], N[(x - N[(N[(t - x), $MachinePrecision] * N[(z / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e-11], N[(x + N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+191}:\\
\;\;\;\;t - \frac{a - y}{z} \cdot x\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{+69}:\\
\;\;\;\;x - \left(t - x\right) \cdot \frac{z}{a - z}\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{-11}:\\
\;\;\;\;x + \frac{y \cdot \left(t - x\right)}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\
\end{array}
\end{array}
if z < -1.54999999999999999e191Initial program 27.8%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6485.8
Applied rewrites85.8%
Taylor expanded in x around inf
Applied rewrites83.9%
if -1.54999999999999999e191 < z < -1.1000000000000001e69Initial program 51.9%
Taylor expanded in y around 0
metadata-evalN/A
cancel-sign-sub-invN/A
*-lft-identityN/A
lower--.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6449.3
Applied rewrites49.3%
if -1.1000000000000001e69 < z < 3.19999999999999994e-11Initial program 88.3%
Taylor expanded in y around inf
Applied rewrites78.4%
if 3.19999999999999994e-11 < z Initial program 45.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6472.8
Applied rewrites72.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (- t x) (/ (- y z) a) x)))
(if (<= a -6e-95)
t_1
(if (<= a 1.6e-97) (- t (* (/ (- t x) z) (- y a))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((t - x), ((y - z) / a), x);
double tmp;
if (a <= -6e-95) {
tmp = t_1;
} else if (a <= 1.6e-97) {
tmp = t - (((t - x) / z) * (y - a));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(t - x), Float64(Float64(y - z) / a), x) tmp = 0.0 if (a <= -6e-95) tmp = t_1; elseif (a <= 1.6e-97) tmp = Float64(t - Float64(Float64(Float64(t - x) / z) * Float64(y - a))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -6e-95], t$95$1, If[LessEqual[a, 1.6e-97], N[(t - N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\
\mathbf{if}\;a \leq -6 \cdot 10^{-95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-97}:\\
\;\;\;\;t - \frac{t - x}{z} \cdot \left(y - a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6e-95 or 1.5999999999999999e-97 < a Initial program 69.4%
Taylor expanded in t around inf
Applied rewrites79.4%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6467.7
Applied rewrites67.7%
if -6e-95 < a < 1.5999999999999999e-97Initial program 65.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6483.3
Applied rewrites83.3%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (- t x) (/ (- y z) a) x))) (if (<= a -2.3e-95) t_1 (if (<= a 1.6e-97) (fma (/ (- x t) z) y t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((t - x), ((y - z) / a), x);
double tmp;
if (a <= -2.3e-95) {
tmp = t_1;
} else if (a <= 1.6e-97) {
tmp = fma(((x - t) / z), y, t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(t - x), Float64(Float64(y - z) / a), x) tmp = 0.0 if (a <= -2.3e-95) tmp = t_1; elseif (a <= 1.6e-97) tmp = fma(Float64(Float64(x - t) / z), y, t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -2.3e-95], t$95$1, If[LessEqual[a, 1.6e-97], N[(N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision] * y + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t - x, \frac{y - z}{a}, x\right)\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{-95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-97}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - t}{z}, y, t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.29999999999999999e-95 or 1.5999999999999999e-97 < a Initial program 69.4%
Taylor expanded in t around inf
Applied rewrites79.4%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6467.7
Applied rewrites67.7%
if -2.29999999999999999e-95 < a < 1.5999999999999999e-97Initial program 65.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6483.3
Applied rewrites83.3%
Taylor expanded in a around 0
associate-/l*N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-outN/A
associate-/l*N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites81.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4.9e+163)
(- t (* (/ (- a y) z) x))
(if (<= z -3.1e-150)
(fma t (/ (- y z) a) x)
(if (<= z 1.15e-48) (fma (/ (- t x) a) y x) (fma (/ (- x t) z) y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.9e+163) {
tmp = t - (((a - y) / z) * x);
} else if (z <= -3.1e-150) {
tmp = fma(t, ((y - z) / a), x);
} else if (z <= 1.15e-48) {
tmp = fma(((t - x) / a), y, x);
} else {
tmp = fma(((x - t) / z), y, t);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.9e+163) tmp = Float64(t - Float64(Float64(Float64(a - y) / z) * x)); elseif (z <= -3.1e-150) tmp = fma(t, Float64(Float64(y - z) / a), x); elseif (z <= 1.15e-48) tmp = fma(Float64(Float64(t - x) / a), y, x); else tmp = fma(Float64(Float64(x - t) / z), y, t); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.9e+163], N[(t - N[(N[(N[(a - y), $MachinePrecision] / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-150], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.15e-48], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision] * y + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+163}:\\
\;\;\;\;t - \frac{a - y}{z} \cdot x\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-150}:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{y - z}{a}, x\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-48}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - t}{z}, y, t\right)\\
\end{array}
\end{array}
if z < -4.9e163Initial program 30.9%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6484.6
Applied rewrites84.6%
Taylor expanded in x around inf
Applied rewrites81.5%
if -4.9e163 < z < -3.09999999999999998e-150Initial program 74.7%
Taylor expanded in t around inf
Applied rewrites78.0%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6452.7
Applied rewrites52.7%
Taylor expanded in x around 0
Applied rewrites47.0%
if -3.09999999999999998e-150 < z < 1.15e-48Initial program 91.4%
Taylor expanded in t around inf
Applied rewrites85.2%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6485.1
Applied rewrites85.1%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lift-/.f64N/A
lift--.f6479.9
Applied rewrites79.9%
if 1.15e-48 < z Initial program 49.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6470.6
Applied rewrites70.6%
Taylor expanded in a around 0
associate-/l*N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-outN/A
associate-/l*N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites63.6%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4.9e+163)
(fma (/ (- t x) z) a t)
(if (<= z -3.1e-150)
(fma t (/ (- y z) a) x)
(if (<= z 1.15e-48) (fma (/ (- t x) a) y x) (fma (/ (- x t) z) y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.9e+163) {
tmp = fma(((t - x) / z), a, t);
} else if (z <= -3.1e-150) {
tmp = fma(t, ((y - z) / a), x);
} else if (z <= 1.15e-48) {
tmp = fma(((t - x) / a), y, x);
} else {
tmp = fma(((x - t) / z), y, t);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.9e+163) tmp = fma(Float64(Float64(t - x) / z), a, t); elseif (z <= -3.1e-150) tmp = fma(t, Float64(Float64(y - z) / a), x); elseif (z <= 1.15e-48) tmp = fma(Float64(Float64(t - x) / a), y, x); else tmp = fma(Float64(Float64(x - t) / z), y, t); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.9e+163], N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * a + t), $MachinePrecision], If[LessEqual[z, -3.1e-150], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 1.15e-48], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision] * y + t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+163}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{z}, a, t\right)\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-150}:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{y - z}{a}, x\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-48}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - t}{z}, y, t\right)\\
\end{array}
\end{array}
if z < -4.9e163Initial program 30.9%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6484.6
Applied rewrites84.6%
Taylor expanded in y around 0
Applied rewrites64.5%
if -4.9e163 < z < -3.09999999999999998e-150Initial program 74.7%
Taylor expanded in t around inf
Applied rewrites78.0%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6452.7
Applied rewrites52.7%
Taylor expanded in x around 0
Applied rewrites47.0%
if -3.09999999999999998e-150 < z < 1.15e-48Initial program 91.4%
Taylor expanded in t around inf
Applied rewrites85.2%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6485.1
Applied rewrites85.1%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lift-/.f64N/A
lift--.f6479.9
Applied rewrites79.9%
if 1.15e-48 < z Initial program 49.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6470.6
Applied rewrites70.6%
Taylor expanded in a around 0
associate-/l*N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-outN/A
associate-/l*N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites63.6%
(FPCore (x y z t a) :precision binary64 (if (<= a -7.6e+92) (fma t (/ (- y z) a) x) (if (<= a 1.6e-97) (fma (/ (- x t) z) y t) (fma (- t x) (/ y a) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.6e+92) {
tmp = fma(t, ((y - z) / a), x);
} else if (a <= 1.6e-97) {
tmp = fma(((x - t) / z), y, t);
} else {
tmp = fma((t - x), (y / a), x);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.6e+92) tmp = fma(t, Float64(Float64(y - z) / a), x); elseif (a <= 1.6e-97) tmp = fma(Float64(Float64(x - t) / z), y, t); else tmp = fma(Float64(t - x), Float64(y / a), x); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.6e+92], N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[a, 1.6e-97], N[(N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision] * y + t), $MachinePrecision], N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.6 \cdot 10^{+92}:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{y - z}{a}, x\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-97}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - t}{z}, y, t\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y}{a}, x\right)\\
\end{array}
\end{array}
if a < -7.6000000000000001e92Initial program 68.3%
Taylor expanded in t around inf
Applied rewrites82.2%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6481.7
Applied rewrites81.7%
Taylor expanded in x around 0
Applied rewrites74.0%
if -7.6000000000000001e92 < a < 1.5999999999999999e-97Initial program 67.9%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6474.3
Applied rewrites74.3%
Taylor expanded in a around 0
associate-/l*N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-outN/A
associate-/l*N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites71.1%
if 1.5999999999999999e-97 < a Initial program 68.5%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6459.9
Applied rewrites59.9%
lift-fma.f64N/A
lift--.f64N/A
lift-/.f64N/A
associate-*l/N/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f6460.6
Applied rewrites60.6%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma t (/ (- y z) a) x))) (if (<= a -7.6e+92) t_1 (if (<= a 5.6e-46) (fma (/ (- x t) z) y t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(t, ((y - z) / a), x);
double tmp;
if (a <= -7.6e+92) {
tmp = t_1;
} else if (a <= 5.6e-46) {
tmp = fma(((x - t) / z), y, t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(t, Float64(Float64(y - z) / a), x) tmp = 0.0 if (a <= -7.6e+92) tmp = t_1; elseif (a <= 5.6e-46) tmp = fma(Float64(Float64(x - t) / z), y, t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -7.6e+92], t$95$1, If[LessEqual[a, 5.6e-46], N[(N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision] * y + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(t, \frac{y - z}{a}, x\right)\\
\mathbf{if}\;a \leq -7.6 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{-46}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - t}{z}, y, t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.6000000000000001e92 or 5.5999999999999997e-46 < a Initial program 68.6%
Taylor expanded in t around inf
Applied rewrites80.7%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6474.9
Applied rewrites74.9%
Taylor expanded in x around 0
Applied rewrites66.1%
if -7.6000000000000001e92 < a < 5.5999999999999997e-46Initial program 67.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6473.6
Applied rewrites73.6%
Taylor expanded in a around 0
associate-/l*N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-outN/A
associate-/l*N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites70.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ t a) y x))) (if (<= a -8.2e+93) t_1 (if (<= a 1.15e-45) (fma (/ (- x t) z) y t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((t / a), y, x);
double tmp;
if (a <= -8.2e+93) {
tmp = t_1;
} else if (a <= 1.15e-45) {
tmp = fma(((x - t) / z), y, t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(t / a), y, x) tmp = 0.0 if (a <= -8.2e+93) tmp = t_1; elseif (a <= 1.15e-45) tmp = fma(Float64(Float64(x - t) / z), y, t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[a, -8.2e+93], t$95$1, If[LessEqual[a, 1.15e-45], N[(N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision] * y + t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{if}\;a \leq -8.2 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-45}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - t}{z}, y, t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -8.2000000000000002e93 or 1.14999999999999996e-45 < a Initial program 68.6%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6466.6
Applied rewrites66.6%
Taylor expanded in x around 0
Applied rewrites58.3%
if -8.2000000000000002e93 < a < 1.14999999999999996e-45Initial program 67.8%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6473.5
Applied rewrites73.5%
Taylor expanded in a around 0
associate-/l*N/A
fp-cancel-sub-sign-invN/A
distribute-lft-neg-outN/A
associate-/l*N/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
associate-/l*N/A
*-commutativeN/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites70.0%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ t a) y x))) (if (<= a -7.6e+92) t_1 (if (<= a 3.1e-60) (- t (* (/ (- y) z) x)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((t / a), y, x);
double tmp;
if (a <= -7.6e+92) {
tmp = t_1;
} else if (a <= 3.1e-60) {
tmp = t - ((-y / z) * x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(t / a), y, x) tmp = 0.0 if (a <= -7.6e+92) tmp = t_1; elseif (a <= 3.1e-60) tmp = Float64(t - Float64(Float64(Float64(-y) / z) * x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[a, -7.6e+92], t$95$1, If[LessEqual[a, 3.1e-60], N[(t - N[(N[((-y) / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{if}\;a \leq -7.6 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-60}:\\
\;\;\;\;t - \frac{-y}{z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -7.6000000000000001e92 or 3.09999999999999988e-60 < a Initial program 68.4%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6465.8
Applied rewrites65.8%
Taylor expanded in x around 0
Applied rewrites57.5%
if -7.6000000000000001e92 < a < 3.09999999999999988e-60Initial program 67.9%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6473.8
Applied rewrites73.8%
Taylor expanded in x around inf
Applied rewrites62.6%
Taylor expanded in y around inf
mul-1-negN/A
lower-neg.f6459.4
Applied rewrites59.4%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (- t (* (/ a z) x)))) (if (<= z -4.9e+163) t_1 (if (<= z 1.25e+105) (fma (/ t a) y x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((a / z) * x);
double tmp;
if (z <= -4.9e+163) {
tmp = t_1;
} else if (z <= 1.25e+105) {
tmp = fma((t / a), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(a / z) * x)) tmp = 0.0 if (z <= -4.9e+163) tmp = t_1; elseif (z <= 1.25e+105) tmp = fma(Float64(t / a), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(a / z), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.9e+163], t$95$1, If[LessEqual[z, 1.25e+105], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{a}{z} \cdot x\\
\mathbf{if}\;z \leq -4.9 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{+105}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.9e163 or 1.25000000000000011e105 < z Initial program 31.9%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6482.3
Applied rewrites82.3%
Taylor expanded in x around inf
Applied rewrites78.0%
Taylor expanded in y around 0
Applied rewrites62.1%
if -4.9e163 < z < 1.25000000000000011e105Initial program 82.2%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6461.3
Applied rewrites61.3%
Taylor expanded in x around 0
Applied rewrites51.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.9e+163) t (if (<= z 1.25e+105) (fma (/ t a) y x) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.9e+163) {
tmp = t;
} else if (z <= 1.25e+105) {
tmp = fma((t / a), y, x);
} else {
tmp = t;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.9e+163) tmp = t; elseif (z <= 1.25e+105) tmp = fma(Float64(t / a), y, x); else tmp = t; end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.9e+163], t, If[LessEqual[z, 1.25e+105], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+163}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{+105}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.9e163 or 1.25000000000000011e105 < z Initial program 31.9%
Taylor expanded in z around inf
Applied rewrites53.5%
if -4.9e163 < z < 1.25000000000000011e105Initial program 82.2%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lift--.f6461.3
Applied rewrites61.3%
Taylor expanded in x around 0
Applied rewrites51.1%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.25e+22) (fma (/ z a) x x) (if (<= a 7.2e-47) (fma (/ t z) a t) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.25e+22) {
tmp = fma((z / a), x, x);
} else if (a <= 7.2e-47) {
tmp = fma((t / z), a, t);
} else {
tmp = x;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.25e+22) tmp = fma(Float64(z / a), x, x); elseif (a <= 7.2e-47) tmp = fma(Float64(t / z), a, t); else tmp = x; end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.25e+22], N[(N[(z / a), $MachinePrecision] * x + x), $MachinePrecision], If[LessEqual[a, 7.2e-47], N[(N[(t / z), $MachinePrecision] * a + t), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.25 \cdot 10^{+22}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{a}, x, x\right)\\
\mathbf{elif}\;a \leq 7.2 \cdot 10^{-47}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{z}, a, t\right)\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.2499999999999999e22Initial program 69.3%
Taylor expanded in t around inf
Applied rewrites81.7%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6476.9
Applied rewrites76.9%
Taylor expanded in y around 0
associate-/l*N/A
associate-*r*N/A
mul-1-negN/A
fp-cancel-sub-signN/A
associate-/l*N/A
lower--.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-/.f64N/A
lift--.f6452.5
Applied rewrites52.5%
Taylor expanded in x around inf
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-/.f6445.4
Applied rewrites45.4%
if -3.2499999999999999e22 < a < 7.19999999999999982e-47Initial program 67.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
fp-cancel-sign-sub-invN/A
metadata-evalN/A
*-lft-identityN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lift--.f64N/A
lower--.f6477.2
Applied rewrites77.2%
Taylor expanded in y around 0
Applied rewrites42.0%
Taylor expanded in x around 0
Applied rewrites37.3%
if 7.19999999999999982e-47 < a Initial program 68.7%
Taylor expanded in a around inf
Applied rewrites38.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.9e+163) t (if (<= z 8.6e+74) (fma (/ z a) x x) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.9e+163) {
tmp = t;
} else if (z <= 8.6e+74) {
tmp = fma((z / a), x, x);
} else {
tmp = t;
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.9e+163) tmp = t; elseif (z <= 8.6e+74) tmp = fma(Float64(z / a), x, x); else tmp = t; end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.9e+163], t, If[LessEqual[z, 8.6e+74], N[(N[(z / a), $MachinePrecision] * x + x), $MachinePrecision], t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+163}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+74}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{a}, x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.9e163 or 8.60000000000000001e74 < z Initial program 34.1%
Taylor expanded in z around inf
Applied rewrites52.0%
if -4.9e163 < z < 8.60000000000000001e74Initial program 83.0%
Taylor expanded in t around inf
Applied rewrites81.6%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lift--.f64N/A
lower-/.f64N/A
lift--.f6468.4
Applied rewrites68.4%
Taylor expanded in y around 0
associate-/l*N/A
associate-*r*N/A
mul-1-negN/A
fp-cancel-sub-signN/A
associate-/l*N/A
lower--.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-/.f64N/A
lift--.f6439.9
Applied rewrites39.9%
Taylor expanded in x around inf
fp-cancel-sub-sign-invN/A
metadata-evalN/A
*-lft-identityN/A
+-commutativeN/A
distribute-rgt-inN/A
*-lft-identityN/A
lower-fma.f64N/A
lower-/.f6432.6
Applied rewrites32.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.9e+163) t (if (<= z 8.6e+74) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.9e+163) {
tmp = t;
} else if (z <= 8.6e+74) {
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 (z <= (-4.9d+163)) then
tmp = t
else if (z <= 8.6d+74) 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 (z <= -4.9e+163) {
tmp = t;
} else if (z <= 8.6e+74) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.9e+163: tmp = t elif z <= 8.6e+74: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.9e+163) tmp = t; elseif (z <= 8.6e+74) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.9e+163) tmp = t; elseif (z <= 8.6e+74) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.9e+163], t, If[LessEqual[z, 8.6e+74], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.9 \cdot 10^{+163}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+74}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.9e163 or 8.60000000000000001e74 < z Initial program 34.1%
Taylor expanded in z around inf
Applied rewrites52.0%
if -4.9e163 < z < 8.60000000000000001e74Initial program 83.0%
Taylor expanded in a around inf
Applied rewrites31.4%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
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 = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 68.1%
Taylor expanded in z around inf
Applied rewrites25.2%
herbie shell --seed 2025130
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
(+ x (/ (* (- y z) (- t x)) (- a z))))