
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
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
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
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
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}
\end{array}
(FPCore (x y z t a b c)
:precision binary64
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))))));
}
real(8) function code(x, y, z, t, a, b, c)
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
code = x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + (5.0d0 / 6.0d0)))))))))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))))));
}
def code(x, y, z, t, a, b, c): return x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))))))
function code(x, y, z, t, a, b, c) return Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0)))))))))) end
function tmp = code(x, y, z, t, a, b, c) tmp = x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))))))); end
code[x_, y_, z_, t_, a_, b_, c_] := N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\right)}}
\end{array}
Initial program 97.6%
Final simplification97.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(*
y
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0))))))))))
(if (<= t_1 -1e+248)
(* (- y x) (/ x (* (+ x y) (- y x))))
(if (<= t_1 0.0)
1.0
(/ x (+ x (* y (fma a (* 2.0 (+ c (* a (* c c)))) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))));
double tmp;
if (t_1 <= -1e+248) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else if (t_1 <= 0.0) {
tmp = 1.0;
} else {
tmp = x / (x + (y * fma(a, (2.0 * (c + (a * (c * c)))), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0)))))))) tmp = 0.0 if (t_1 <= -1e+248) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); elseif (t_1 <= 0.0) tmp = 1.0; else tmp = Float64(x / Float64(x + Float64(y * fma(a, Float64(2.0 * Float64(c + Float64(a * Float64(c * c)))), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+248], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], 1.0, N[(x / N[(x + N[(y * N[(a * N[(2.0 * N[(c + N[(a * N[(c * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\right)}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+248}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(a, 2 \cdot \left(c + a \cdot \left(c \cdot c\right)\right), 1\right)}\\
\end{array}
\end{array}
if (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))) < -1.00000000000000005e248Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6460.2
Simplified60.2%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6415.6
Simplified15.6%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6457.2
Applied egg-rr57.2%
if -1.00000000000000005e248 < (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))) < -0.0Initial program 99.1%
Taylor expanded in x around inf
Simplified99.1%
*-inverses99.1
Applied egg-rr99.1%
if -0.0 < (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))) Initial program 94.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6474.0
Simplified74.0%
Taylor expanded in a around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6444.5
Simplified44.5%
Taylor expanded in a around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6455.6
Simplified55.6%
Final simplification73.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(*
y
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0))))))))))
(if (<= t_1 -1e+248)
(* (- y x) (/ x (* (+ x y) (- y x))))
(if (<= t_1 0.0)
1.0
(/ x (fma y (fma (* b -2.0) (+ a 0.8333333333333334) 1.0) x))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))));
double tmp;
if (t_1 <= -1e+248) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else if (t_1 <= 0.0) {
tmp = 1.0;
} else {
tmp = x / fma(y, fma((b * -2.0), (a + 0.8333333333333334), 1.0), x);
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0)))))))) tmp = 0.0 if (t_1 <= -1e+248) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); elseif (t_1 <= 0.0) tmp = 1.0; else tmp = Float64(x / fma(y, fma(Float64(b * -2.0), Float64(a + 0.8333333333333334), 1.0), x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+248], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], 1.0, N[(x / N[(y * N[(N[(b * -2.0), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\right)}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+248}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(b \cdot -2, a + 0.8333333333333334, 1\right), x\right)}\\
\end{array}
\end{array}
if (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))) < -1.00000000000000005e248Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6460.2
Simplified60.2%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6415.6
Simplified15.6%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6457.2
Applied egg-rr57.2%
if -1.00000000000000005e248 < (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))) < -0.0Initial program 99.1%
Taylor expanded in x around inf
Simplified99.1%
*-inverses99.1
Applied egg-rr99.1%
if -0.0 < (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))) Initial program 94.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6468.2
Simplified68.2%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6457.3
Simplified57.3%
Taylor expanded in b around 0
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6447.7
Simplified47.7%
Final simplification70.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))))
(if (<= t_1 0.0)
1.0
(if (<= t_1 2.0) (/ x (+ x y)) (* (- y x) (/ x (* (+ x y) (- y x))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))));
double tmp;
if (t_1 <= 0.0) {
tmp = 1.0;
} else if (t_1 <= 2.0) {
tmp = x / (x + y);
} else {
tmp = (y - x) * (x / ((x + y) * (y - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = exp((2.0d0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + (5.0d0 / 6.0d0)))))))
if (t_1 <= 0.0d0) then
tmp = 1.0d0
else if (t_1 <= 2.0d0) then
tmp = x / (x + y)
else
tmp = (y - x) * (x / ((x + y) * (y - x)))
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 t_1 = Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))));
double tmp;
if (t_1 <= 0.0) {
tmp = 1.0;
} else if (t_1 <= 2.0) {
tmp = x / (x + y);
} else {
tmp = (y - x) * (x / ((x + y) * (y - x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))))) tmp = 0 if t_1 <= 0.0: tmp = 1.0 elif t_1 <= 2.0: tmp = x / (x + y) else: tmp = (y - x) * (x / ((x + y) * (y - x))) return tmp
function code(x, y, z, t, a, b, c) t_1 = exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))))) tmp = 0.0 if (t_1 <= 0.0) tmp = 1.0; elseif (t_1 <= 2.0) tmp = Float64(x / Float64(x + y)); else tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))))); tmp = 0.0; if (t_1 <= 0.0) tmp = 1.0; elseif (t_1 <= 2.0) tmp = x / (x + y); else tmp = (y - x) * (x / ((x + y) * (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]}, If[LessEqual[t$95$1, 0.0], 1.0, If[LessEqual[t$95$1, 2.0], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\right)}\\
\mathbf{if}\;t\_1 \leq 0:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 2:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\end{array}
\end{array}
if (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))))) < 0.0Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if 0.0 < (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))))) < 2Initial program 99.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6490.5
Simplified90.5%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6490.5
Simplified90.5%
if 2 < (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))))) Initial program 96.4%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6463.3
Simplified63.3%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6413.9
Simplified13.9%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6443.4
Applied egg-rr43.4%
Final simplification68.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0))))))
(t_2 (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
(if (<= t_1 -5e+80)
1.0
(if (<= t_1 1e+281)
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(fma z (sqrt (/ 1.0 t)) (* 0.6666666666666666 (/ (- b c) t)))
(* (+ a 0.8333333333333334) (- c b))))))))
(/ x (+ x (* y (fma c (* 2.0 (fma c (* t_2 t_2) t_2)) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double t_2 = 0.8333333333333334 + (a - (0.6666666666666666 / t));
double tmp;
if (t_1 <= -5e+80) {
tmp = 1.0;
} else if (t_1 <= 1e+281) {
tmp = x / (x + (y * exp((2.0 * (fma(z, sqrt((1.0 / t)), (0.6666666666666666 * ((b - c) / t))) + ((a + 0.8333333333333334) * (c - b)))))));
} else {
tmp = x / (x + (y * fma(c, (2.0 * fma(c, (t_2 * t_2), t_2)), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) t_2 = Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))) tmp = 0.0 if (t_1 <= -5e+80) tmp = 1.0; elseif (t_1 <= 1e+281) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(fma(z, sqrt(Float64(1.0 / t)), Float64(0.6666666666666666 * Float64(Float64(b - c) / t))) + Float64(Float64(a + 0.8333333333333334) * Float64(c - b)))))))); else tmp = Float64(x / Float64(x + Float64(y * fma(c, Float64(2.0 * fma(c, Float64(t_2 * t_2), t_2)), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+80], 1.0, If[LessEqual[t$95$1, 1e+281], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(z * N[Sqrt[N[(1.0 / t), $MachinePrecision]], $MachinePrecision] + N[(0.6666666666666666 * N[(N[(b - c), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(c - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(c * N[(2.0 * N[(c * N[(t$95$2 * t$95$2), $MachinePrecision] + t$95$2), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
t_2 := 0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+80}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 10^{+281}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\mathsf{fma}\left(z, \sqrt{\frac{1}{t}}, 0.6666666666666666 \cdot \frac{b - c}{t}\right) + \left(a + 0.8333333333333334\right) \cdot \left(c - b\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(c, 2 \cdot \mathsf{fma}\left(c, t\_2 \cdot t\_2, t\_2\right), 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -4.99999999999999961e80Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -4.99999999999999961e80 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 1e281Initial program 99.8%
Taylor expanded in t around inf
--lowering--.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
sqrt-lowering-sqrt.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f64N/A
+-commutativeN/A
+-lowering-+.f6488.8
Simplified88.8%
if 1e281 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 93.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6469.3
Simplified69.3%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
Simplified89.9%
Final simplification92.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t))))
(t_2
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_2 -2e+17)
1.0
(if (<= t_2 1e+159)
(/
x
(+
x
(*
y
(exp
(*
2.0
(* c (+ a (+ 0.8333333333333334 (/ -0.6666666666666666 t)))))))))
(/ x (+ x (* y (fma c (* 2.0 (fma c (* t_1 t_1) t_1)) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 0.8333333333333334 + (a - (0.6666666666666666 / t));
double t_2 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_2 <= -2e+17) {
tmp = 1.0;
} else if (t_2 <= 1e+159) {
tmp = x / (x + (y * exp((2.0 * (c * (a + (0.8333333333333334 + (-0.6666666666666666 / t))))))));
} else {
tmp = x / (x + (y * fma(c, (2.0 * fma(c, (t_1 * t_1), t_1)), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))) t_2 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_2 <= -2e+17) tmp = 1.0; elseif (t_2 <= 1e+159) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(c * Float64(a + Float64(0.8333333333333334 + Float64(-0.6666666666666666 / t))))))))); else tmp = Float64(x / Float64(x + Float64(y * fma(c, Float64(2.0 * fma(c, Float64(t_1 * t_1), t_1)), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+17], 1.0, If[LessEqual[t$95$2, 1e+159], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(c * N[(a + N[(0.8333333333333334 + N[(-0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(c * N[(2.0 * N[(c * N[(t$95$1 * t$95$1), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\\
t_2 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_2 \leq 10^{+159}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(c \cdot \left(a + \left(0.8333333333333334 + \frac{-0.6666666666666666}{t}\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(c, 2 \cdot \mathsf{fma}\left(c, t\_1 \cdot t\_1, t\_1\right), 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 9.9999999999999993e158Initial program 99.6%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6481.6
Simplified81.6%
if 9.9999999999999993e158 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6464.6
Simplified64.6%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
Simplified84.9%
Final simplification90.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0))))))
(t_2 (* (+ a 0.8333333333333334) (+ a 0.8333333333333334))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 1e+207)
(/
x
(fma
y
(fma
c
(fma
c
(fma
2.0
t_2
(* (* (+ a 0.8333333333333334) t_2) (* c 1.3333333333333333)))
(fma 2.0 a 1.6666666666666667))
1.0)
x))
(if (<= t_1 4e+279)
(/
x
(+
x
(fma
(* 2.0 b)
(*
a
(fma
y
(/ (+ (/ 0.6666666666666666 t) -0.8333333333333334) a)
(- y)))
y)))
(/
x
(fma
y
(fma b (fma (* 2.0 b) t_2 (+ -1.6666666666666667 (* a -2.0))) 1.0)
x)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double t_2 = (a + 0.8333333333333334) * (a + 0.8333333333333334);
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 1e+207) {
tmp = x / fma(y, fma(c, fma(c, fma(2.0, t_2, (((a + 0.8333333333333334) * t_2) * (c * 1.3333333333333333))), fma(2.0, a, 1.6666666666666667)), 1.0), x);
} else if (t_1 <= 4e+279) {
tmp = x / (x + fma((2.0 * b), (a * fma(y, (((0.6666666666666666 / t) + -0.8333333333333334) / a), -y)), y));
} else {
tmp = x / fma(y, fma(b, fma((2.0 * b), t_2, (-1.6666666666666667 + (a * -2.0))), 1.0), x);
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) t_2 = Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 1e+207) tmp = Float64(x / fma(y, fma(c, fma(c, fma(2.0, t_2, Float64(Float64(Float64(a + 0.8333333333333334) * t_2) * Float64(c * 1.3333333333333333))), fma(2.0, a, 1.6666666666666667)), 1.0), x)); elseif (t_1 <= 4e+279) tmp = Float64(x / Float64(x + fma(Float64(2.0 * b), Float64(a * fma(y, Float64(Float64(Float64(0.6666666666666666 / t) + -0.8333333333333334) / a), Float64(-y))), y))); else tmp = Float64(x / fma(y, fma(b, fma(Float64(2.0 * b), t_2, Float64(-1.6666666666666667 + Float64(a * -2.0))), 1.0), x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 1e+207], N[(x / N[(y * N[(c * N[(c * N[(2.0 * t$95$2 + N[(N[(N[(a + 0.8333333333333334), $MachinePrecision] * t$95$2), $MachinePrecision] * N[(c * 1.3333333333333333), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(2.0 * a + 1.6666666666666667), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+279], N[(x / N[(x + N[(N[(2.0 * b), $MachinePrecision] * N[(a * N[(y * N[(N[(N[(0.6666666666666666 / t), $MachinePrecision] + -0.8333333333333334), $MachinePrecision] / a), $MachinePrecision] + (-y)), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(b * N[(N[(2.0 * b), $MachinePrecision] * t$95$2 + N[(-1.6666666666666667 + N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
t_2 := \left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 10^{+207}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(c, \mathsf{fma}\left(c, \mathsf{fma}\left(2, t\_2, \left(\left(a + 0.8333333333333334\right) \cdot t\_2\right) \cdot \left(c \cdot 1.3333333333333333\right)\right), \mathsf{fma}\left(2, a, 1.6666666666666667\right)\right), 1\right), x\right)}\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+279}:\\
\;\;\;\;\frac{x}{x + \mathsf{fma}\left(2 \cdot b, a \cdot \mathsf{fma}\left(y, \frac{\frac{0.6666666666666666}{t} + -0.8333333333333334}{a}, -y\right), y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(b, \mathsf{fma}\left(2 \cdot b, t\_2, -1.6666666666666667 + a \cdot -2\right), 1\right), x\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 1e207Initial program 99.7%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6476.3
Simplified76.3%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6468.7
Simplified68.7%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
Simplified65.7%
if 1e207 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 4.00000000000000023e279Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6472.9
Simplified72.9%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6458.1
Simplified58.1%
Taylor expanded in a around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-/l*N/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
mul-1-negN/A
neg-lowering-neg.f6473.3
Simplified73.3%
if 4.00000000000000023e279 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 93.9%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6464.2
Simplified64.2%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6452.4
Simplified52.4%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
distribute-lft-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f6472.6
Simplified72.6%
Final simplification81.7%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t))))
(t_2
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_2 -1e+63)
1.0
(if (<= t_2 1e+159)
(/ x (fma y (exp (* -2.0 (* b (+ a 0.8333333333333334)))) x))
(/ x (+ x (* y (fma c (* 2.0 (fma c (* t_1 t_1) t_1)) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = 0.8333333333333334 + (a - (0.6666666666666666 / t));
double t_2 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_2 <= -1e+63) {
tmp = 1.0;
} else if (t_2 <= 1e+159) {
tmp = x / fma(y, exp((-2.0 * (b * (a + 0.8333333333333334)))), x);
} else {
tmp = x / (x + (y * fma(c, (2.0 * fma(c, (t_1 * t_1), t_1)), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))) t_2 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_2 <= -1e+63) tmp = 1.0; elseif (t_2 <= 1e+159) tmp = Float64(x / fma(y, exp(Float64(-2.0 * Float64(b * Float64(a + 0.8333333333333334)))), x)); else tmp = Float64(x / Float64(x + Float64(y * fma(c, Float64(2.0 * fma(c, Float64(t_1 * t_1), t_1)), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+63], 1.0, If[LessEqual[t$95$2, 1e+159], N[(x / N[(y * N[Exp[N[(-2.0 * N[(b * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(c * N[(2.0 * N[(c * N[(t$95$1 * t$95$1), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\\
t_2 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+63}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_2 \leq 10^{+159}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, e^{-2 \cdot \left(b \cdot \left(a + 0.8333333333333334\right)\right)}, x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(c, 2 \cdot \mathsf{fma}\left(c, t\_1 \cdot t\_1, t\_1\right), 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -1.00000000000000006e63Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -1.00000000000000006e63 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 9.9999999999999993e158Initial program 99.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6476.4
Simplified76.4%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6476.4
Simplified76.4%
if 9.9999999999999993e158 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6464.6
Simplified64.6%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
Simplified84.9%
Final simplification88.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(/
x
(fma
y
(fma
c
(*
2.0
(fma
c
(* (+ a 0.8333333333333334) (+ a 0.8333333333333334))
(+ a 0.8333333333333334)))
1.0)
x)))
(t_2
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_2 -2e+17)
1.0
(if (<= t_2 0.1)
t_1
(if (<= t_2 2e+219) (* (- y x) (/ x (* (+ x y) (- y x)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / fma(y, fma(c, (2.0 * fma(c, ((a + 0.8333333333333334) * (a + 0.8333333333333334)), (a + 0.8333333333333334))), 1.0), x);
double t_2 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_2 <= -2e+17) {
tmp = 1.0;
} else if (t_2 <= 0.1) {
tmp = t_1;
} else if (t_2 <= 2e+219) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(x / fma(y, fma(c, Float64(2.0 * fma(c, Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)), Float64(a + 0.8333333333333334))), 1.0), x)) t_2 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_2 <= -2e+17) tmp = 1.0; elseif (t_2 <= 0.1) tmp = t_1; elseif (t_2 <= 2e+219) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(y * N[(c * N[(2.0 * N[(c * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+17], 1.0, If[LessEqual[t$95$2, 0.1], t$95$1, If[LessEqual[t$95$2, 2e+219], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(c, 2 \cdot \mathsf{fma}\left(c, \left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right), a + 0.8333333333333334\right), 1\right), x\right)}\\
t_2 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_2 \leq 0.1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+219}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 0.10000000000000001 or 1.99999999999999993e219 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6471.4
Simplified71.4%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6455.6
Simplified55.6%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
accelerator-lowering-fma.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f6472.0
Simplified72.0%
if 0.10000000000000001 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 1.99999999999999993e219Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6455.8
Simplified55.8%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6412.2
Simplified12.2%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6453.2
Applied egg-rr53.2%
Final simplification80.0%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 0.1)
(/ x (fma y (fma 2.0 (* c (+ a 0.8333333333333334)) 1.0) x))
(if (<= t_1 1.2e+219)
(* (- y x) (/ x (* (+ x y) (- y x))))
(/ x (+ x (* y (fma c (* 2.0 (+ a (* c (* a a)))) 1.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 0.1) {
tmp = x / fma(y, fma(2.0, (c * (a + 0.8333333333333334)), 1.0), x);
} else if (t_1 <= 1.2e+219) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else {
tmp = x / (x + (y * fma(c, (2.0 * (a + (c * (a * a)))), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 0.1) tmp = Float64(x / fma(y, fma(2.0, Float64(c * Float64(a + 0.8333333333333334)), 1.0), x)); elseif (t_1 <= 1.2e+219) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); else tmp = Float64(x / Float64(x + Float64(y * fma(c, Float64(2.0 * Float64(a + Float64(c * Float64(a * a)))), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 0.1], N[(x / N[(y * N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1.2e+219], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(c * N[(2.0 * N[(a + N[(c * N[(a * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 0.1:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(2, c \cdot \left(a + 0.8333333333333334\right), 1\right), x\right)}\\
\mathbf{elif}\;t\_1 \leq 1.2 \cdot 10^{+219}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(c, 2 \cdot \left(a + c \cdot \left(a \cdot a\right)\right), 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 0.10000000000000001Initial program 99.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6499.2
Simplified99.2%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6494.8
Simplified94.8%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6490.9
Simplified90.9%
if 0.10000000000000001 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 1.2e219Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6457.3
Simplified57.3%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6412.4
Simplified12.4%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6454.6
Applied egg-rr54.6%
if 1.2e219 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6466.9
Simplified66.9%
Taylor expanded in a around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6441.1
Simplified41.1%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6459.7
Simplified59.7%
Final simplification76.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 0.1)
(/ x (fma y (fma 2.0 (* c (+ a 0.8333333333333334)) 1.0) x))
(if (<= t_1 1.2e+219)
(* (- y x) (/ x (* (+ x y) (- y x))))
(/ x (/ (fma (+ x y) t (* 1.3333333333333333 (* y b))) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 0.1) {
tmp = x / fma(y, fma(2.0, (c * (a + 0.8333333333333334)), 1.0), x);
} else if (t_1 <= 1.2e+219) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else {
tmp = x / (fma((x + y), t, (1.3333333333333333 * (y * b))) / t);
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 0.1) tmp = Float64(x / fma(y, fma(2.0, Float64(c * Float64(a + 0.8333333333333334)), 1.0), x)); elseif (t_1 <= 1.2e+219) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); else tmp = Float64(x / Float64(fma(Float64(x + y), t, Float64(1.3333333333333333 * Float64(y * b))) / t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 0.1], N[(x / N[(y * N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1.2e+219], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(N[(x + y), $MachinePrecision] * t + N[(1.3333333333333333 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 0.1:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(2, c \cdot \left(a + 0.8333333333333334\right), 1\right), x\right)}\\
\mathbf{elif}\;t\_1 \leq 1.2 \cdot 10^{+219}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{\mathsf{fma}\left(x + y, t, 1.3333333333333333 \cdot \left(y \cdot b\right)\right)}{t}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 0.10000000000000001Initial program 99.2%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6499.2
Simplified99.2%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6494.8
Simplified94.8%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6490.9
Simplified90.9%
if 0.10000000000000001 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 1.2e219Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6457.3
Simplified57.3%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6412.4
Simplified12.4%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6454.6
Applied egg-rr54.6%
if 1.2e219 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6465.2
Simplified65.2%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6454.5
Simplified54.5%
Taylor expanded in t around 0
*-lowering-*.f64N/A
/-lowering-/.f6443.3
Simplified43.3%
Taylor expanded in t around 0
/-lowering-/.f64N/A
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6449.8
Simplified49.8%
Final simplification72.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (/ x (fma y (fma 2.0 (* c (+ a 0.8333333333333334)) 1.0) x)))
(t_2
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_2 -2e+17)
1.0
(if (<= t_2 0.1)
t_1
(if (<= t_2 5e+293) (* (- y x) (/ x (* (+ x y) (- y x)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = x / fma(y, fma(2.0, (c * (a + 0.8333333333333334)), 1.0), x);
double t_2 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_2 <= -2e+17) {
tmp = 1.0;
} else if (t_2 <= 0.1) {
tmp = t_1;
} else if (t_2 <= 5e+293) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(x / fma(y, fma(2.0, Float64(c * Float64(a + 0.8333333333333334)), 1.0), x)) t_2 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_2 <= -2e+17) tmp = 1.0; elseif (t_2 <= 0.1) tmp = t_1; elseif (t_2 <= 5e+293) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(x / N[(y * N[(2.0 * N[(c * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+17], 1.0, If[LessEqual[t$95$2, 0.1], t$95$1, If[LessEqual[t$95$2, 5e+293], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(2, c \cdot \left(a + 0.8333333333333334\right), 1\right), x\right)}\\
t_2 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_2 \leq 0.1:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+293}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 0.10000000000000001 or 5.00000000000000033e293 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 94.5%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6475.7
Simplified75.7%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6460.1
Simplified60.1%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6458.6
Simplified58.6%
if 0.10000000000000001 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 5.00000000000000033e293Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6461.6
Simplified61.6%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6415.1
Simplified15.1%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6448.8
Applied egg-rr48.8%
Final simplification71.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 0.1)
(/ x (+ x y))
(if (<= t_1 5e+293)
(* (- y x) (/ x (* (+ x y) (- y x))))
(/ x (+ x (* y (fma 2.0 (* a c) 1.0)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 0.1) {
tmp = x / (x + y);
} else if (t_1 <= 5e+293) {
tmp = (y - x) * (x / ((x + y) * (y - x)));
} else {
tmp = x / (x + (y * fma(2.0, (a * c), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 0.1) tmp = Float64(x / Float64(x + y)); elseif (t_1 <= 5e+293) tmp = Float64(Float64(y - x) * Float64(x / Float64(Float64(x + y) * Float64(y - x)))); else tmp = Float64(x / Float64(x + Float64(y * fma(2.0, Float64(a * c), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 0.1], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+293], N[(N[(y - x), $MachinePrecision] * N[(x / N[(N[(x + y), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(2.0 * N[(a * c), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 0.1:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+293}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{x}{\left(x + y\right) \cdot \left(y - x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(2, a \cdot c, 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 0.10000000000000001Initial program 99.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6490.5
Simplified90.5%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6490.5
Simplified90.5%
if 0.10000000000000001 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 5.00000000000000033e293Initial program 100.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6461.6
Simplified61.6%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6415.1
Simplified15.1%
flip-+N/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
difference-of-squaresN/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
--lowering--.f64N/A
--lowering--.f6448.8
Applied egg-rr48.8%
if 5.00000000000000033e293 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 93.3%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6469.9
Simplified69.9%
Taylor expanded in a around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6449.1
Simplified49.1%
Taylor expanded in a around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f6448.1
Simplified48.1%
Final simplification71.1%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0))))))
(t_2 (* (+ a 0.8333333333333334) (+ a 0.8333333333333334)))
(t_3 (+ 0.8333333333333334 (- a (/ 0.6666666666666666 t)))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 1e+159)
(/
x
(fma
y
(fma
b
(fma
b
(fma
2.0
t_2
(* (* b -1.3333333333333333) (* (+ a 0.8333333333333334) t_2)))
(+ -1.6666666666666667 (* a -2.0)))
1.0)
x))
(/ x (+ x (* y (fma c (* 2.0 (fma c (* t_3 t_3) t_3)) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double t_2 = (a + 0.8333333333333334) * (a + 0.8333333333333334);
double t_3 = 0.8333333333333334 + (a - (0.6666666666666666 / t));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 1e+159) {
tmp = x / fma(y, fma(b, fma(b, fma(2.0, t_2, ((b * -1.3333333333333333) * ((a + 0.8333333333333334) * t_2))), (-1.6666666666666667 + (a * -2.0))), 1.0), x);
} else {
tmp = x / (x + (y * fma(c, (2.0 * fma(c, (t_3 * t_3), t_3)), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) t_2 = Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)) t_3 = Float64(0.8333333333333334 + Float64(a - Float64(0.6666666666666666 / t))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 1e+159) tmp = Float64(x / fma(y, fma(b, fma(b, fma(2.0, t_2, Float64(Float64(b * -1.3333333333333333) * Float64(Float64(a + 0.8333333333333334) * t_2))), Float64(-1.6666666666666667 + Float64(a * -2.0))), 1.0), x)); else tmp = Float64(x / Float64(x + Float64(y * fma(c, Float64(2.0 * fma(c, Float64(t_3 * t_3), t_3)), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(0.8333333333333334 + N[(a - N[(0.6666666666666666 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 1e+159], N[(x / N[(y * N[(b * N[(b * N[(2.0 * t$95$2 + N[(N[(b * -1.3333333333333333), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.6666666666666667 + N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(c * N[(2.0 * N[(c * N[(t$95$3 * t$95$3), $MachinePrecision] + t$95$3), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
t_2 := \left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right)\\
t_3 := 0.8333333333333334 + \left(a - \frac{0.6666666666666666}{t}\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 10^{+159}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(b, \mathsf{fma}\left(b, \mathsf{fma}\left(2, t\_2, \left(b \cdot -1.3333333333333333\right) \cdot \left(\left(a + 0.8333333333333334\right) \cdot t\_2\right)\right), -1.6666666666666667 + a \cdot -2\right), 1\right), x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(c, 2 \cdot \mathsf{fma}\left(c, t\_3 \cdot t\_3, t\_3\right), 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 9.9999999999999993e158Initial program 99.6%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6474.5
Simplified74.5%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6474.5
Simplified74.5%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
Simplified71.9%
if 9.9999999999999993e158 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6464.6
Simplified64.6%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
Simplified84.9%
Final simplification88.6%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0))))))
(t_2 (* (+ a 0.8333333333333334) (+ a 0.8333333333333334))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 1e+281)
(/
x
(fma
y
(fma
b
(fma
b
(fma
2.0
t_2
(* (* b -1.3333333333333333) (* (+ a 0.8333333333333334) t_2)))
(+ -1.6666666666666667 (* a -2.0)))
1.0)
x))
(/
x
(fma y (fma c (* 2.0 (fma c t_2 (+ a 0.8333333333333334))) 1.0) x))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double t_2 = (a + 0.8333333333333334) * (a + 0.8333333333333334);
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 1e+281) {
tmp = x / fma(y, fma(b, fma(b, fma(2.0, t_2, ((b * -1.3333333333333333) * ((a + 0.8333333333333334) * t_2))), (-1.6666666666666667 + (a * -2.0))), 1.0), x);
} else {
tmp = x / fma(y, fma(c, (2.0 * fma(c, t_2, (a + 0.8333333333333334))), 1.0), x);
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) t_2 = Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 1e+281) tmp = Float64(x / fma(y, fma(b, fma(b, fma(2.0, t_2, Float64(Float64(b * -1.3333333333333333) * Float64(Float64(a + 0.8333333333333334) * t_2))), Float64(-1.6666666666666667 + Float64(a * -2.0))), 1.0), x)); else tmp = Float64(x / fma(y, fma(c, Float64(2.0 * fma(c, t_2, Float64(a + 0.8333333333333334))), 1.0), x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 1e+281], N[(x / N[(y * N[(b * N[(b * N[(2.0 * t$95$2 + N[(N[(b * -1.3333333333333333), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.6666666666666667 + N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(c * N[(2.0 * N[(c * t$95$2 + N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
t_2 := \left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 10^{+281}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(b, \mathsf{fma}\left(b, \mathsf{fma}\left(2, t\_2, \left(b \cdot -1.3333333333333333\right) \cdot \left(\left(a + 0.8333333333333334\right) \cdot t\_2\right)\right), -1.6666666666666667 + a \cdot -2\right), 1\right), x\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(c, 2 \cdot \mathsf{fma}\left(c, t\_2, a + 0.8333333333333334\right), 1\right), x\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 1e281Initial program 99.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6469.8
Simplified69.8%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6462.2
Simplified62.2%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
Simplified64.8%
if 1e281 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 93.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6469.3
Simplified69.3%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6452.4
Simplified52.4%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
accelerator-lowering-fma.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f6473.0
Simplified73.0%
Final simplification80.7%
(FPCore (x y z t a b c)
:precision binary64
(if (<=
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
0.0)
1.0
(/
x
(fma
y
(fma
b
(fma
(* 2.0 b)
(* (+ a 0.8333333333333334) (+ a 0.8333333333333334))
(+ -1.6666666666666667 (* a -2.0)))
1.0)
x))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if (exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))))) <= 0.0) {
tmp = 1.0;
} else {
tmp = x / fma(y, fma(b, fma((2.0 * b), ((a + 0.8333333333333334) * (a + 0.8333333333333334)), (-1.6666666666666667 + (a * -2.0))), 1.0), x);
}
return tmp;
}
function code(x, y, z, t, a, b, c) tmp = 0.0 if (exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))))) <= 0.0) tmp = 1.0; else tmp = Float64(x / fma(y, fma(b, fma(Float64(2.0 * b), Float64(Float64(a + 0.8333333333333334) * Float64(a + 0.8333333333333334)), Float64(-1.6666666666666667 + Float64(a * -2.0))), 1.0), x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision], 0.0], 1.0, N[(x / N[(y * N[(b * N[(N[(2.0 * b), $MachinePrecision] * N[(N[(a + 0.8333333333333334), $MachinePrecision] * N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision] + N[(-1.6666666666666667 + N[(a * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\right)} \leq 0:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \mathsf{fma}\left(b, \mathsf{fma}\left(2 \cdot b, \left(a + 0.8333333333333334\right) \cdot \left(a + 0.8333333333333334\right), -1.6666666666666667 + a \cdot -2\right), 1\right), x\right)}\\
\end{array}
\end{array}
if (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))))) < 0.0Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if 0.0 < (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))))) Initial program 96.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6466.4
Simplified66.4%
Taylor expanded in t around inf
+-commutativeN/A
accelerator-lowering-fma.f64N/A
exp-lowering-exp.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6456.6
Simplified56.6%
Taylor expanded in b around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
distribute-lft-inN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f6465.1
Simplified65.1%
Final simplification78.3%
(FPCore (x y z t a b c)
:precision binary64
(if (<=
(/
x
(+
x
(*
y
(exp
(*
2.0
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0))))))))))
4e-21)
(/ x y)
1.0))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))))))) <= 4e-21) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((x / (x + (y * exp((2.0d0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + (5.0d0 / 6.0d0)))))))))) <= 4d-21) then
tmp = x / y
else
tmp = 1.0d0
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 tmp;
if ((x / (x + (y * Math.exp((2.0 * (((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))))))) <= 4e-21) {
tmp = x / y;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (x / (x + (y * math.exp((2.0 * (((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))))))) <= 4e-21: tmp = x / y else: tmp = 1.0 return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0)))))))))) <= 4e-21) tmp = Float64(x / y); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((x / (x + (y * exp((2.0 * (((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))))))))) <= 4e-21) tmp = x / y; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 4e-21], N[(x / y), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\right)}} \leq 4 \cdot 10^{-21}:\\
\;\;\;\;\frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if (/.f64 x (+.f64 x (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))))) < 3.99999999999999963e-21Initial program 99.2%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6464.2
Simplified64.2%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6417.3
Simplified17.3%
Taylor expanded in x around 0
/-lowering-/.f6416.1
Simplified16.1%
if 3.99999999999999963e-21 < (/.f64 x (+.f64 x (*.f64 y (exp.f64 (*.f64 #s(literal 2 binary64) (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64))))))))))) Initial program 95.7%
Taylor expanded in x around inf
Simplified95.8%
*-inverses95.8
Applied egg-rr95.8%
Final simplification51.9%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 1e+281)
(/
x
(+
x
(fma
(* 2.0 b)
(* y (- (/ 0.6666666666666666 t) (+ a 0.8333333333333334)))
y)))
(/ x (+ x (* y (fma c (* 2.0 (+ a (* c (* a a)))) 1.0))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 1e+281) {
tmp = x / (x + fma((2.0 * b), (y * ((0.6666666666666666 / t) - (a + 0.8333333333333334))), y));
} else {
tmp = x / (x + (y * fma(c, (2.0 * (a + (c * (a * a)))), 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 1e+281) tmp = Float64(x / Float64(x + fma(Float64(2.0 * b), Float64(y * Float64(Float64(0.6666666666666666 / t) - Float64(a + 0.8333333333333334))), y))); else tmp = Float64(x / Float64(x + Float64(y * fma(c, Float64(2.0 * Float64(a + Float64(c * Float64(a * a)))), 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 1e+281], N[(x / N[(x + N[(N[(2.0 * b), $MachinePrecision] * N[(y * N[(N[(0.6666666666666666 / t), $MachinePrecision] - N[(a + 0.8333333333333334), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[(c * N[(2.0 * N[(a + N[(c * N[(a * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 10^{+281}:\\
\;\;\;\;\frac{x}{x + \mathsf{fma}\left(2 \cdot b, y \cdot \left(\frac{0.6666666666666666}{t} - \left(a + 0.8333333333333334\right)\right), y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot \mathsf{fma}\left(c, 2 \cdot \left(a + c \cdot \left(a \cdot a\right)\right), 1\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 1e281Initial program 99.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6469.8
Simplified69.8%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6454.3
Simplified54.3%
if 1e281 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 93.8%
Taylor expanded in c around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6469.3
Simplified69.3%
Taylor expanded in a around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-lowering-*.f6447.6
Simplified47.6%
Taylor expanded in c around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
distribute-lft-outN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6465.8
Simplified65.8%
Final simplification75.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 1e+226)
(/ x (fma y (/ x y) y))
(/ x (+ x (* -2.0 (* a (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 1e+226) {
tmp = x / fma(y, (x / y), y);
} else {
tmp = x / (x + (-2.0 * (a * (y * b))));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 1e+226) tmp = Float64(x / fma(y, Float64(x / y), y)); else tmp = Float64(x / Float64(x + Float64(-2.0 * Float64(a * Float64(y * b))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 1e+226], N[(x / N[(y * N[(x / y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(-2.0 * N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 10^{+226}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \frac{x}{y}, y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + -2 \cdot \left(a \cdot \left(y \cdot b\right)\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 9.99999999999999961e225Initial program 99.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6467.0
Simplified67.0%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6439.3
Simplified39.3%
Taylor expanded in y around inf
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6448.1
Simplified48.1%
if 9.99999999999999961e225 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.1%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6466.1
Simplified66.1%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6454.1
Simplified54.1%
Taylor expanded in a around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6438.9
Simplified38.9%
Final simplification64.4%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 1e+226)
(/ x (fma y (/ x y) y))
(/ (* x -0.5) (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 1e+226) {
tmp = x / fma(y, (x / y), y);
} else {
tmp = (x * -0.5) / (a * (y * b));
}
return tmp;
}
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 1e+226) tmp = Float64(x / fma(y, Float64(x / y), y)); else tmp = Float64(Float64(x * -0.5) / Float64(a * Float64(y * b))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 1e+226], N[(x / N[(y * N[(x / y), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision], N[(N[(x * -0.5), $MachinePrecision] / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 10^{+226}:\\
\;\;\;\;\frac{x}{\mathsf{fma}\left(y, \frac{x}{y}, y\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot -0.5}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 9.99999999999999961e225Initial program 99.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6467.0
Simplified67.0%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6439.3
Simplified39.3%
Taylor expanded in y around inf
+-commutativeN/A
distribute-lft-inN/A
*-rgt-identityN/A
accelerator-lowering-fma.f64N/A
/-lowering-/.f6448.1
Simplified48.1%
if 9.99999999999999961e225 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.1%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6466.1
Simplified66.1%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6454.1
Simplified54.1%
Taylor expanded in a around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6437.5
Simplified37.5%
Final simplification63.8%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))))
(if (<= t_1 -2e+17)
1.0
(if (<= t_1 2e+167) (/ x (+ x y)) (/ (* x -0.5) (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 2e+167) {
tmp = x / (x + y);
} else {
tmp = (x * -0.5) / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: tmp
t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + (5.0d0 / 6.0d0))))
if (t_1 <= (-2d+17)) then
tmp = 1.0d0
else if (t_1 <= 2d+167) then
tmp = x / (x + y)
else
tmp = (x * (-0.5d0)) / (a * (y * b))
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 t_1 = ((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))));
double tmp;
if (t_1 <= -2e+17) {
tmp = 1.0;
} else if (t_1 <= 2e+167) {
tmp = x / (x + y);
} else {
tmp = (x * -0.5) / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = ((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))) tmp = 0 if t_1 <= -2e+17: tmp = 1.0 elif t_1 <= 2e+167: tmp = x / (x + y) else: tmp = (x * -0.5) / (a * (y * b)) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) tmp = 0.0 if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 2e+167) tmp = Float64(x / Float64(x + y)); else tmp = Float64(Float64(x * -0.5) / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = ((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0)))); tmp = 0.0; if (t_1 <= -2e+17) tmp = 1.0; elseif (t_1 <= 2e+167) tmp = x / (x + y); else tmp = (x * -0.5) / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+17], 1.0, If[LessEqual[t$95$1, 2e+167], N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision], N[(N[(x * -0.5), $MachinePrecision] / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right)\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+17}:\\
\;\;\;\;1\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+167}:\\
\;\;\;\;\frac{x}{x + y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot -0.5}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -2e17Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -2e17 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < 2.0000000000000001e167Initial program 99.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6473.3
Simplified73.3%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6451.3
Simplified51.3%
if 2.0000000000000001e167 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 95.8%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6464.1
Simplified64.1%
Taylor expanded in b around 0
+-lowering-+.f64N/A
+-commutativeN/A
associate-*r*N/A
accelerator-lowering-fma.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-lowering-+.f6451.9
Simplified51.9%
Taylor expanded in a around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f6435.3
Simplified35.3%
Final simplification62.6%
(FPCore (x y z t a b c)
:precision binary64
(if (<=
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))
-330.0)
1.0
(/ 1.0 (/ (+ x y) x))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0) {
tmp = 1.0;
} else {
tmp = 1.0 / ((x + y) / x);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((((z * sqrt((t + a))) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + (5.0d0 / 6.0d0))))) <= (-330.0d0)) then
tmp = 1.0d0
else
tmp = 1.0d0 / ((x + y) / x)
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 tmp;
if ((((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0) {
tmp = 1.0;
} else {
tmp = 1.0 / ((x + y) / x);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0: tmp = 1.0 else: tmp = 1.0 / ((x + y) / x) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) <= -330.0) tmp = 1.0; else tmp = Float64(1.0 / Float64(Float64(x + y) / x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0) tmp = 1.0; else tmp = 1.0 / ((x + y) / x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -330.0], 1.0, N[(1.0 / N[(N[(x + y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right) \leq -330:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{x + y}{x}}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -330Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -330 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 96.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6466.4
Simplified66.4%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6422.8
Simplified22.8%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6423.2
Applied egg-rr23.2%
Final simplification52.8%
(FPCore (x y z t a b c)
:precision binary64
(if (<=
(+
(/ (* z (sqrt (+ t a))) t)
(* (- b c) (- (/ 2.0 (* t 3.0)) (+ a (/ 5.0 6.0)))))
-330.0)
1.0
(/ x (+ x y))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double tmp;
if ((((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: tmp
if ((((z * sqrt((t + a))) / t) + ((b - c) * ((2.0d0 / (t * 3.0d0)) - (a + (5.0d0 / 6.0d0))))) <= (-330.0d0)) then
tmp = 1.0d0
else
tmp = x / (x + y)
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 tmp;
if ((((z * Math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0) {
tmp = 1.0;
} else {
tmp = x / (x + y);
}
return tmp;
}
def code(x, y, z, t, a, b, c): tmp = 0 if (((z * math.sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0: tmp = 1.0 else: tmp = x / (x + y) return tmp
function code(x, y, z, t, a, b, c) tmp = 0.0 if (Float64(Float64(Float64(z * sqrt(Float64(t + a))) / t) + Float64(Float64(b - c) * Float64(Float64(2.0 / Float64(t * 3.0)) - Float64(a + Float64(5.0 / 6.0))))) <= -330.0) tmp = 1.0; else tmp = Float64(x / Float64(x + y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) tmp = 0.0; if ((((z * sqrt((t + a))) / t) + ((b - c) * ((2.0 / (t * 3.0)) - (a + (5.0 / 6.0))))) <= -330.0) tmp = 1.0; else tmp = x / (x + y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := If[LessEqual[N[(N[(N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(N[(b - c), $MachinePrecision] * N[(N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision] - N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -330.0], 1.0, N[(x / N[(x + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{z \cdot \sqrt{t + a}}{t} + \left(b - c\right) \cdot \left(\frac{2}{t \cdot 3} - \left(a + \frac{5}{6}\right)\right) \leq -330:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y}\\
\end{array}
\end{array}
if (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) < -330Initial program 99.0%
Taylor expanded in x around inf
Simplified99.0%
*-inverses99.0
Applied egg-rr99.0%
if -330 < (-.f64 (/.f64 (*.f64 z (sqrt.f64 (+.f64 t a))) t) (*.f64 (-.f64 b c) (-.f64 (+.f64 a (/.f64 #s(literal 5 binary64) #s(literal 6 binary64))) (/.f64 #s(literal 2 binary64) (*.f64 t #s(literal 3 binary64)))))) Initial program 96.7%
Taylor expanded in b around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
+-commutativeN/A
+-lowering-+.f6466.4
Simplified66.4%
Taylor expanded in b around 0
+-commutativeN/A
+-lowering-+.f6422.8
Simplified22.8%
Final simplification52.6%
(FPCore (x y z t a b c) :precision binary64 1.0)
double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
real(8) function code(x, y, z, t, a, b, c)
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
code = 1.0d0
end function
public static double code(double x, double y, double z, double t, double a, double b, double c) {
return 1.0;
}
def code(x, y, z, t, a, b, c): return 1.0
function code(x, y, z, t, a, b, c) return 1.0 end
function tmp = code(x, y, z, t, a, b, c) tmp = 1.0; end
code[x_, y_, z_, t_, a_, b_, c_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 97.6%
Taylor expanded in x around inf
Simplified45.2%
*-inverses45.2
Applied egg-rr45.2%
(FPCore (x y z t a b c)
:precision binary64
(let* ((t_1 (* z (sqrt (+ t a)))) (t_2 (- a (/ 5.0 6.0))))
(if (< t -2.118326644891581e-50)
(/
x
(+
x
(* y (exp (* 2.0 (- (+ (* a c) (* 0.8333333333333334 c)) (* a b)))))))
(if (< t 5.196588770651547e-123)
(/
x
(+
x
(*
y
(exp
(*
2.0
(/
(-
(* t_1 (* (* 3.0 t) t_2))
(*
(- (* (+ (/ 5.0 6.0) a) (* 3.0 t)) 2.0)
(* t_2 (* (- b c) t))))
(* (* (* t t) 3.0) t_2)))))))
(/
x
(+
x
(*
y
(exp
(*
2.0
(-
(/ t_1 t)
(* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c) {
double t_1 = z * sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * sqrt((t + a))
t_2 = a - (5.0d0 / 6.0d0)
if (t < (-2.118326644891581d-50)) then
tmp = x / (x + (y * exp((2.0d0 * (((a * c) + (0.8333333333333334d0 * c)) - (a * b))))))
else if (t < 5.196588770651547d-123) then
tmp = x / (x + (y * exp((2.0d0 * (((t_1 * ((3.0d0 * t) * t_2)) - (((((5.0d0 / 6.0d0) + a) * (3.0d0 * t)) - 2.0d0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0d0) * t_2))))))
else
tmp = x / (x + (y * exp((2.0d0 * ((t_1 / t) - ((b - c) * ((a + (5.0d0 / 6.0d0)) - (2.0d0 / (t * 3.0d0)))))))))
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 t_1 = z * Math.sqrt((t + a));
double t_2 = a - (5.0 / 6.0);
double tmp;
if (t < -2.118326644891581e-50) {
tmp = x / (x + (y * Math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b))))));
} else if (t < 5.196588770651547e-123) {
tmp = x / (x + (y * Math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2))))));
} else {
tmp = x / (x + (y * Math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0)))))))));
}
return tmp;
}
def code(x, y, z, t, a, b, c): t_1 = z * math.sqrt((t + a)) t_2 = a - (5.0 / 6.0) tmp = 0 if t < -2.118326644891581e-50: tmp = x / (x + (y * math.exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))) elif t < 5.196588770651547e-123: tmp = x / (x + (y * math.exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))) else: tmp = x / (x + (y * math.exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))) return tmp
function code(x, y, z, t, a, b, c) t_1 = Float64(z * sqrt(Float64(t + a))) t_2 = Float64(a - Float64(5.0 / 6.0)) tmp = 0.0 if (t < -2.118326644891581e-50) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(a * c) + Float64(0.8333333333333334 * c)) - Float64(a * b))))))); elseif (t < 5.196588770651547e-123) tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(Float64(t_1 * Float64(Float64(3.0 * t) * t_2)) - Float64(Float64(Float64(Float64(Float64(5.0 / 6.0) + a) * Float64(3.0 * t)) - 2.0) * Float64(t_2 * Float64(Float64(b - c) * t)))) / Float64(Float64(Float64(t * t) * 3.0) * t_2))))))); else tmp = Float64(x / Float64(x + Float64(y * exp(Float64(2.0 * Float64(Float64(t_1 / t) - Float64(Float64(b - c) * Float64(Float64(a + Float64(5.0 / 6.0)) - Float64(2.0 / Float64(t * 3.0)))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c) t_1 = z * sqrt((t + a)); t_2 = a - (5.0 / 6.0); tmp = 0.0; if (t < -2.118326644891581e-50) tmp = x / (x + (y * exp((2.0 * (((a * c) + (0.8333333333333334 * c)) - (a * b)))))); elseif (t < 5.196588770651547e-123) tmp = x / (x + (y * exp((2.0 * (((t_1 * ((3.0 * t) * t_2)) - (((((5.0 / 6.0) + a) * (3.0 * t)) - 2.0) * (t_2 * ((b - c) * t)))) / (((t * t) * 3.0) * t_2)))))); else tmp = x / (x + (y * exp((2.0 * ((t_1 / t) - ((b - c) * ((a + (5.0 / 6.0)) - (2.0 / (t * 3.0))))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_] := Block[{t$95$1 = N[(z * N[Sqrt[N[(t + a), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a - N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -2.118326644891581e-50], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(a * c), $MachinePrecision] + N[(0.8333333333333334 * c), $MachinePrecision]), $MachinePrecision] - N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[t, 5.196588770651547e-123], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(N[(t$95$1 * N[(N[(3.0 * t), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(N[(N[(5.0 / 6.0), $MachinePrecision] + a), $MachinePrecision] * N[(3.0 * t), $MachinePrecision]), $MachinePrecision] - 2.0), $MachinePrecision] * N[(t$95$2 * N[(N[(b - c), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(t * t), $MachinePrecision] * 3.0), $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(x + N[(y * N[Exp[N[(2.0 * N[(N[(t$95$1 / t), $MachinePrecision] - N[(N[(b - c), $MachinePrecision] * N[(N[(a + N[(5.0 / 6.0), $MachinePrecision]), $MachinePrecision] - N[(2.0 / N[(t * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \sqrt{t + a}\\
t_2 := a - \frac{5}{6}\\
\mathbf{if}\;t < -2.118326644891581 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\left(a \cdot c + 0.8333333333333334 \cdot c\right) - a \cdot b\right)}}\\
\mathbf{elif}\;t < 5.196588770651547 \cdot 10^{-123}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \frac{t\_1 \cdot \left(\left(3 \cdot t\right) \cdot t\_2\right) - \left(\left(\frac{5}{6} + a\right) \cdot \left(3 \cdot t\right) - 2\right) \cdot \left(t\_2 \cdot \left(\left(b - c\right) \cdot t\right)\right)}{\left(\left(t \cdot t\right) \cdot 3\right) \cdot t\_2}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{x + y \cdot e^{2 \cdot \left(\frac{t\_1}{t} - \left(b - c\right) \cdot \left(\left(a + \frac{5}{6}\right) - \frac{2}{t \cdot 3}\right)\right)}}\\
\end{array}
\end{array}
herbie shell --seed 2024199
(FPCore (x y z t a b c)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, I"
:precision binary64
:alt
(! :herbie-platform default (if (< t -2118326644891581/100000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (- (+ (* a c) (* 4166666666666667/5000000000000000 c)) (* a b))))))) (if (< t 5196588770651547/1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (/ x (+ x (* y (exp (* 2 (/ (- (* (* z (sqrt (+ t a))) (* (* 3 t) (- a (/ 5 6)))) (* (- (* (+ (/ 5 6) a) (* 3 t)) 2) (* (- a (/ 5 6)) (* (- b c) t)))) (* (* (* t t) 3) (- a (/ 5 6))))))))) (/ x (+ x (* y (exp (* 2 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5 6)) (/ 2 (* t 3)))))))))))))
(/ x (+ x (* y (exp (* 2.0 (- (/ (* z (sqrt (+ t a))) t) (* (- b c) (- (+ a (/ 5.0 6.0)) (/ 2.0 (* t 3.0)))))))))))