
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -5.8e+66)
(*
(fma
(- j)
y
(fma
(fma a (- t) (* y z))
(/ x i)
(fma c (/ (fma b (- z) (* j t)) i) (* b a))))
i)
(if (<= i 6.5e-83)
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y))))
(*
(fma
(- j)
y
(+
(/ (fma (fma (- t) a (* z y)) x (* (fma (- z) b (* j t)) c)) i)
(* b a)))
i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -5.8e+66) {
tmp = fma(-j, y, fma(fma(a, -t, (y * z)), (x / i), fma(c, (fma(b, -z, (j * t)) / i), (b * a)))) * i;
} else if (i <= 6.5e-83) {
tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
} else {
tmp = fma(-j, y, ((fma(fma(-t, a, (z * y)), x, (fma(-z, b, (j * t)) * c)) / i) + (b * a))) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -5.8e+66) tmp = Float64(fma(Float64(-j), y, fma(fma(a, Float64(-t), Float64(y * z)), Float64(x / i), fma(c, Float64(fma(b, Float64(-z), Float64(j * t)) / i), Float64(b * a)))) * i); elseif (i <= 6.5e-83) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); else tmp = Float64(fma(Float64(-j), y, Float64(Float64(fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-z), b, Float64(j * t)) * c)) / i) + Float64(b * a))) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -5.8e+66], N[(N[((-j) * y + N[(N[(a * (-t) + N[(y * z), $MachinePrecision]), $MachinePrecision] * N[(x / i), $MachinePrecision] + N[(c * N[(N[(b * (-z) + N[(j * t), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision] + N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 6.5e-83], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-j) * y + N[(N[(N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision] + N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.8 \cdot 10^{+66}:\\
\;\;\;\;\mathsf{fma}\left(-j, y, \mathsf{fma}\left(\mathsf{fma}\left(a, -t, y \cdot z\right), \frac{x}{i}, \mathsf{fma}\left(c, \frac{\mathsf{fma}\left(b, -z, j \cdot t\right)}{i}, b \cdot a\right)\right)\right) \cdot i\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{-83}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-j, y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\right)}{i} + b \cdot a\right) \cdot i\\
\end{array}
\end{array}
if i < -5.79999999999999972e66Initial program 65.1%
Taylor expanded in i around inf
Applied rewrites86.2%
Applied rewrites94.0%
if -5.79999999999999972e66 < i < 6.5e-83Initial program 89.5%
if 6.5e-83 < i Initial program 67.3%
Taylor expanded in i around inf
Applied rewrites87.3%
Final simplification89.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y))))))
(if (<= t_1 2e+290)
t_1
(if (<= t_1 INFINITY)
(*
(fma
(- j)
y
(+
(/ (fma (fma (- t) a (* z y)) x (* (fma (- z) b (* j t)) c)) i)
(* b a)))
i)
(* (fma (- a) t (fma (fma (- j) y (* b a)) (/ i x) (* z y))) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
double tmp;
if (t_1 <= 2e+290) {
tmp = t_1;
} else if (t_1 <= ((double) INFINITY)) {
tmp = fma(-j, y, ((fma(fma(-t, a, (z * y)), x, (fma(-z, b, (j * t)) * c)) / i) + (b * a))) * i;
} else {
tmp = fma(-a, t, fma(fma(-j, y, (b * a)), (i / x), (z * y))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) tmp = 0.0 if (t_1 <= 2e+290) tmp = t_1; elseif (t_1 <= Inf) tmp = Float64(fma(Float64(-j), y, Float64(Float64(fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-z), b, Float64(j * t)) * c)) / i) + Float64(b * a))) * i); else tmp = Float64(fma(Float64(-a), t, fma(fma(Float64(-j), y, Float64(b * a)), Float64(i / x), Float64(z * y))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e+290], t$95$1, If[LessEqual[t$95$1, Infinity], N[(N[((-j) * y + N[(N[(N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision] + N[(b * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], N[(N[((-a) * t + N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(i / x), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;t\_1 \leq 2 \cdot 10^{+290}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(-j, y, \frac{\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\right)}{i} + b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), \frac{i}{x}, z \cdot y\right)\right) \cdot x\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < 2.00000000000000012e290Initial program 94.2%
if 2.00000000000000012e290 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 84.1%
Taylor expanded in i around inf
Applied rewrites91.0%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around 0
Applied rewrites52.9%
Taylor expanded in b around inf
Applied rewrites29.0%
Taylor expanded in x around inf
Applied rewrites64.0%
Final simplification89.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(* j (- (* c t) (* i y))))))
(if (<= t_1 INFINITY)
t_1
(* (fma (- a) t (fma (fma (- j) y (* b a)) (/ i x) (* z y))) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(-a, t, fma(fma(-j, y, (b * a)), (i / x), (z * y))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(Float64(-a), t, fma(fma(Float64(-j), y, Float64(b * a)), Float64(i / x), Float64(z * y))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-a) * t + N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(i / x), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), \frac{i}{x}, z \cdot y\right)\right) \cdot x\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in c around 0
Applied rewrites52.9%
Taylor expanded in b around inf
Applied rewrites29.0%
Taylor expanded in x around inf
Applied rewrites64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- t) a (* z y))))
(if (<= x -3.7e+149)
(fma t_1 x (* (fma (- z) b (* j t)) c))
(if (<= x -7.4e-12)
(* (fma (- a) t (fma (fma (- j) y (* b a)) (/ i x) (* z y))) x)
(if (or (<= x -8.8e-144) (not (<= x 2.35e+18)))
(+ (fma t_1 x (* (* i b) a)) (* j (- (* c t) (* i y))))
(fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y));
double tmp;
if (x <= -3.7e+149) {
tmp = fma(t_1, x, (fma(-z, b, (j * t)) * c));
} else if (x <= -7.4e-12) {
tmp = fma(-a, t, fma(fma(-j, y, (b * a)), (i / x), (z * y))) * x;
} else if ((x <= -8.8e-144) || !(x <= 2.35e+18)) {
tmp = fma(t_1, x, ((i * b) * a)) + (j * ((c * t) - (i * y)));
} else {
tmp = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-t), a, Float64(z * y)) tmp = 0.0 if (x <= -3.7e+149) tmp = fma(t_1, x, Float64(fma(Float64(-z), b, Float64(j * t)) * c)); elseif (x <= -7.4e-12) tmp = Float64(fma(Float64(-a), t, fma(fma(Float64(-j), y, Float64(b * a)), Float64(i / x), Float64(z * y))) * x); elseif ((x <= -8.8e-144) || !(x <= 2.35e+18)) tmp = Float64(fma(t_1, x, Float64(Float64(i * b) * a)) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); else tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+149], N[(t$95$1 * x + N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.4e-12], N[(N[((-a) * t + N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(i / x), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[Or[LessEqual[x, -8.8e-144], N[Not[LessEqual[x, 2.35e+18]], $MachinePrecision]], N[(N[(t$95$1 * x + N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+149}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, x, \mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\right)\\
\mathbf{elif}\;x \leq -7.4 \cdot 10^{-12}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), \frac{i}{x}, z \cdot y\right)\right) \cdot x\\
\mathbf{elif}\;x \leq -8.8 \cdot 10^{-144} \lor \neg \left(x \leq 2.35 \cdot 10^{+18}\right):\\
\;\;\;\;\mathsf{fma}\left(t\_1, x, \left(i \cdot b\right) \cdot a\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -3.69999999999999978e149Initial program 81.6%
Taylor expanded in i around 0
Applied rewrites90.8%
if -3.69999999999999978e149 < x < -7.39999999999999997e-12Initial program 59.3%
Taylor expanded in c around 0
Applied rewrites79.6%
Taylor expanded in b around inf
Applied rewrites28.9%
Taylor expanded in x around inf
Applied rewrites85.6%
if -7.39999999999999997e-12 < x < -8.80000000000000025e-144 or 2.35e18 < x Initial program 80.3%
Taylor expanded in c around 0
Applied rewrites83.5%
if -8.80000000000000025e-144 < x < 2.35e18Initial program 82.1%
Taylor expanded in x around 0
Applied rewrites86.8%
Final simplification86.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- t) a (* z y)) x (* (fma (- z) b (* j t)) c))))
(if (<= x -3.7e+149)
t_1
(if (<= x -4.4e-52)
(* (fma (- a) t (fma (fma (- j) y (* b a)) (/ i x) (* z y))) x)
(if (<= x -5.7e-142)
(+ (- (* x (- (* y z) (* t a))) (* (* c b) z)) (* (* j t) c))
(if (<= x 4.8e+45)
(fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(fma(-t, a, (z * y)), x, (fma(-z, b, (j * t)) * c));
double tmp;
if (x <= -3.7e+149) {
tmp = t_1;
} else if (x <= -4.4e-52) {
tmp = fma(-a, t, fma(fma(-j, y, (b * a)), (i / x), (z * y))) * x;
} else if (x <= -5.7e-142) {
tmp = ((x * ((y * z) - (t * a))) - ((c * b) * z)) + ((j * t) * c);
} else if (x <= 4.8e+45) {
tmp = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-z), b, Float64(j * t)) * c)) tmp = 0.0 if (x <= -3.7e+149) tmp = t_1; elseif (x <= -4.4e-52) tmp = Float64(fma(Float64(-a), t, fma(fma(Float64(-j), y, Float64(b * a)), Float64(i / x), Float64(z * y))) * x); elseif (x <= -5.7e-142) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(c * b) * z)) + Float64(Float64(j * t) * c)); elseif (x <= 4.8e+45) tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+149], t$95$1, If[LessEqual[x, -4.4e-52], N[(N[((-a) * t + N[(N[((-j) * y + N[(b * a), $MachinePrecision]), $MachinePrecision] * N[(i / x), $MachinePrecision] + N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, -5.7e-142], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(c * b), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e+45], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-52}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot a\right), \frac{i}{x}, z \cdot y\right)\right) \cdot x\\
\mathbf{elif}\;x \leq -5.7 \cdot 10^{-142}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(c \cdot b\right) \cdot z\right) + \left(j \cdot t\right) \cdot c\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{+45}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.69999999999999978e149 or 4.79999999999999979e45 < x Initial program 81.0%
Taylor expanded in i around 0
Applied rewrites88.4%
if -3.69999999999999978e149 < x < -4.40000000000000018e-52Initial program 61.1%
Taylor expanded in c around 0
Applied rewrites71.4%
Taylor expanded in b around inf
Applied rewrites29.2%
Taylor expanded in x around inf
Applied rewrites75.7%
if -4.40000000000000018e-52 < x < -5.69999999999999995e-142Initial program 84.3%
Taylor expanded in y around 0
Applied rewrites79.1%
Taylor expanded in z around inf
Applied rewrites84.2%
if -5.69999999999999995e-142 < x < 4.79999999999999979e45Initial program 83.2%
Taylor expanded in x around 0
Applied rewrites85.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- t) a (* z y)))
(t_2 (fma t_1 x (* (fma (- z) b (* j t)) c))))
(if (<= x -1.75e+149)
t_2
(if (<= x -4.4e-52)
(fma t_1 x (* (fma (- y) j (* b a)) i))
(if (<= x -5.7e-142)
(+ (- (* x (- (* y z) (* t a))) (* (* c b) z)) (* (* j t) c))
(if (<= x 4.8e+45)
(fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y));
double t_2 = fma(t_1, x, (fma(-z, b, (j * t)) * c));
double tmp;
if (x <= -1.75e+149) {
tmp = t_2;
} else if (x <= -4.4e-52) {
tmp = fma(t_1, x, (fma(-y, j, (b * a)) * i));
} else if (x <= -5.7e-142) {
tmp = ((x * ((y * z) - (t * a))) - ((c * b) * z)) + ((j * t) * c);
} else if (x <= 4.8e+45) {
tmp = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-t), a, Float64(z * y)) t_2 = fma(t_1, x, Float64(fma(Float64(-z), b, Float64(j * t)) * c)) tmp = 0.0 if (x <= -1.75e+149) tmp = t_2; elseif (x <= -4.4e-52) tmp = fma(t_1, x, Float64(fma(Float64(-y), j, Float64(b * a)) * i)); elseif (x <= -5.7e-142) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(c * b) * z)) + Float64(Float64(j * t) * c)); elseif (x <= 4.8e+45) tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * x + N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+149], t$95$2, If[LessEqual[x, -4.4e-52], N[(t$95$1 * x + N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.7e-142], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(c * b), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e+45], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right)\\
t_2 := \mathsf{fma}\left(t\_1, x, \mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{+149}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-52}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, x, \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\right)\\
\mathbf{elif}\;x \leq -5.7 \cdot 10^{-142}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(c \cdot b\right) \cdot z\right) + \left(j \cdot t\right) \cdot c\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{+45}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.75000000000000006e149 or 4.79999999999999979e45 < x Initial program 81.0%
Taylor expanded in i around 0
Applied rewrites88.4%
if -1.75000000000000006e149 < x < -4.40000000000000018e-52Initial program 61.1%
Taylor expanded in c around 0
Applied rewrites71.4%
if -4.40000000000000018e-52 < x < -5.69999999999999995e-142Initial program 84.3%
Taylor expanded in y around 0
Applied rewrites79.1%
Taylor expanded in z around inf
Applied rewrites84.2%
if -5.69999999999999995e-142 < x < 4.79999999999999979e45Initial program 83.2%
Taylor expanded in x around 0
Applied rewrites85.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- t) a (* z y)))
(t_2 (fma t_1 x (* (fma (- z) b (* j t)) c))))
(if (<= x -1.75e+149)
t_2
(if (<= x -7e-27)
(fma t_1 x (* (fma (- y) j (* b a)) i))
(if (<= x 4.8e+45)
(fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b))
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y));
double t_2 = fma(t_1, x, (fma(-z, b, (j * t)) * c));
double tmp;
if (x <= -1.75e+149) {
tmp = t_2;
} else if (x <= -7e-27) {
tmp = fma(t_1, x, (fma(-y, j, (b * a)) * i));
} else if (x <= 4.8e+45) {
tmp = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-t), a, Float64(z * y)) t_2 = fma(t_1, x, Float64(fma(Float64(-z), b, Float64(j * t)) * c)) tmp = 0.0 if (x <= -1.75e+149) tmp = t_2; elseif (x <= -7e-27) tmp = fma(t_1, x, Float64(fma(Float64(-y), j, Float64(b * a)) * i)); elseif (x <= 4.8e+45) tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * x + N[(N[((-z) * b + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+149], t$95$2, If[LessEqual[x, -7e-27], N[(t$95$1 * x + N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e+45], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right)\\
t_2 := \mathsf{fma}\left(t\_1, x, \mathsf{fma}\left(-z, b, j \cdot t\right) \cdot c\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{+149}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-27}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, x, \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{+45}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.75000000000000006e149 or 4.79999999999999979e45 < x Initial program 81.0%
Taylor expanded in i around 0
Applied rewrites88.4%
if -1.75000000000000006e149 < x < -7.0000000000000003e-27Initial program 59.6%
Taylor expanded in c around 0
Applied rewrites77.4%
if -7.0000000000000003e-27 < x < 4.79999999999999979e45Initial program 82.2%
Taylor expanded in x around 0
Applied rewrites79.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- t) a (* z y)) x)))
(if (<= x -2.85e+84)
t_1
(if (<= x -1.9e-36)
(* (fma (- y) j (* b a)) i)
(if (<= x 1.75e-25)
(* (fma (- i) y (* c t)) j)
(if (<= x 2.7e+64) (* (* (fma (- c) (/ z a) i) a) b) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y)) * x;
double tmp;
if (x <= -2.85e+84) {
tmp = t_1;
} else if (x <= -1.9e-36) {
tmp = fma(-y, j, (b * a)) * i;
} else if (x <= 1.75e-25) {
tmp = fma(-i, y, (c * t)) * j;
} else if (x <= 2.7e+64) {
tmp = (fma(-c, (z / a), i) * a) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) tmp = 0.0 if (x <= -2.85e+84) tmp = t_1; elseif (x <= -1.9e-36) tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); elseif (x <= 1.75e-25) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); elseif (x <= 2.7e+64) tmp = Float64(Float64(fma(Float64(-c), Float64(z / a), i) * a) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -2.85e+84], t$95$1, If[LessEqual[x, -1.9e-36], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 1.75e-25], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 2.7e+64], N[(N[(N[((-c) * N[(z / a), $MachinePrecision] + i), $MachinePrecision] * a), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -2.85 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-36}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-25}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+64}:\\
\;\;\;\;\left(\mathsf{fma}\left(-c, \frac{z}{a}, i\right) \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.84999999999999985e84 or 2.7e64 < x Initial program 78.9%
Taylor expanded in x around inf
Applied rewrites74.5%
if -2.84999999999999985e84 < x < -1.89999999999999985e-36Initial program 54.6%
Taylor expanded in i around inf
Applied rewrites57.6%
if -1.89999999999999985e-36 < x < 1.7500000000000001e-25Initial program 81.5%
Taylor expanded in j around inf
Applied rewrites57.0%
if 1.7500000000000001e-25 < x < 2.7e64Initial program 99.9%
Taylor expanded in b around inf
Applied rewrites75.5%
Taylor expanded in a around inf
Applied rewrites75.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.02e-17)
(+ (* (* z x) y) (* j (- (* c t) (* i y))))
(if (<= j 4.9e+51)
(fma (fma (- t) a (* z y)) x (* (* i b) a))
(if (<= j 1.4e+148)
(fma (* y z) x (fma (* (- y) j) i (* (* b a) i)))
(* (* (fma c (/ t i) (- y)) i) j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.02e-17) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else if (j <= 4.9e+51) {
tmp = fma(fma(-t, a, (z * y)), x, ((i * b) * a));
} else if (j <= 1.4e+148) {
tmp = fma((y * z), x, fma((-y * j), i, ((b * a) * i)));
} else {
tmp = (fma(c, (t / i), -y) * i) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.02e-17) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (j <= 4.9e+51) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(Float64(i * b) * a)); elseif (j <= 1.4e+148) tmp = fma(Float64(y * z), x, fma(Float64(Float64(-y) * j), i, Float64(Float64(b * a) * i))); else tmp = Float64(Float64(fma(c, Float64(t / i), Float64(-y)) * i) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.02e-17], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.9e+51], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e+148], N[(N[(y * z), $MachinePrecision] * x + N[(N[((-y) * j), $MachinePrecision] * i + N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * N[(t / i), $MachinePrecision] + (-y)), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.02 \cdot 10^{-17}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \left(i \cdot b\right) \cdot a\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, \mathsf{fma}\left(\left(-y\right) \cdot j, i, \left(b \cdot a\right) \cdot i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, \frac{t}{i}, -y\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if j < -1.01999999999999997e-17Initial program 78.7%
Taylor expanded in y around inf
Applied rewrites76.5%
if -1.01999999999999997e-17 < j < 4.89999999999999983e51Initial program 75.3%
Taylor expanded in c around 0
Applied rewrites71.9%
Taylor expanded in y around 0
Applied rewrites66.0%
if 4.89999999999999983e51 < j < 1.3999999999999999e148Initial program 89.0%
Taylor expanded in c around 0
Applied rewrites78.5%
Taylor expanded in y around inf
Applied rewrites78.5%
Applied rewrites78.6%
if 1.3999999999999999e148 < j Initial program 80.6%
Taylor expanded in j around inf
Applied rewrites78.6%
Taylor expanded in i around inf
Applied rewrites81.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -7e-27) (not (<= x 6e-32))) (fma (fma (- t) a (* z y)) x (* (fma (- y) j (* b a)) i)) (fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -7e-27) || !(x <= 6e-32)) {
tmp = fma(fma(-t, a, (z * y)), x, (fma(-y, j, (b * a)) * i));
} else {
tmp = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -7e-27) || !(x <= 6e-32)) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-y), j, Float64(b * a)) * i)); else tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -7e-27], N[Not[LessEqual[x, 6e-32]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{-27} \lor \neg \left(x \leq 6 \cdot 10^{-32}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -7.0000000000000003e-27 or 6.0000000000000001e-32 < x Initial program 75.5%
Taylor expanded in c around 0
Applied rewrites76.4%
if -7.0000000000000003e-27 < x < 6.0000000000000001e-32Initial program 81.8%
Taylor expanded in x around 0
Applied rewrites81.2%
Final simplification78.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -7.2e+84) (not (<= x 8.5e+18))) (fma (fma (- t) a (* z y)) x (* (* i b) a)) (fma (fma (- i) y (* c t)) j (* (fma (- z) c (* i a)) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -7.2e+84) || !(x <= 8.5e+18)) {
tmp = fma(fma(-t, a, (z * y)), x, ((i * b) * a));
} else {
tmp = fma(fma(-i, y, (c * t)), j, (fma(-z, c, (i * a)) * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -7.2e+84) || !(x <= 8.5e+18)) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(Float64(i * b) * a)); else tmp = fma(fma(Float64(-i), y, Float64(c * t)), j, Float64(fma(Float64(-z), c, Float64(i * a)) * b)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -7.2e+84], N[Not[LessEqual[x, 8.5e+18]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{+84} \lor \neg \left(x \leq 8.5 \cdot 10^{+18}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \left(i \cdot b\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot t\right), j, \mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\right)\\
\end{array}
\end{array}
if x < -7.1999999999999999e84 or 8.5e18 < x Initial program 80.3%
Taylor expanded in c around 0
Applied rewrites78.7%
Taylor expanded in y around 0
Applied rewrites78.0%
if -7.1999999999999999e84 < x < 8.5e18Initial program 77.0%
Taylor expanded in x around 0
Applied rewrites77.2%
Final simplification77.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.02e-17)
(+ (* (* z x) y) (* j (- (* c t) (* i y))))
(if (<= j 4.9e+51)
(fma (fma (- t) a (* z y)) x (* (* i b) a))
(if (<= j 1.4e+148)
(fma (* y z) x (* (fma (- y) j (* b a)) i))
(* (* (fma c (/ t i) (- y)) i) j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.02e-17) {
tmp = ((z * x) * y) + (j * ((c * t) - (i * y)));
} else if (j <= 4.9e+51) {
tmp = fma(fma(-t, a, (z * y)), x, ((i * b) * a));
} else if (j <= 1.4e+148) {
tmp = fma((y * z), x, (fma(-y, j, (b * a)) * i));
} else {
tmp = (fma(c, (t / i), -y) * i) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.02e-17) tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))); elseif (j <= 4.9e+51) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(Float64(i * b) * a)); elseif (j <= 1.4e+148) tmp = fma(Float64(y * z), x, Float64(fma(Float64(-y), j, Float64(b * a)) * i)); else tmp = Float64(Float64(fma(c, Float64(t / i), Float64(-y)) * i) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.02e-17], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.9e+51], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e+148], N[(N[(y * z), $MachinePrecision] * x + N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * N[(t / i), $MachinePrecision] + (-y)), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.02 \cdot 10^{-17}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot t - i \cdot y\right)\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \left(i \cdot b\right) \cdot a\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, \frac{t}{i}, -y\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if j < -1.01999999999999997e-17Initial program 78.7%
Taylor expanded in y around inf
Applied rewrites76.5%
if -1.01999999999999997e-17 < j < 4.89999999999999983e51Initial program 75.3%
Taylor expanded in c around 0
Applied rewrites71.9%
Taylor expanded in y around 0
Applied rewrites66.0%
if 4.89999999999999983e51 < j < 1.3999999999999999e148Initial program 89.0%
Taylor expanded in c around 0
Applied rewrites78.5%
Taylor expanded in y around inf
Applied rewrites78.5%
if 1.3999999999999999e148 < j Initial program 80.6%
Taylor expanded in j around inf
Applied rewrites78.6%
Taylor expanded in i around inf
Applied rewrites81.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1e-14)
(* (fma (- i) y (* c t)) j)
(if (<= j 4.9e+51)
(fma (fma (- t) a (* z y)) x (* (* i b) a))
(if (<= j 1.4e+148)
(fma (* y z) x (* (fma (- y) j (* b a)) i))
(* (* (fma c (/ t i) (- y)) i) j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1e-14) {
tmp = fma(-i, y, (c * t)) * j;
} else if (j <= 4.9e+51) {
tmp = fma(fma(-t, a, (z * y)), x, ((i * b) * a));
} else if (j <= 1.4e+148) {
tmp = fma((y * z), x, (fma(-y, j, (b * a)) * i));
} else {
tmp = (fma(c, (t / i), -y) * i) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1e-14) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); elseif (j <= 4.9e+51) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(Float64(i * b) * a)); elseif (j <= 1.4e+148) tmp = fma(Float64(y * z), x, Float64(fma(Float64(-y), j, Float64(b * a)) * i)); else tmp = Float64(Float64(fma(c, Float64(t / i), Float64(-y)) * i) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1e-14], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 4.9e+51], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.4e+148], N[(N[(y * z), $MachinePrecision] * x + N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * N[(t / i), $MachinePrecision] + (-y)), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1 \cdot 10^{-14}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{elif}\;j \leq 4.9 \cdot 10^{+51}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \left(i \cdot b\right) \cdot a\right)\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, \frac{t}{i}, -y\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if j < -9.99999999999999999e-15Initial program 78.1%
Taylor expanded in j around inf
Applied rewrites67.7%
if -9.99999999999999999e-15 < j < 4.89999999999999983e51Initial program 75.7%
Taylor expanded in c around 0
Applied rewrites72.4%
Taylor expanded in y around 0
Applied rewrites65.8%
if 4.89999999999999983e51 < j < 1.3999999999999999e148Initial program 89.0%
Taylor expanded in c around 0
Applied rewrites78.5%
Taylor expanded in y around inf
Applied rewrites78.5%
if 1.3999999999999999e148 < j Initial program 80.6%
Taylor expanded in j around inf
Applied rewrites78.6%
Taylor expanded in i around inf
Applied rewrites81.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- t) a (* z y)) x)))
(if (<= x -2.85e+84)
t_1
(if (<= x -1.9e-36)
(* (fma (- y) j (* b a)) i)
(if (<= x 8.5e-27)
(* (fma (- i) y (* c t)) j)
(if (<= x 2.7e+64) (* (fma (- z) c (* i a)) b) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y)) * x;
double tmp;
if (x <= -2.85e+84) {
tmp = t_1;
} else if (x <= -1.9e-36) {
tmp = fma(-y, j, (b * a)) * i;
} else if (x <= 8.5e-27) {
tmp = fma(-i, y, (c * t)) * j;
} else if (x <= 2.7e+64) {
tmp = fma(-z, c, (i * a)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) tmp = 0.0 if (x <= -2.85e+84) tmp = t_1; elseif (x <= -1.9e-36) tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); elseif (x <= 8.5e-27) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); elseif (x <= 2.7e+64) tmp = Float64(fma(Float64(-z), c, Float64(i * a)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -2.85e+84], t$95$1, If[LessEqual[x, -1.9e-36], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 8.5e-27], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 2.7e+64], N[(N[((-z) * c + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -2.85 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-36}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-27}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+64}:\\
\;\;\;\;\mathsf{fma}\left(-z, c, i \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.84999999999999985e84 or 2.7e64 < x Initial program 78.9%
Taylor expanded in x around inf
Applied rewrites74.5%
if -2.84999999999999985e84 < x < -1.89999999999999985e-36Initial program 54.6%
Taylor expanded in i around inf
Applied rewrites57.6%
if -1.89999999999999985e-36 < x < 8.50000000000000033e-27Initial program 81.5%
Taylor expanded in j around inf
Applied rewrites57.0%
if 8.50000000000000033e-27 < x < 2.7e64Initial program 99.9%
Taylor expanded in b around inf
Applied rewrites75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- t) a (* z y)) x)))
(if (<= x -4.8e+106)
t_1
(if (<= x -3.2e+14)
(* (fma (- b) c (* y x)) z)
(if (<= x -5.7e-142)
(* (fma (- a) x (* j c)) t)
(if (<= x 6.5e+15) (* (fma (- i) y (* c t)) j) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y)) * x;
double tmp;
if (x <= -4.8e+106) {
tmp = t_1;
} else if (x <= -3.2e+14) {
tmp = fma(-b, c, (y * x)) * z;
} else if (x <= -5.7e-142) {
tmp = fma(-a, x, (j * c)) * t;
} else if (x <= 6.5e+15) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) tmp = 0.0 if (x <= -4.8e+106) tmp = t_1; elseif (x <= -3.2e+14) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); elseif (x <= -5.7e-142) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); elseif (x <= 6.5e+15) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -4.8e+106], t$95$1, If[LessEqual[x, -3.2e+14], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[x, -5.7e-142], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[x, 6.5e+15], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{elif}\;x \leq -5.7 \cdot 10^{-142}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.8000000000000001e106 or 6.5e15 < x Initial program 82.6%
Taylor expanded in x around inf
Applied rewrites71.8%
if -4.8000000000000001e106 < x < -3.2e14Initial program 53.2%
Taylor expanded in z around inf
Applied rewrites59.0%
if -3.2e14 < x < -5.69999999999999995e-142Initial program 70.6%
Taylor expanded in t around inf
Applied rewrites54.1%
if -5.69999999999999995e-142 < x < 6.5e15Initial program 81.8%
Taylor expanded in j around inf
Applied rewrites57.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -5.2e+73)
(* (fma (- i) y (* c t)) j)
(if (<= j 1.4e+148)
(fma (* y z) x (* (fma (- y) j (* b a)) i))
(* (* (fma c (/ t i) (- y)) i) j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -5.2e+73) {
tmp = fma(-i, y, (c * t)) * j;
} else if (j <= 1.4e+148) {
tmp = fma((y * z), x, (fma(-y, j, (b * a)) * i));
} else {
tmp = (fma(c, (t / i), -y) * i) * j;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -5.2e+73) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); elseif (j <= 1.4e+148) tmp = fma(Float64(y * z), x, Float64(fma(Float64(-y), j, Float64(b * a)) * i)); else tmp = Float64(Float64(fma(c, Float64(t / i), Float64(-y)) * i) * j); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -5.2e+73], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[j, 1.4e+148], N[(N[(y * z), $MachinePrecision] * x + N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * N[(t / i), $MachinePrecision] + (-y)), $MachinePrecision] * i), $MachinePrecision] * j), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -5.2 \cdot 10^{+73}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+148}:\\
\;\;\;\;\mathsf{fma}\left(y \cdot z, x, \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, \frac{t}{i}, -y\right) \cdot i\right) \cdot j\\
\end{array}
\end{array}
if j < -5.2000000000000001e73Initial program 76.1%
Taylor expanded in j around inf
Applied rewrites72.2%
if -5.2000000000000001e73 < j < 1.3999999999999999e148Initial program 78.7%
Taylor expanded in c around 0
Applied rewrites73.0%
Taylor expanded in y around inf
Applied rewrites59.5%
if 1.3999999999999999e148 < j Initial program 80.6%
Taylor expanded in j around inf
Applied rewrites78.6%
Taylor expanded in i around inf
Applied rewrites81.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- t) a (* z y)) x)))
(if (<= x -2.85e+84)
t_1
(if (<= x -1.9e-36)
(* (fma (- y) j (* b a)) i)
(if (<= x 6.5e+15) (* (fma (- i) y (* c t)) j) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y)) * x;
double tmp;
if (x <= -2.85e+84) {
tmp = t_1;
} else if (x <= -1.9e-36) {
tmp = fma(-y, j, (b * a)) * i;
} else if (x <= 6.5e+15) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) tmp = 0.0 if (x <= -2.85e+84) tmp = t_1; elseif (x <= -1.9e-36) tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); elseif (x <= 6.5e+15) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -2.85e+84], t$95$1, If[LessEqual[x, -1.9e-36], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[x, 6.5e+15], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -2.85 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-36}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.84999999999999985e84 or 6.5e15 < x Initial program 80.7%
Taylor expanded in x around inf
Applied rewrites71.3%
if -2.84999999999999985e84 < x < -1.89999999999999985e-36Initial program 54.6%
Taylor expanded in i around inf
Applied rewrites57.6%
if -1.89999999999999985e-36 < x < 6.5e15Initial program 81.9%
Taylor expanded in j around inf
Applied rewrites56.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- t) a (* z y)) x)))
(if (<= x -3.4e+84)
t_1
(if (<= x -3e-36)
(* (fma (- t) x (* i b)) a)
(if (<= x 6.5e+15) (* (fma (- i) y (* c t)) j) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-t, a, (z * y)) * x;
double tmp;
if (x <= -3.4e+84) {
tmp = t_1;
} else if (x <= -3e-36) {
tmp = fma(-t, x, (i * b)) * a;
} else if (x <= 6.5e+15) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-t), a, Float64(z * y)) * x) tmp = 0.0 if (x <= -3.4e+84) tmp = t_1; elseif (x <= -3e-36) tmp = Float64(fma(Float64(-t), x, Float64(i * b)) * a); elseif (x <= 6.5e+15) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -3.4e+84], t$95$1, If[LessEqual[x, -3e-36], N[(N[((-t) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 6.5e+15], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3 \cdot 10^{-36}:\\
\;\;\;\;\mathsf{fma}\left(-t, x, i \cdot b\right) \cdot a\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.3999999999999998e84 or 6.5e15 < x Initial program 80.7%
Taylor expanded in x around inf
Applied rewrites71.3%
if -3.3999999999999998e84 < x < -3.0000000000000002e-36Initial program 54.6%
Taylor expanded in a around inf
Applied rewrites55.4%
if -3.0000000000000002e-36 < x < 6.5e15Initial program 81.9%
Taylor expanded in j around inf
Applied rewrites56.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -9e+94)
t_1
(if (<= z -1.3e-56)
(* (fma (- a) x (* j c)) t)
(if (<= z 7.6e+56) (* (fma (- i) y (* c t)) j) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -9e+94) {
tmp = t_1;
} else if (z <= -1.3e-56) {
tmp = fma(-a, x, (j * c)) * t;
} else if (z <= 7.6e+56) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -9e+94) tmp = t_1; elseif (z <= -1.3e-56) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); elseif (z <= 7.6e+56) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -9e+94], t$95$1, If[LessEqual[z, -1.3e-56], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 7.6e+56], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -9 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-56}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{elif}\;z \leq 7.6 \cdot 10^{+56}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8.99999999999999944e94 or 7.59999999999999991e56 < z Initial program 70.3%
Taylor expanded in z around inf
Applied rewrites69.6%
if -8.99999999999999944e94 < z < -1.29999999999999998e-56Initial program 76.5%
Taylor expanded in t around inf
Applied rewrites57.7%
if -1.29999999999999998e-56 < z < 7.59999999999999991e56Initial program 85.0%
Taylor expanded in j around inf
Applied rewrites54.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -9e+94) (not (<= z 1.25e+44))) (* (fma (- b) c (* y x)) z) (* (fma (- a) x (* j c)) t)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -9e+94) || !(z <= 1.25e+44)) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = fma(-a, x, (j * c)) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -9e+94) || !(z <= 1.25e+44)) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -9e+94], N[Not[LessEqual[z, 1.25e+44]], $MachinePrecision]], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+94} \lor \neg \left(z \leq 1.25 \cdot 10^{+44}\right):\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\end{array}
\end{array}
if z < -8.99999999999999944e94 or 1.2499999999999999e44 < z Initial program 68.1%
Taylor expanded in z around inf
Applied rewrites68.5%
if -8.99999999999999944e94 < z < 1.2499999999999999e44Initial program 84.9%
Taylor expanded in t around inf
Applied rewrites47.6%
Final simplification55.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2.15e+107)
(* (* (- b) c) z)
(if (<= c 5e-17)
(* (* y z) x)
(if (<= c 7e+100) (* (* (- t) a) x) (* (* j t) c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.15e+107) {
tmp = (-b * c) * z;
} else if (c <= 5e-17) {
tmp = (y * z) * x;
} else if (c <= 7e+100) {
tmp = (-t * a) * x;
} else {
tmp = (j * t) * c;
}
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, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-2.15d+107)) then
tmp = (-b * c) * z
else if (c <= 5d-17) then
tmp = (y * z) * x
else if (c <= 7d+100) then
tmp = (-t * a) * x
else
tmp = (j * t) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -2.15e+107) {
tmp = (-b * c) * z;
} else if (c <= 5e-17) {
tmp = (y * z) * x;
} else if (c <= 7e+100) {
tmp = (-t * a) * x;
} else {
tmp = (j * t) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2.15e+107: tmp = (-b * c) * z elif c <= 5e-17: tmp = (y * z) * x elif c <= 7e+100: tmp = (-t * a) * x else: tmp = (j * t) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.15e+107) tmp = Float64(Float64(Float64(-b) * c) * z); elseif (c <= 5e-17) tmp = Float64(Float64(y * z) * x); elseif (c <= 7e+100) tmp = Float64(Float64(Float64(-t) * a) * x); else tmp = Float64(Float64(j * t) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2.15e+107) tmp = (-b * c) * z; elseif (c <= 5e-17) tmp = (y * z) * x; elseif (c <= 7e+100) tmp = (-t * a) * x; else tmp = (j * t) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.15e+107], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[c, 5e-17], N[(N[(y * z), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[c, 7e+100], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.15 \cdot 10^{+107}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-17}:\\
\;\;\;\;\left(y \cdot z\right) \cdot x\\
\mathbf{elif}\;c \leq 7 \cdot 10^{+100}:\\
\;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\end{array}
\end{array}
if c < -2.15e107Initial program 64.9%
Taylor expanded in b around inf
Applied rewrites51.4%
Taylor expanded in z around inf
Applied rewrites51.8%
if -2.15e107 < c < 4.9999999999999999e-17Initial program 85.4%
Taylor expanded in x around inf
Applied rewrites46.7%
Taylor expanded in y around inf
Applied rewrites31.8%
if 4.9999999999999999e-17 < c < 6.99999999999999953e100Initial program 73.3%
Taylor expanded in x around inf
Applied rewrites51.0%
Taylor expanded in y around 0
Applied rewrites37.0%
if 6.99999999999999953e100 < c Initial program 73.5%
Taylor expanded in t around inf
Applied rewrites59.6%
Taylor expanded in x around 0
Applied rewrites61.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -1.05e+69) (* (* (- i) j) y) (if (<= i 6.7e+156) (* (fma (- a) x (* j c)) t) (* (* b a) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.05e+69) {
tmp = (-i * j) * y;
} else if (i <= 6.7e+156) {
tmp = fma(-a, x, (j * c)) * t;
} else {
tmp = (b * a) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.05e+69) tmp = Float64(Float64(Float64(-i) * j) * y); elseif (i <= 6.7e+156) tmp = Float64(fma(Float64(-a), x, Float64(j * c)) * t); else tmp = Float64(Float64(b * a) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.05e+69], N[(N[((-i) * j), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[i, 6.7e+156], N[(N[((-a) * x + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.05 \cdot 10^{+69}:\\
\;\;\;\;\left(\left(-i\right) \cdot j\right) \cdot y\\
\mathbf{elif}\;i \leq 6.7 \cdot 10^{+156}:\\
\;\;\;\;\mathsf{fma}\left(-a, x, j \cdot c\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\end{array}
\end{array}
if i < -1.05000000000000008e69Initial program 66.3%
Taylor expanded in c around 0
Applied rewrites86.1%
Taylor expanded in j around inf
Applied rewrites51.1%
Applied rewrites55.0%
if -1.05000000000000008e69 < i < 6.7e156Initial program 83.7%
Taylor expanded in t around inf
Applied rewrites46.9%
if 6.7e156 < i Initial program 64.5%
Taylor expanded in c around 0
Applied rewrites79.8%
Taylor expanded in b around inf
Applied rewrites37.9%
Applied rewrites49.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z x) y)))
(if (<= x -3.5e+84)
t_1
(if (<= x -3.1e-36)
(* (* i b) a)
(if (<= x 3.6e+15) (* (* j t) c) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (x <= -3.5e+84) {
tmp = t_1;
} else if (x <= -3.1e-36) {
tmp = (i * b) * a;
} else if (x <= 3.6e+15) {
tmp = (j * t) * c;
} 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, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * x) * y
if (x <= (-3.5d+84)) then
tmp = t_1
else if (x <= (-3.1d-36)) then
tmp = (i * b) * a
else if (x <= 3.6d+15) then
tmp = (j * t) * c
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 b, double c, double i, double j) {
double t_1 = (z * x) * y;
double tmp;
if (x <= -3.5e+84) {
tmp = t_1;
} else if (x <= -3.1e-36) {
tmp = (i * b) * a;
} else if (x <= 3.6e+15) {
tmp = (j * t) * c;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * x) * y tmp = 0 if x <= -3.5e+84: tmp = t_1 elif x <= -3.1e-36: tmp = (i * b) * a elif x <= 3.6e+15: tmp = (j * t) * c else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * x) * y) tmp = 0.0 if (x <= -3.5e+84) tmp = t_1; elseif (x <= -3.1e-36) tmp = Float64(Float64(i * b) * a); elseif (x <= 3.6e+15) tmp = Float64(Float64(j * t) * c); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * x) * y; tmp = 0.0; if (x <= -3.5e+84) tmp = t_1; elseif (x <= -3.1e-36) tmp = (i * b) * a; elseif (x <= 3.6e+15) tmp = (j * t) * c; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[x, -3.5e+84], t$95$1, If[LessEqual[x, -3.1e-36], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 3.6e+15], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot x\right) \cdot y\\
\mathbf{if}\;x \leq -3.5 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-36}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+15}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -3.4999999999999999e84 or 3.6e15 < x Initial program 80.7%
Taylor expanded in y around inf
Applied rewrites52.8%
Taylor expanded in x around inf
Applied rewrites46.6%
if -3.4999999999999999e84 < x < -3.0999999999999999e-36Initial program 54.6%
Taylor expanded in c around 0
Applied rewrites61.5%
Taylor expanded in b around inf
Applied rewrites38.3%
if -3.0999999999999999e-36 < x < 3.6e15Initial program 81.9%
Taylor expanded in t around inf
Applied rewrites38.8%
Taylor expanded in x around 0
Applied rewrites36.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1e+70) (not (<= a 5.7e-61))) (* (* b a) i) (* (* j t) c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1e+70) || !(a <= 5.7e-61)) {
tmp = (b * a) * i;
} else {
tmp = (j * t) * c;
}
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, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1d+70)) .or. (.not. (a <= 5.7d-61))) then
tmp = (b * a) * i
else
tmp = (j * t) * c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1e+70) || !(a <= 5.7e-61)) {
tmp = (b * a) * i;
} else {
tmp = (j * t) * c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1e+70) or not (a <= 5.7e-61): tmp = (b * a) * i else: tmp = (j * t) * c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1e+70) || !(a <= 5.7e-61)) tmp = Float64(Float64(b * a) * i); else tmp = Float64(Float64(j * t) * c); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1e+70) || ~((a <= 5.7e-61))) tmp = (b * a) * i; else tmp = (j * t) * c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1e+70], N[Not[LessEqual[a, 5.7e-61]], $MachinePrecision]], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1 \cdot 10^{+70} \lor \neg \left(a \leq 5.7 \cdot 10^{-61}\right):\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\end{array}
\end{array}
if a < -1.00000000000000007e70 or 5.70000000000000005e-61 < a Initial program 72.3%
Taylor expanded in c around 0
Applied rewrites70.1%
Taylor expanded in b around inf
Applied rewrites38.1%
Applied rewrites39.7%
if -1.00000000000000007e70 < a < 5.70000000000000005e-61Initial program 84.2%
Taylor expanded in t around inf
Applied rewrites36.1%
Taylor expanded in x around 0
Applied rewrites31.4%
Final simplification35.4%
(FPCore (x y z t a b c i j) :precision binary64 (* (* j t) c))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (j * t) * c;
}
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, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (j * t) * c
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (j * t) * c;
}
def code(x, y, z, t, a, b, c, i, j): return (j * t) * c
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(j * t) * c) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (j * t) * c; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision]
\begin{array}{l}
\\
\left(j \cdot t\right) \cdot c
\end{array}
Initial program 78.4%
Taylor expanded in t around inf
Applied rewrites39.4%
Taylor expanded in x around 0
Applied rewrites26.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
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, b, c, i, j)
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), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2025026
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))