
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
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
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
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
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
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
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.8%
Final simplification98.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -4e+74) (not (<= (+ t -1.0) 2e+55))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (* x (/ (exp (- (- (* y (log z)) (log a)) b)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -4e+74) || !((t + -1.0) <= 2e+55)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = x * (exp((((y * log(z)) - log(a)) - b)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (((t + (-1.0d0)) <= (-4d+74)) .or. (.not. ((t + (-1.0d0)) <= 2d+55))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = x * (exp((((y * log(z)) - log(a)) - b)) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -4e+74) || !((t + -1.0) <= 2e+55)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = x * (Math.exp((((y * Math.log(z)) - Math.log(a)) - b)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -4e+74) or not ((t + -1.0) <= 2e+55): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = x * (math.exp((((y * math.log(z)) - math.log(a)) - b)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -4e+74) || !(Float64(t + -1.0) <= 2e+55)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(x * Float64(exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -4e+74) || ~(((t + -1.0) <= 2e+55))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = x * (exp((((y * log(z)) - log(a)) - b)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -4e+74], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 2e+55]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -4 \cdot 10^{+74} \lor \neg \left(t + -1 \leq 2 \cdot 10^{+55}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -3.99999999999999981e74 or 2.00000000000000002e55 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
*-commutative100.0%
associate-/l*87.9%
associate--l+87.9%
fma-define87.9%
sub-neg87.9%
metadata-eval87.9%
Simplified87.9%
Taylor expanded in y around 0 93.0%
if -3.99999999999999981e74 < (-.f64 t #s(literal 1 binary64)) < 2.00000000000000002e55Initial program 98.0%
*-commutative98.0%
associate-/l*83.1%
associate--l+83.1%
fma-define83.1%
sub-neg83.1%
metadata-eval83.1%
Simplified83.1%
Taylor expanded in t around 0 95.6%
associate-/l*94.5%
+-commutative94.5%
mul-1-neg94.5%
unsub-neg94.5%
Simplified94.5%
Final simplification93.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (* x (* t_1 (/ (pow z y) y)))))
(if (<= b -5e+116)
(/
(* x (+ 1.0 (* b (+ (* b (+ 0.5 (* b -0.16666666666666666))) -1.0))))
y)
(if (<= b -1.45e-204)
t_2
(if (<= b 8.8e-275)
(/ (* x t_1) y)
(if (<= b 2.5e+20) t_2 (/ x (* a (* y (exp b))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t + -1.0));
double t_2 = x * (t_1 * (pow(z, y) / y));
double tmp;
if (b <= -5e+116) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else if (b <= -1.45e-204) {
tmp = t_2;
} else if (b <= 8.8e-275) {
tmp = (x * t_1) / y;
} else if (b <= 2.5e+20) {
tmp = t_2;
} else {
tmp = x / (a * (y * exp(b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t + (-1.0d0))
t_2 = x * (t_1 * ((z ** y) / y))
if (b <= (-5d+116)) then
tmp = (x * (1.0d0 + (b * ((b * (0.5d0 + (b * (-0.16666666666666666d0)))) + (-1.0d0))))) / y
else if (b <= (-1.45d-204)) then
tmp = t_2
else if (b <= 8.8d-275) then
tmp = (x * t_1) / y
else if (b <= 2.5d+20) then
tmp = t_2
else
tmp = x / (a * (y * exp(b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t + -1.0));
double t_2 = x * (t_1 * (Math.pow(z, y) / y));
double tmp;
if (b <= -5e+116) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else if (b <= -1.45e-204) {
tmp = t_2;
} else if (b <= 8.8e-275) {
tmp = (x * t_1) / y;
} else if (b <= 2.5e+20) {
tmp = t_2;
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t + -1.0)) t_2 = x * (t_1 * (math.pow(z, y) / y)) tmp = 0 if b <= -5e+116: tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y elif b <= -1.45e-204: tmp = t_2 elif b <= 8.8e-275: tmp = (x * t_1) / y elif b <= 2.5e+20: tmp = t_2 else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t + -1.0) t_2 = Float64(x * Float64(t_1 * Float64((z ^ y) / y))) tmp = 0.0 if (b <= -5e+116) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))) + -1.0)))) / y); elseif (b <= -1.45e-204) tmp = t_2; elseif (b <= 8.8e-275) tmp = Float64(Float64(x * t_1) / y); elseif (b <= 2.5e+20) tmp = t_2; else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t + -1.0); t_2 = x * (t_1 * ((z ^ y) / y)); tmp = 0.0; if (b <= -5e+116) tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y; elseif (b <= -1.45e-204) tmp = t_2; elseif (b <= 8.8e-275) tmp = (x * t_1) / y; elseif (b <= 2.5e+20) tmp = t_2; else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(t$95$1 * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5e+116], N[(N[(x * N[(1.0 + N[(b * N[(N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1.45e-204], t$95$2, If[LessEqual[b, 8.8e-275], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.5e+20], t$95$2, N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := x \cdot \left(t\_1 \cdot \frac{{z}^{y}}{y}\right)\\
\mathbf{if}\;b \leq -5 \cdot 10^{+116}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(b \cdot \left(0.5 + b \cdot -0.16666666666666666\right) + -1\right)\right)}{y}\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-204}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 8.8 \cdot 10^{-275}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if b < -5.00000000000000025e116Initial program 100.0%
*-commutative100.0%
associate-/l*87.5%
associate--l+87.5%
fma-define87.5%
sub-neg87.5%
metadata-eval87.5%
Simplified87.5%
Taylor expanded in b around inf 75.1%
neg-mul-175.1%
Simplified75.1%
Taylor expanded in b around 0 73.6%
Taylor expanded in y around 0 75.9%
Taylor expanded in x around 0 87.7%
if -5.00000000000000025e116 < b < -1.45000000000000005e-204 or 8.79999999999999955e-275 < b < 2.5e20Initial program 98.3%
associate-/l*98.3%
associate--l+98.3%
exp-sum79.7%
associate-/l*77.4%
*-commutative77.4%
exp-to-pow77.4%
exp-diff75.0%
*-commutative75.0%
exp-to-pow76.0%
sub-neg76.0%
metadata-eval76.0%
Simplified76.0%
Taylor expanded in b around 0 82.9%
associate-/l*82.9%
exp-to-pow83.7%
sub-neg83.7%
metadata-eval83.7%
Simplified83.7%
if -1.45000000000000005e-204 < b < 8.79999999999999955e-275Initial program 97.2%
*-commutative97.2%
associate-/l*85.7%
associate--l+85.7%
fma-define85.7%
sub-neg85.7%
metadata-eval85.7%
Simplified85.7%
Taylor expanded in y around 0 88.1%
Taylor expanded in b around 0 88.1%
*-commutative88.1%
exp-to-pow90.7%
sub-neg90.7%
metadata-eval90.7%
+-commutative90.7%
Simplified90.7%
if 2.5e20 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum73.0%
associate-/l*73.0%
*-commutative73.0%
exp-to-pow73.0%
exp-diff50.8%
*-commutative50.8%
exp-to-pow50.8%
sub-neg50.8%
metadata-eval50.8%
Simplified50.8%
Taylor expanded in y around 0 62.0%
associate-/r*60.4%
exp-to-pow60.4%
sub-neg60.4%
metadata-eval60.4%
Simplified60.4%
Taylor expanded in t around 0 84.4%
Final simplification85.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow a (+ t -1.0)) y) (exp b))))
(t_2 (* x (/ (/ (pow z y) a) y))))
(if (<= y -4e+40)
t_2
(if (<= y 2.45e-272)
t_1
(if (<= y 2.4e-47)
(/ (/ x (* a (exp b))) y)
(if (<= y 4.1e+137) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(a, (t + -1.0)) / y) / exp(b));
double t_2 = x * ((pow(z, y) / a) / y);
double tmp;
if (y <= -4e+40) {
tmp = t_2;
} else if (y <= 2.45e-272) {
tmp = t_1;
} else if (y <= 2.4e-47) {
tmp = (x / (a * exp(b))) / y;
} else if (y <= 4.1e+137) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (((a ** (t + (-1.0d0))) / y) / exp(b))
t_2 = x * (((z ** y) / a) / y)
if (y <= (-4d+40)) then
tmp = t_2
else if (y <= 2.45d-272) then
tmp = t_1
else if (y <= 2.4d-47) then
tmp = (x / (a * exp(b))) / y
else if (y <= 4.1d+137) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(a, (t + -1.0)) / y) / Math.exp(b));
double t_2 = x * ((Math.pow(z, y) / a) / y);
double tmp;
if (y <= -4e+40) {
tmp = t_2;
} else if (y <= 2.45e-272) {
tmp = t_1;
} else if (y <= 2.4e-47) {
tmp = (x / (a * Math.exp(b))) / y;
} else if (y <= 4.1e+137) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(a, (t + -1.0)) / y) / math.exp(b)) t_2 = x * ((math.pow(z, y) / a) / y) tmp = 0 if y <= -4e+40: tmp = t_2 elif y <= 2.45e-272: tmp = t_1 elif y <= 2.4e-47: tmp = (x / (a * math.exp(b))) / y elif y <= 4.1e+137: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((a ^ Float64(t + -1.0)) / y) / exp(b))) t_2 = Float64(x * Float64(Float64((z ^ y) / a) / y)) tmp = 0.0 if (y <= -4e+40) tmp = t_2; elseif (y <= 2.45e-272) tmp = t_1; elseif (y <= 2.4e-47) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); elseif (y <= 4.1e+137) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((a ^ (t + -1.0)) / y) / exp(b)); t_2 = x * (((z ^ y) / a) / y); tmp = 0.0; if (y <= -4e+40) tmp = t_2; elseif (y <= 2.45e-272) tmp = t_1; elseif (y <= 2.4e-47) tmp = (x / (a * exp(b))) / y; elseif (y <= 4.1e+137) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4e+40], t$95$2, If[LessEqual[y, 2.45e-272], t$95$1, If[LessEqual[y, 2.4e-47], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 4.1e+137], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}\\
t_2 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -4 \cdot 10^{+40}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{-272}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-47}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+137}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.00000000000000012e40 or 4.09999999999999997e137 < y Initial program 100.0%
*-commutative100.0%
associate-/l*79.8%
associate--l+79.8%
fma-define79.8%
sub-neg79.8%
metadata-eval79.8%
Simplified79.8%
Taylor expanded in t around 0 88.9%
associate-/l*88.9%
+-commutative88.9%
mul-1-neg88.9%
unsub-neg88.9%
Simplified88.9%
Taylor expanded in b around 0 84.5%
div-exp84.5%
*-commutative84.5%
exp-to-pow84.5%
rem-exp-log84.5%
Simplified84.5%
if -4.00000000000000012e40 < y < 2.4499999999999999e-272 or 2.3999999999999999e-47 < y < 4.09999999999999997e137Initial program 98.4%
associate-/l*99.0%
associate--l+99.0%
exp-sum82.2%
associate-/l*82.2%
*-commutative82.2%
exp-to-pow82.2%
exp-diff73.0%
*-commutative73.0%
exp-to-pow74.0%
sub-neg74.0%
metadata-eval74.0%
Simplified74.0%
Taylor expanded in y around 0 82.7%
associate-/r*81.9%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
Simplified82.8%
if 2.4499999999999999e-272 < y < 2.3999999999999999e-47Initial program 97.4%
*-commutative97.4%
associate-/l*87.3%
associate--l+87.3%
fma-define87.3%
sub-neg87.3%
metadata-eval87.3%
Simplified87.3%
Taylor expanded in y around 0 97.4%
Taylor expanded in t around 0 92.0%
*-commutative92.0%
sub-neg92.0%
neg-mul-192.0%
distribute-neg-in92.0%
+-commutative92.0%
exp-neg92.0%
associate-*l/92.0%
*-lft-identity92.0%
+-commutative92.0%
exp-sum92.0%
rem-exp-log94.5%
Simplified94.5%
Final simplification85.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4e+40) (not (<= y 2.15e+137))) (* x (/ (/ (pow z y) a) y)) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4e+40) || !(y <= 2.15e+137)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((y <= (-4d+40)) .or. (.not. (y <= 2.15d+137))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4e+40) || !(y <= 2.15e+137)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4e+40) or not (y <= 2.15e+137): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4e+40) || !(y <= 2.15e+137)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -4e+40) || ~((y <= 2.15e+137))) tmp = x * (((z ^ y) / a) / y); else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4e+40], N[Not[LessEqual[y, 2.15e+137]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+40} \lor \neg \left(y \leq 2.15 \cdot 10^{+137}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -4.00000000000000012e40 or 2.14999999999999982e137 < y Initial program 100.0%
*-commutative100.0%
associate-/l*79.8%
associate--l+79.8%
fma-define79.8%
sub-neg79.8%
metadata-eval79.8%
Simplified79.8%
Taylor expanded in t around 0 88.9%
associate-/l*88.9%
+-commutative88.9%
mul-1-neg88.9%
unsub-neg88.9%
Simplified88.9%
Taylor expanded in b around 0 84.5%
div-exp84.5%
*-commutative84.5%
exp-to-pow84.5%
rem-exp-log84.5%
Simplified84.5%
if -4.00000000000000012e40 < y < 2.14999999999999982e137Initial program 98.2%
*-commutative98.2%
associate-/l*87.7%
associate--l+87.7%
fma-define87.7%
sub-neg87.7%
metadata-eval87.7%
Simplified87.7%
Taylor expanded in y around 0 93.7%
Final simplification90.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow z y) a) y))))
(if (<= y -1.3e+40)
t_1
(if (<= y 2.85e-272)
(/ (* x (pow a (+ t -1.0))) y)
(if (<= y 7.3e+112) (/ (/ x (* a (exp b))) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(z, y) / a) / y);
double tmp;
if (y <= -1.3e+40) {
tmp = t_1;
} else if (y <= 2.85e-272) {
tmp = (x * pow(a, (t + -1.0))) / y;
} else if (y <= 7.3e+112) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x * (((z ** y) / a) / y)
if (y <= (-1.3d+40)) then
tmp = t_1
else if (y <= 2.85d-272) then
tmp = (x * (a ** (t + (-1.0d0)))) / y
else if (y <= 7.3d+112) then
tmp = (x / (a * exp(b))) / y
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(z, y) / a) / y);
double tmp;
if (y <= -1.3e+40) {
tmp = t_1;
} else if (y <= 2.85e-272) {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
} else if (y <= 7.3e+112) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(z, y) / a) / y) tmp = 0 if y <= -1.3e+40: tmp = t_1 elif y <= 2.85e-272: tmp = (x * math.pow(a, (t + -1.0))) / y elif y <= 7.3e+112: tmp = (x / (a * math.exp(b))) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((z ^ y) / a) / y)) tmp = 0.0 if (y <= -1.3e+40) tmp = t_1; elseif (y <= 2.85e-272) tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); elseif (y <= 7.3e+112) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((z ^ y) / a) / y); tmp = 0.0; if (y <= -1.3e+40) tmp = t_1; elseif (y <= 2.85e-272) tmp = (x * (a ^ (t + -1.0))) / y; elseif (y <= 7.3e+112) tmp = (x / (a * exp(b))) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.3e+40], t$95$1, If[LessEqual[y, 2.85e-272], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[y, 7.3e+112], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{+40}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{-272}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{elif}\;y \leq 7.3 \cdot 10^{+112}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.3e40 or 7.3e112 < y Initial program 100.0%
*-commutative100.0%
associate-/l*80.9%
associate--l+80.9%
fma-define80.9%
sub-neg80.9%
metadata-eval80.9%
Simplified80.9%
Taylor expanded in t around 0 87.4%
associate-/l*87.4%
+-commutative87.4%
mul-1-neg87.4%
unsub-neg87.4%
Simplified87.4%
Taylor expanded in b around 0 83.2%
div-exp83.2%
*-commutative83.2%
exp-to-pow83.2%
rem-exp-log83.2%
Simplified83.2%
if -1.3e40 < y < 2.8499999999999999e-272Initial program 97.7%
*-commutative97.7%
associate-/l*85.3%
associate--l+85.3%
fma-define85.3%
sub-neg85.3%
metadata-eval85.3%
Simplified85.3%
Taylor expanded in y around 0 94.0%
Taylor expanded in b around 0 77.6%
*-commutative77.6%
exp-to-pow78.7%
sub-neg78.7%
metadata-eval78.7%
+-commutative78.7%
Simplified78.7%
if 2.8499999999999999e-272 < y < 7.3e112Initial program 98.6%
*-commutative98.6%
associate-/l*90.2%
associate--l+90.2%
fma-define90.2%
sub-neg90.2%
metadata-eval90.2%
Simplified90.2%
Taylor expanded in y around 0 94.3%
Taylor expanded in t around 0 77.0%
*-commutative77.0%
sub-neg77.0%
neg-mul-177.0%
distribute-neg-in77.0%
+-commutative77.0%
exp-neg77.0%
associate-*l/77.0%
*-lft-identity77.0%
+-commutative77.0%
exp-sum77.0%
rem-exp-log78.3%
Simplified78.3%
Final simplification80.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.05e+40) (not (<= y 2.1e+114))) (* x (/ (/ (pow z y) a) y)) (/ (/ x (* a (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.05e+40) || !(y <= 2.1e+114)) {
tmp = x * ((pow(z, y) / a) / y);
} else {
tmp = (x / (a * exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((y <= (-1.05d+40)) .or. (.not. (y <= 2.1d+114))) then
tmp = x * (((z ** y) / a) / y)
else
tmp = (x / (a * exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.05e+40) || !(y <= 2.1e+114)) {
tmp = x * ((Math.pow(z, y) / a) / y);
} else {
tmp = (x / (a * Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.05e+40) or not (y <= 2.1e+114): tmp = x * ((math.pow(z, y) / a) / y) else: tmp = (x / (a * math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.05e+40) || !(y <= 2.1e+114)) tmp = Float64(x * Float64(Float64((z ^ y) / a) / y)); else tmp = Float64(Float64(x / Float64(a * exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.05e+40) || ~((y <= 2.1e+114))) tmp = x * (((z ^ y) / a) / y); else tmp = (x / (a * exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.05e+40], N[Not[LessEqual[y, 2.1e+114]], $MachinePrecision]], N[(x * N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+40} \lor \neg \left(y \leq 2.1 \cdot 10^{+114}\right):\\
\;\;\;\;x \cdot \frac{\frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\end{array}
\end{array}
if y < -1.05000000000000005e40 or 2.1e114 < y Initial program 100.0%
*-commutative100.0%
associate-/l*80.9%
associate--l+80.9%
fma-define80.9%
sub-neg80.9%
metadata-eval80.9%
Simplified80.9%
Taylor expanded in t around 0 87.4%
associate-/l*87.4%
+-commutative87.4%
mul-1-neg87.4%
unsub-neg87.4%
Simplified87.4%
Taylor expanded in b around 0 83.2%
div-exp83.2%
*-commutative83.2%
exp-to-pow83.2%
rem-exp-log83.2%
Simplified83.2%
if -1.05000000000000005e40 < y < 2.1e114Initial program 98.1%
*-commutative98.1%
associate-/l*87.3%
associate--l+87.3%
fma-define87.3%
sub-neg87.3%
metadata-eval87.3%
Simplified87.3%
Taylor expanded in y around 0 94.1%
Taylor expanded in t around 0 69.5%
*-commutative69.5%
sub-neg69.5%
neg-mul-169.5%
distribute-neg-in69.5%
+-commutative69.5%
exp-neg69.5%
associate-*l/69.5%
*-lft-identity69.5%
+-commutative69.5%
exp-sum69.5%
rem-exp-log70.7%
Simplified70.7%
Final simplification75.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -7.8e+71) (not (<= b 102.0))) (/ (/ x (exp b)) y) (/ x (* a (+ y (* b (+ y (* 0.5 (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -7.8e+71) || !(b <= 102.0)) {
tmp = (x / exp(b)) / y;
} else {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if ((b <= (-7.8d+71)) .or. (.not. (b <= 102.0d0))) then
tmp = (x / exp(b)) / y
else
tmp = x / (a * (y + (b * (y + (0.5d0 * (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 tmp;
if ((b <= -7.8e+71) || !(b <= 102.0)) {
tmp = (x / Math.exp(b)) / y;
} else {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -7.8e+71) or not (b <= 102.0): tmp = (x / math.exp(b)) / y else: tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -7.8e+71) || !(b <= 102.0)) tmp = Float64(Float64(x / exp(b)) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(0.5 * Float64(y * b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -7.8e+71) || ~((b <= 102.0))) tmp = (x / exp(b)) / y; else tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -7.8e+71], N[Not[LessEqual[b, 102.0]], $MachinePrecision]], N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(0.5 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.8 \cdot 10^{+71} \lor \neg \left(b \leq 102\right):\\
\;\;\;\;\frac{\frac{x}{e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + 0.5 \cdot \left(y \cdot b\right)\right)\right)}\\
\end{array}
\end{array}
if b < -7.8000000000000002e71 or 102 < b Initial program 100.0%
*-commutative100.0%
associate-/l*84.8%
associate--l+84.8%
fma-define84.8%
sub-neg84.8%
metadata-eval84.8%
Simplified84.8%
Taylor expanded in b around inf 70.8%
neg-mul-170.8%
Simplified70.8%
Taylor expanded in b around inf 82.4%
*-commutative82.4%
exp-neg82.4%
associate-*l/82.4%
*-lft-identity82.4%
Simplified82.4%
if -7.8000000000000002e71 < b < 102Initial program 97.9%
associate-/l*96.7%
associate--l+96.7%
exp-sum79.4%
associate-/l*77.3%
*-commutative77.3%
exp-to-pow77.3%
exp-diff76.6%
*-commutative76.6%
exp-to-pow77.9%
sub-neg77.9%
metadata-eval77.9%
Simplified77.9%
Taylor expanded in y around 0 68.6%
associate-/r*68.5%
exp-to-pow69.8%
sub-neg69.8%
metadata-eval69.8%
Simplified69.8%
Taylor expanded in t around 0 38.1%
Taylor expanded in b around 0 40.9%
Final simplification59.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))))
(if (<= a 7e+227)
(/ (/ x (* a (exp b))) y)
(+ t_1 (* b (- (* b (- t_1 (* 0.5 t_1))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (a <= 7e+227) {
tmp = (x / (a * exp(b))) / y;
} else {
tmp = t_1 + (b * ((b * (t_1 - (0.5 * t_1))) - t_1));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: tmp
t_1 = x / (y * a)
if (a <= 7d+227) then
tmp = (x / (a * exp(b))) / y
else
tmp = t_1 + (b * ((b * (t_1 - (0.5d0 * t_1))) - t_1))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double tmp;
if (a <= 7e+227) {
tmp = (x / (a * Math.exp(b))) / y;
} else {
tmp = t_1 + (b * ((b * (t_1 - (0.5 * t_1))) - t_1));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) tmp = 0 if a <= 7e+227: tmp = (x / (a * math.exp(b))) / y else: tmp = t_1 + (b * ((b * (t_1 - (0.5 * t_1))) - t_1)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) tmp = 0.0 if (a <= 7e+227) tmp = Float64(Float64(x / Float64(a * exp(b))) / y); else tmp = Float64(t_1 + Float64(b * Float64(Float64(b * Float64(t_1 - Float64(0.5 * t_1))) - t_1))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); tmp = 0.0; if (a <= 7e+227) tmp = (x / (a * exp(b))) / y; else tmp = t_1 + (b * ((b * (t_1 - (0.5 * t_1))) - t_1)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, 7e+227], N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(b * N[(t$95$1 - N[(0.5 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
\mathbf{if}\;a \leq 7 \cdot 10^{+227}:\\
\;\;\;\;\frac{\frac{x}{a \cdot e^{b}}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(b \cdot \left(t\_1 - 0.5 \cdot t\_1\right) - t\_1\right)\\
\end{array}
\end{array}
if a < 6.9999999999999998e227Initial program 98.8%
*-commutative98.8%
associate-/l*84.0%
associate--l+84.0%
fma-define84.0%
sub-neg84.0%
metadata-eval84.0%
Simplified84.0%
Taylor expanded in y around 0 79.2%
Taylor expanded in t around 0 57.8%
*-commutative57.8%
sub-neg57.8%
neg-mul-157.8%
distribute-neg-in57.8%
+-commutative57.8%
exp-neg57.8%
associate-*l/57.8%
*-lft-identity57.8%
+-commutative57.8%
exp-sum57.8%
rem-exp-log58.5%
Simplified58.5%
if 6.9999999999999998e227 < a Initial program 98.7%
associate-/l*98.7%
associate--l+98.7%
exp-sum71.1%
associate-/l*64.2%
*-commutative64.2%
exp-to-pow64.2%
exp-diff50.4%
*-commutative50.4%
exp-to-pow51.6%
sub-neg51.6%
metadata-eval51.6%
Simplified51.6%
Taylor expanded in y around 0 61.1%
associate-/r*60.9%
exp-to-pow62.2%
sub-neg62.2%
metadata-eval62.2%
Simplified62.2%
Taylor expanded in t around 0 55.8%
Taylor expanded in b around 0 69.5%
Final simplification59.8%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
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
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.8%
associate-/l*98.2%
associate--l+98.2%
exp-sum75.1%
associate-/l*73.9%
*-commutative73.9%
exp-to-pow73.9%
exp-diff66.5%
*-commutative66.5%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in y around 0 67.5%
associate-/r*65.2%
exp-to-pow65.9%
sub-neg65.9%
metadata-eval65.9%
Simplified65.9%
Taylor expanded in t around 0 57.5%
Final simplification57.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5.8e+88)
(/ (* x (+ 1.0 (* b (+ (* b (+ 0.5 (* b -0.16666666666666666))) -1.0)))) y)
(/
x
(*
a
(+ y (* b (+ y (* b (+ (* (* y b) 0.16666666666666666) (* y 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.8e+88) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-5.8d+88)) then
tmp = (x * (1.0d0 + (b * ((b * (0.5d0 + (b * (-0.16666666666666666d0)))) + (-1.0d0))))) / y
else
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666d0) + (y * 0.5d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.8e+88) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else {
tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5)))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.8e+88: tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y else: tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.8e+88) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))) + -1.0)))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(b * Float64(Float64(Float64(y * b) * 0.16666666666666666) + Float64(y * 0.5)))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5.8e+88) tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y; else tmp = x / (a * (y + (b * (y + (b * (((y * b) * 0.16666666666666666) + (y * 0.5))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.8e+88], N[(N[(x * N[(1.0 + N[(b * N[(N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(b * N[(N[(N[(y * b), $MachinePrecision] * 0.16666666666666666), $MachinePrecision] + N[(y * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+88}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(b \cdot \left(0.5 + b \cdot -0.16666666666666666\right) + -1\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + b \cdot \left(\left(y \cdot b\right) \cdot 0.16666666666666666 + y \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -5.7999999999999999e88Initial program 100.0%
*-commutative100.0%
associate-/l*85.0%
associate--l+85.0%
fma-define85.0%
sub-neg85.0%
metadata-eval85.0%
Simplified85.0%
Taylor expanded in b around inf 70.2%
neg-mul-170.2%
Simplified70.2%
Taylor expanded in b around 0 66.7%
Taylor expanded in y around 0 68.6%
Taylor expanded in x around 0 80.5%
if -5.7999999999999999e88 < b Initial program 98.6%
associate-/l*97.8%
associate--l+97.8%
exp-sum76.1%
associate-/l*74.7%
*-commutative74.7%
exp-to-pow74.7%
exp-diff67.7%
*-commutative67.7%
exp-to-pow68.6%
sub-neg68.6%
metadata-eval68.6%
Simplified68.6%
Taylor expanded in y around 0 66.1%
associate-/r*65.2%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
Simplified66.0%
Taylor expanded in t around 0 52.4%
Taylor expanded in b around 0 50.2%
Final simplification54.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.08e+192)
(/ (+ x (* b (* x (+ -1.0 (* b 0.5))))) y)
(if (<= b -1e-216)
(- (/ x (* y a)) (* (/ x a) (/ b y)))
(/ (/ x (+ a (* a b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.08e+192) {
tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y;
} else if (b <= -1e-216) {
tmp = (x / (y * a)) - ((x / a) * (b / y));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-1.08d+192)) then
tmp = (x + (b * (x * ((-1.0d0) + (b * 0.5d0))))) / y
else if (b <= (-1d-216)) then
tmp = (x / (y * a)) - ((x / a) * (b / y))
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.08e+192) {
tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y;
} else if (b <= -1e-216) {
tmp = (x / (y * a)) - ((x / a) * (b / y));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.08e+192: tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y elif b <= -1e-216: tmp = (x / (y * a)) - ((x / a) * (b / y)) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.08e+192) tmp = Float64(Float64(x + Float64(b * Float64(x * Float64(-1.0 + Float64(b * 0.5))))) / y); elseif (b <= -1e-216) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x / a) * Float64(b / y))); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.08e+192) tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y; elseif (b <= -1e-216) tmp = (x / (y * a)) - ((x / a) * (b / y)); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.08e+192], N[(N[(x + N[(b * N[(x * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, -1e-216], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / a), $MachinePrecision] * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.08 \cdot 10^{+192}:\\
\;\;\;\;\frac{x + b \cdot \left(x \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{elif}\;b \leq -1 \cdot 10^{-216}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x}{a} \cdot \frac{b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -1.07999999999999998e192Initial program 100.0%
*-commutative100.0%
associate-/l*90.5%
associate--l+90.5%
fma-define90.5%
sub-neg90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in b around inf 85.8%
neg-mul-185.8%
Simplified85.8%
Taylor expanded in b around 0 87.2%
Taylor expanded in y around 0 95.3%
Taylor expanded in b around 0 90.8%
associate-*r*90.8%
distribute-rgt-out90.8%
*-commutative90.8%
Simplified90.8%
if -1.07999999999999998e192 < b < -1e-216Initial program 98.1%
associate-/l*99.2%
associate--l+99.2%
exp-sum71.1%
associate-/l*68.6%
*-commutative68.6%
exp-to-pow68.6%
exp-diff65.0%
*-commutative65.0%
exp-to-pow65.8%
sub-neg65.8%
metadata-eval65.8%
Simplified65.8%
Taylor expanded in y around 0 66.0%
associate-/r*63.5%
exp-to-pow64.2%
sub-neg64.2%
metadata-eval64.2%
Simplified64.2%
Taylor expanded in t around 0 47.9%
Taylor expanded in b around 0 39.1%
+-commutative39.1%
mul-1-neg39.1%
unsub-neg39.1%
*-commutative39.1%
times-frac41.5%
Simplified41.5%
if -1e-216 < b Initial program 99.0%
*-commutative99.0%
associate-/l*83.6%
associate--l+83.6%
fma-define83.6%
sub-neg83.6%
metadata-eval83.6%
Simplified83.6%
Taylor expanded in y around 0 79.3%
Taylor expanded in t around 0 57.7%
*-commutative57.7%
sub-neg57.7%
neg-mul-157.7%
distribute-neg-in57.7%
+-commutative57.7%
exp-neg57.7%
associate-*l/57.7%
*-lft-identity57.7%
+-commutative57.7%
exp-sum57.7%
rem-exp-log58.7%
Simplified58.7%
Taylor expanded in b around 0 38.5%
Final simplification43.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8.2e+103) (/ (* x (+ 1.0 (* b (+ (* b (+ 0.5 (* b -0.16666666666666666))) -1.0)))) y) (/ (/ x (+ a (* b (+ a (* 0.5 (* a b)))))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.2e+103) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else {
tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-8.2d+103)) then
tmp = (x * (1.0d0 + (b * ((b * (0.5d0 + (b * (-0.16666666666666666d0)))) + (-1.0d0))))) / y
else
tmp = (x / (a + (b * (a + (0.5d0 * (a * b)))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.2e+103) {
tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y;
} else {
tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.2e+103: tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y else: tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8.2e+103) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))) + -1.0)))) / y); else tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(0.5 * Float64(a * b)))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8.2e+103) tmp = (x * (1.0 + (b * ((b * (0.5 + (b * -0.16666666666666666))) + -1.0)))) / y; else tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.2e+103], N[(N[(x * N[(1.0 + N[(b * N[(N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a + N[(b * N[(a + N[(0.5 * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.2 \cdot 10^{+103}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(b \cdot \left(0.5 + b \cdot -0.16666666666666666\right) + -1\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + 0.5 \cdot \left(a \cdot b\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -8.2000000000000003e103Initial program 100.0%
*-commutative100.0%
associate-/l*86.1%
associate--l+86.1%
fma-define86.1%
sub-neg86.1%
metadata-eval86.1%
Simplified86.1%
Taylor expanded in b around inf 72.4%
neg-mul-172.4%
Simplified72.4%
Taylor expanded in b around 0 71.1%
Taylor expanded in y around 0 73.1%
Taylor expanded in x around 0 86.3%
if -8.2000000000000003e103 < b Initial program 98.6%
*-commutative98.6%
associate-/l*84.8%
associate--l+84.8%
fma-define84.8%
sub-neg84.8%
metadata-eval84.8%
Simplified84.8%
Taylor expanded in y around 0 75.7%
Taylor expanded in t around 0 51.5%
*-commutative51.5%
sub-neg51.5%
neg-mul-151.5%
distribute-neg-in51.5%
+-commutative51.5%
exp-neg51.5%
associate-*l/51.5%
*-lft-identity51.5%
+-commutative51.5%
exp-sum51.5%
rem-exp-log52.3%
Simplified52.3%
Taylor expanded in b around 0 46.8%
Final simplification52.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.65e+152) (/ (+ x (* b (* x (+ -1.0 (* b 0.5))))) y) (/ x (* a (+ y (* b (+ y (* 0.5 (* y b)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e+152) {
tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y;
} else {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-1.65d+152)) then
tmp = (x + (b * (x * ((-1.0d0) + (b * 0.5d0))))) / y
else
tmp = x / (a * (y + (b * (y + (0.5d0 * (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 tmp;
if (b <= -1.65e+152) {
tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y;
} else {
tmp = x / (a * (y + (b * (y + (0.5 * (y * b))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.65e+152: tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y else: tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.65e+152) tmp = Float64(Float64(x + Float64(b * Float64(x * Float64(-1.0 + Float64(b * 0.5))))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(b * Float64(y + Float64(0.5 * Float64(y * b))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.65e+152) tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y; else tmp = x / (a * (y + (b * (y + (0.5 * (y * b)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e+152], N[(N[(x + N[(b * N[(x * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(b * N[(y + N[(0.5 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{+152}:\\
\;\;\;\;\frac{x + b \cdot \left(x \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + b \cdot \left(y + 0.5 \cdot \left(y \cdot b\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1.6500000000000001e152Initial program 100.0%
*-commutative100.0%
associate-/l*89.3%
associate--l+89.3%
fma-define89.3%
sub-neg89.3%
metadata-eval89.3%
Simplified89.3%
Taylor expanded in b around inf 82.2%
neg-mul-182.2%
Simplified82.2%
Taylor expanded in b around 0 80.2%
Taylor expanded in y around 0 86.2%
Taylor expanded in b around 0 79.5%
associate-*r*79.5%
distribute-rgt-out79.5%
*-commutative79.5%
Simplified79.5%
if -1.6500000000000001e152 < b Initial program 98.7%
associate-/l*97.9%
associate--l+97.9%
exp-sum76.0%
associate-/l*74.7%
*-commutative74.7%
exp-to-pow74.7%
exp-diff67.2%
*-commutative67.2%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
Simplified68.1%
Taylor expanded in y around 0 66.2%
associate-/r*64.4%
exp-to-pow65.2%
sub-neg65.2%
metadata-eval65.2%
Simplified65.2%
Taylor expanded in t around 0 53.2%
Taylor expanded in b around 0 44.5%
Final simplification48.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.45e+152) (/ (+ x (* b (* x (+ -1.0 (* b 0.5))))) y) (/ (/ x (+ a (* b (+ a (* 0.5 (* a b)))))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.45e+152) {
tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y;
} else {
tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-1.45d+152)) then
tmp = (x + (b * (x * ((-1.0d0) + (b * 0.5d0))))) / y
else
tmp = (x / (a + (b * (a + (0.5d0 * (a * b)))))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.45e+152) {
tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y;
} else {
tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.45e+152: tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y else: tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.45e+152) tmp = Float64(Float64(x + Float64(b * Float64(x * Float64(-1.0 + Float64(b * 0.5))))) / y); else tmp = Float64(Float64(x / Float64(a + Float64(b * Float64(a + Float64(0.5 * Float64(a * b)))))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.45e+152) tmp = (x + (b * (x * (-1.0 + (b * 0.5))))) / y; else tmp = (x / (a + (b * (a + (0.5 * (a * b)))))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.45e+152], N[(N[(x + N[(b * N[(x * N[(-1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a + N[(b * N[(a + N[(0.5 * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.45 \cdot 10^{+152}:\\
\;\;\;\;\frac{x + b \cdot \left(x \cdot \left(-1 + b \cdot 0.5\right)\right)}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + b \cdot \left(a + 0.5 \cdot \left(a \cdot b\right)\right)}}{y}\\
\end{array}
\end{array}
if b < -1.4499999999999999e152Initial program 100.0%
*-commutative100.0%
associate-/l*89.3%
associate--l+89.3%
fma-define89.3%
sub-neg89.3%
metadata-eval89.3%
Simplified89.3%
Taylor expanded in b around inf 82.2%
neg-mul-182.2%
Simplified82.2%
Taylor expanded in b around 0 80.2%
Taylor expanded in y around 0 86.2%
Taylor expanded in b around 0 79.5%
associate-*r*79.5%
distribute-rgt-out79.5%
*-commutative79.5%
Simplified79.5%
if -1.4499999999999999e152 < b Initial program 98.7%
*-commutative98.7%
associate-/l*84.4%
associate--l+84.4%
fma-define84.4%
sub-neg84.4%
metadata-eval84.4%
Simplified84.4%
Taylor expanded in y around 0 76.1%
Taylor expanded in t around 0 51.9%
*-commutative51.9%
sub-neg51.9%
neg-mul-151.9%
distribute-neg-in51.9%
+-commutative51.9%
exp-neg51.9%
associate-*l/51.9%
*-lft-identity51.9%
+-commutative51.9%
exp-sum51.9%
rem-exp-log52.7%
Simplified52.7%
Taylor expanded in b around 0 46.5%
Final simplification50.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -7.6e+105) (* x (/ b (- y))) (if (<= b -9.5e-216) (/ x (* y a)) (/ (/ x (+ a (* a b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.6e+105) {
tmp = x * (b / -y);
} else if (b <= -9.5e-216) {
tmp = x / (y * a);
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-7.6d+105)) then
tmp = x * (b / -y)
else if (b <= (-9.5d-216)) then
tmp = x / (y * a)
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.6e+105) {
tmp = x * (b / -y);
} else if (b <= -9.5e-216) {
tmp = x / (y * a);
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.6e+105: tmp = x * (b / -y) elif b <= -9.5e-216: tmp = x / (y * a) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.6e+105) tmp = Float64(x * Float64(b / Float64(-y))); elseif (b <= -9.5e-216) tmp = Float64(x / Float64(y * a)); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.6e+105) tmp = x * (b / -y); elseif (b <= -9.5e-216) tmp = x / (y * a); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.6e+105], N[(x * N[(b / (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.5e-216], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.6 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \frac{b}{-y}\\
\mathbf{elif}\;b \leq -9.5 \cdot 10^{-216}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -7.6e105Initial program 100.0%
*-commutative100.0%
associate-/l*86.1%
associate--l+86.1%
fma-define86.1%
sub-neg86.1%
metadata-eval86.1%
Simplified86.1%
Taylor expanded in b around inf 72.4%
neg-mul-172.4%
Simplified72.4%
Taylor expanded in b around 0 38.9%
Taylor expanded in b around inf 38.9%
mul-1-neg38.9%
associate-*r/28.6%
*-commutative28.6%
associate-*l/38.9%
associate-*r/41.7%
distribute-rgt-neg-in41.7%
distribute-neg-frac41.7%
Simplified41.7%
if -7.6e105 < b < -9.49999999999999943e-216Initial program 97.7%
*-commutative97.7%
associate-/l*87.3%
associate--l+87.3%
fma-define87.3%
sub-neg87.3%
metadata-eval87.3%
Simplified87.3%
Taylor expanded in y around 0 67.6%
Taylor expanded in b around 0 67.6%
*-commutative67.6%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
+-commutative68.2%
Simplified68.2%
Taylor expanded in t around 0 42.1%
if -9.49999999999999943e-216 < b Initial program 99.0%
*-commutative99.0%
associate-/l*83.6%
associate--l+83.6%
fma-define83.6%
sub-neg83.6%
metadata-eval83.6%
Simplified83.6%
Taylor expanded in y around 0 79.3%
Taylor expanded in t around 0 57.7%
*-commutative57.7%
sub-neg57.7%
neg-mul-157.7%
distribute-neg-in57.7%
+-commutative57.7%
exp-neg57.7%
associate-*l/57.7%
*-lft-identity57.7%
+-commutative57.7%
exp-sum57.7%
rem-exp-log58.7%
Simplified58.7%
Taylor expanded in b around 0 38.5%
Final simplification39.9%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.12e-225) (- (/ x (* y a)) (* (/ x a) (/ b y))) (/ (/ x (+ a (* a b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.12e-225) {
tmp = (x / (y * a)) - ((x / a) * (b / y));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-1.12d-225)) then
tmp = (x / (y * a)) - ((x / a) * (b / y))
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.12e-225) {
tmp = (x / (y * a)) - ((x / a) * (b / y));
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.12e-225: tmp = (x / (y * a)) - ((x / a) * (b / y)) else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.12e-225) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x / a) * Float64(b / y))); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.12e-225) tmp = (x / (y * a)) - ((x / a) * (b / y)); else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.12e-225], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / a), $MachinePrecision] * N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.12 \cdot 10^{-225}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x}{a} \cdot \frac{b}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -1.12000000000000003e-225Initial program 98.5%
associate-/l*99.3%
associate--l+99.3%
exp-sum70.2%
associate-/l*68.2%
*-commutative68.2%
exp-to-pow68.2%
exp-diff63.4%
*-commutative63.4%
exp-to-pow64.0%
sub-neg64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in y around 0 68.1%
associate-/r*64.1%
exp-to-pow64.7%
sub-neg64.7%
metadata-eval64.7%
Simplified64.7%
Taylor expanded in t around 0 57.6%
Taylor expanded in b around 0 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
times-frac44.2%
Simplified44.2%
if -1.12000000000000003e-225 < b Initial program 99.0%
*-commutative99.0%
associate-/l*83.6%
associate--l+83.6%
fma-define83.6%
sub-neg83.6%
metadata-eval83.6%
Simplified83.6%
Taylor expanded in y around 0 79.3%
Taylor expanded in t around 0 57.7%
*-commutative57.7%
sub-neg57.7%
neg-mul-157.7%
distribute-neg-in57.7%
+-commutative57.7%
exp-neg57.7%
associate-*l/57.7%
*-lft-identity57.7%
+-commutative57.7%
exp-sum57.7%
rem-exp-log58.7%
Simplified58.7%
Taylor expanded in b around 0 38.5%
Final simplification40.8%
(FPCore (x y z t a b) :precision binary64 (if (<= b -5200000000000.0) (/ (- (/ x a) (* x (/ b a))) y) (/ (/ x (+ a (* a b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5200000000000.0) {
tmp = ((x / a) - (x * (b / a))) / y;
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-5200000000000.0d0)) then
tmp = ((x / a) - (x * (b / a))) / y
else
tmp = (x / (a + (a * b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5200000000000.0) {
tmp = ((x / a) - (x * (b / a))) / y;
} else {
tmp = (x / (a + (a * b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5200000000000.0: tmp = ((x / a) - (x * (b / a))) / y else: tmp = (x / (a + (a * b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5200000000000.0) tmp = Float64(Float64(Float64(x / a) - Float64(x * Float64(b / a))) / y); else tmp = Float64(Float64(x / Float64(a + Float64(a * b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5200000000000.0) tmp = ((x / a) - (x * (b / a))) / y; else tmp = (x / (a + (a * b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5200000000000.0], N[(N[(N[(x / a), $MachinePrecision] - N[(x * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / N[(a + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5200000000000:\\
\;\;\;\;\frac{\frac{x}{a} - x \cdot \frac{b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a + a \cdot b}}{y}\\
\end{array}
\end{array}
if b < -5.2e12Initial program 100.0%
*-commutative100.0%
associate-/l*88.5%
associate--l+88.5%
fma-define88.5%
sub-neg88.5%
metadata-eval88.5%
Simplified88.5%
Taylor expanded in y around 0 86.7%
Taylor expanded in t around 0 73.5%
*-commutative73.5%
sub-neg73.5%
neg-mul-173.5%
distribute-neg-in73.5%
+-commutative73.5%
exp-neg73.5%
associate-*l/73.5%
*-lft-identity73.5%
+-commutative73.5%
exp-sum73.5%
rem-exp-log73.5%
Simplified73.5%
Taylor expanded in b around 0 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
*-commutative46.3%
associate-/l*50.0%
Simplified50.0%
if -5.2e12 < b Initial program 98.5%
*-commutative98.5%
associate-/l*84.0%
associate--l+84.0%
fma-define84.0%
sub-neg84.0%
metadata-eval84.0%
Simplified84.0%
Taylor expanded in y around 0 76.2%
Taylor expanded in t around 0 52.0%
*-commutative52.0%
sub-neg52.0%
neg-mul-152.0%
distribute-neg-in52.0%
+-commutative52.0%
exp-neg52.0%
associate-*l/52.0%
*-lft-identity52.0%
+-commutative52.0%
exp-sum52.0%
rem-exp-log53.0%
Simplified53.0%
Taylor expanded in b around 0 37.8%
Final simplification40.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.05e+153) (* x (/ b (- y))) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.05e+153) {
tmp = x * (b / -y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (b <= (-1.05d+153)) then
tmp = x * (b / -y)
else
tmp = x / (a * (y + (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 tmp;
if (b <= -1.05e+153) {
tmp = x * (b / -y);
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.05e+153: tmp = x * (b / -y) else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.05e+153) tmp = Float64(x * Float64(b / Float64(-y))); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.05e+153) tmp = x * (b / -y); else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.05e+153], N[(x * N[(b / (-y)), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.05 \cdot 10^{+153}:\\
\;\;\;\;x \cdot \frac{b}{-y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.05000000000000008e153Initial program 100.0%
*-commutative100.0%
associate-/l*89.3%
associate--l+89.3%
fma-define89.3%
sub-neg89.3%
metadata-eval89.3%
Simplified89.3%
Taylor expanded in b around inf 82.2%
neg-mul-182.2%
Simplified82.2%
Taylor expanded in b around 0 45.3%
Taylor expanded in b around inf 45.3%
mul-1-neg45.3%
associate-*r/32.0%
*-commutative32.0%
associate-*l/45.3%
associate-*r/45.7%
distribute-rgt-neg-in45.7%
distribute-neg-frac45.7%
Simplified45.7%
if -1.05000000000000008e153 < b Initial program 98.7%
associate-/l*97.9%
associate--l+97.9%
exp-sum76.0%
associate-/l*74.7%
*-commutative74.7%
exp-to-pow74.7%
exp-diff67.2%
*-commutative67.2%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
Simplified68.1%
Taylor expanded in y around 0 66.2%
associate-/r*64.4%
exp-to-pow65.2%
sub-neg65.2%
metadata-eval65.2%
Simplified65.2%
Taylor expanded in t around 0 53.2%
Taylor expanded in b around 0 36.7%
Final simplification37.6%
(FPCore (x y z t a b) :precision binary64 (if (<= t 8e+39) (/ (/ x a) y) (* b (/ x (- y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 8e+39) {
tmp = (x / a) / y;
} else {
tmp = b * (x / -y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= 8d+39) then
tmp = (x / a) / y
else
tmp = b * (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 tmp;
if (t <= 8e+39) {
tmp = (x / a) / y;
} else {
tmp = b * (x / -y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 8e+39: tmp = (x / a) / y else: tmp = b * (x / -y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 8e+39) tmp = Float64(Float64(x / a) / y); else tmp = Float64(b * Float64(x / Float64(-y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 8e+39) tmp = (x / a) / y; else tmp = b * (x / -y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 8e+39], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(b * N[(x / (-y)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 8 \cdot 10^{+39}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;b \cdot \frac{x}{-y}\\
\end{array}
\end{array}
if t < 7.99999999999999952e39Initial program 98.5%
*-commutative98.5%
associate-/l*83.8%
associate--l+83.8%
fma-define83.8%
sub-neg83.8%
metadata-eval83.8%
Simplified83.8%
Taylor expanded in y around 0 75.4%
Taylor expanded in b around 0 52.6%
*-commutative52.6%
exp-to-pow53.6%
sub-neg53.6%
metadata-eval53.6%
+-commutative53.6%
Simplified53.6%
Taylor expanded in t around 0 37.3%
if 7.99999999999999952e39 < t Initial program 100.0%
*-commutative100.0%
associate-/l*89.1%
associate--l+89.1%
fma-define89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in b around inf 32.8%
neg-mul-132.8%
Simplified32.8%
Taylor expanded in b around 0 13.4%
Taylor expanded in b around inf 22.2%
associate-*r/22.2%
mul-1-neg22.2%
distribute-rgt-neg-in22.2%
associate-*r/18.7%
Simplified18.7%
Final simplification33.3%
(FPCore (x y z t a b) :precision binary64 (if (<= t 9.5e+37) (/ (/ x a) y) (* x (/ b (- y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 9.5e+37) {
tmp = (x / a) / y;
} else {
tmp = x * (b / -y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= 9.5d+37) then
tmp = (x / a) / y
else
tmp = x * (b / -y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 9.5e+37) {
tmp = (x / a) / y;
} else {
tmp = x * (b / -y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 9.5e+37: tmp = (x / a) / y else: tmp = x * (b / -y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 9.5e+37) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x * Float64(b / Float64(-y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 9.5e+37) tmp = (x / a) / y; else tmp = x * (b / -y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 9.5e+37], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(b / (-y)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 9.5 \cdot 10^{+37}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{b}{-y}\\
\end{array}
\end{array}
if t < 9.4999999999999995e37Initial program 98.5%
*-commutative98.5%
associate-/l*83.8%
associate--l+83.8%
fma-define83.8%
sub-neg83.8%
metadata-eval83.8%
Simplified83.8%
Taylor expanded in y around 0 75.4%
Taylor expanded in b around 0 52.6%
*-commutative52.6%
exp-to-pow53.6%
sub-neg53.6%
metadata-eval53.6%
+-commutative53.6%
Simplified53.6%
Taylor expanded in t around 0 37.3%
if 9.4999999999999995e37 < t Initial program 100.0%
*-commutative100.0%
associate-/l*89.1%
associate--l+89.1%
fma-define89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in b around inf 32.8%
neg-mul-132.8%
Simplified32.8%
Taylor expanded in b around 0 13.4%
Taylor expanded in b around inf 22.2%
mul-1-neg22.2%
associate-*r/18.7%
*-commutative18.7%
associate-*l/22.2%
associate-*r/20.5%
distribute-rgt-neg-in20.5%
distribute-neg-frac20.5%
Simplified20.5%
Final simplification33.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t 1.9e+38) (/ (/ x a) y) (/ (* x (- b)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 1.9e+38) {
tmp = (x / a) / y;
} else {
tmp = (x * -b) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= 1.9d+38) then
tmp = (x / a) / y
else
tmp = (x * -b) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 1.9e+38) {
tmp = (x / a) / y;
} else {
tmp = (x * -b) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 1.9e+38: tmp = (x / a) / y else: tmp = (x * -b) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 1.9e+38) tmp = Float64(Float64(x / a) / y); else tmp = Float64(Float64(x * Float64(-b)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 1.9e+38) tmp = (x / a) / y; else tmp = (x * -b) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 1.9e+38], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * (-b)), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 1.9 \cdot 10^{+38}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y}\\
\end{array}
\end{array}
if t < 1.8999999999999999e38Initial program 98.5%
*-commutative98.5%
associate-/l*83.8%
associate--l+83.8%
fma-define83.8%
sub-neg83.8%
metadata-eval83.8%
Simplified83.8%
Taylor expanded in y around 0 75.4%
Taylor expanded in b around 0 52.6%
*-commutative52.6%
exp-to-pow53.6%
sub-neg53.6%
metadata-eval53.6%
+-commutative53.6%
Simplified53.6%
Taylor expanded in t around 0 37.3%
if 1.8999999999999999e38 < t Initial program 100.0%
*-commutative100.0%
associate-/l*89.1%
associate--l+89.1%
fma-define89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in b around inf 32.8%
neg-mul-132.8%
Simplified32.8%
Taylor expanded in b around 0 13.4%
+-commutative13.4%
clear-num13.4%
associate-*r/13.4%
frac-add14.8%
*-un-lft-identity14.8%
*-commutative14.8%
Applied egg-rr14.8%
Taylor expanded in b around inf 22.2%
associate-*r/22.2%
associate-*r*22.2%
mul-1-neg22.2%
Simplified22.2%
Final simplification34.0%
(FPCore (x y z t a b) :precision binary64 (if (<= t 7.8e+122) (/ x (* y a)) (/ x y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 7.8e+122) {
tmp = x / (y * a);
} else {
tmp = x / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= 7.8d+122) then
tmp = x / (y * a)
else
tmp = x / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 7.8e+122) {
tmp = x / (y * a);
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 7.8e+122: tmp = x / (y * a) else: tmp = x / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 7.8e+122) tmp = Float64(x / Float64(y * a)); else tmp = Float64(x / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 7.8e+122) tmp = x / (y * a); else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 7.8e+122], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 7.8 \cdot 10^{+122}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if t < 7.7999999999999999e122Initial program 98.6%
*-commutative98.6%
associate-/l*84.3%
associate--l+84.3%
fma-define84.3%
sub-neg84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in y around 0 76.2%
Taylor expanded in b around 0 54.0%
*-commutative54.0%
exp-to-pow54.9%
sub-neg54.9%
metadata-eval54.9%
+-commutative54.9%
Simplified54.9%
Taylor expanded in t around 0 34.4%
if 7.7999999999999999e122 < t Initial program 100.0%
*-commutative100.0%
associate-/l*88.9%
associate--l+88.9%
fma-define88.9%
sub-neg88.9%
metadata-eval88.9%
Simplified88.9%
Taylor expanded in b around inf 29.7%
neg-mul-129.7%
Simplified29.7%
Taylor expanded in b around 0 16.8%
Final simplification31.9%
(FPCore (x y z t a b) :precision binary64 (if (<= t 4.2e+122) (/ (/ x a) y) (/ x y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 4.2e+122) {
tmp = (x / a) / y;
} else {
tmp = x / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: tmp
if (t <= 4.2d+122) then
tmp = (x / a) / y
else
tmp = x / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= 4.2e+122) {
tmp = (x / a) / y;
} else {
tmp = x / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= 4.2e+122: tmp = (x / a) / y else: tmp = x / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= 4.2e+122) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= 4.2e+122) tmp = (x / a) / y; else tmp = x / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, 4.2e+122], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 4.2 \cdot 10^{+122}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y}\\
\end{array}
\end{array}
if t < 4.20000000000000032e122Initial program 98.6%
*-commutative98.6%
associate-/l*84.3%
associate--l+84.3%
fma-define84.3%
sub-neg84.3%
metadata-eval84.3%
Simplified84.3%
Taylor expanded in y around 0 76.2%
Taylor expanded in b around 0 54.0%
*-commutative54.0%
exp-to-pow54.9%
sub-neg54.9%
metadata-eval54.9%
+-commutative54.9%
Simplified54.9%
Taylor expanded in t around 0 35.6%
if 4.20000000000000032e122 < t Initial program 100.0%
*-commutative100.0%
associate-/l*88.9%
associate--l+88.9%
fma-define88.9%
sub-neg88.9%
metadata-eval88.9%
Simplified88.9%
Taylor expanded in b around inf 29.7%
neg-mul-129.7%
Simplified29.7%
Taylor expanded in b around 0 16.8%
Final simplification33.0%
(FPCore (x y z t a b) :precision binary64 (/ x y))
double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
real(8) function code(x, y, z, t, a, b)
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
code = x / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / y;
}
def code(x, y, z, t, a, b): return x / y
function code(x, y, z, t, a, b) return Float64(x / y) end
function tmp = code(x, y, z, t, a, b) tmp = x / y; end
code[x_, y_, z_, t_, a_, b_] := N[(x / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y}
\end{array}
Initial program 98.8%
*-commutative98.8%
associate-/l*84.9%
associate--l+84.9%
fma-define84.9%
sub-neg84.9%
metadata-eval84.9%
Simplified84.9%
Taylor expanded in b around inf 39.1%
neg-mul-139.1%
Simplified39.1%
Taylor expanded in b around 0 13.9%
Final simplification13.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (- t 1.0)))
(t_2 (/ (* x (/ t_1 y)) (- (+ b 1.0) (* y (log z))))))
(if (< t -0.8845848504127471)
t_2
(if (< t 852031.2288374073)
(/ (* (/ x y) t_1) (exp (- b (* (log z) y))))
t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a ** (t - 1.0d0)
t_2 = (x * (t_1 / y)) / ((b + 1.0d0) - (y * log(z)))
if (t < (-0.8845848504127471d0)) then
tmp = t_2
else if (t < 852031.2288374073d0) then
tmp = ((x / y) * t_1) / exp((b - (log(z) * y)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = Math.pow(a, (t - 1.0));
double t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * Math.log(z)));
double tmp;
if (t < -0.8845848504127471) {
tmp = t_2;
} else if (t < 852031.2288374073) {
tmp = ((x / y) * t_1) / Math.exp((b - (Math.log(z) * y)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = math.pow(a, (t - 1.0)) t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * math.log(z))) tmp = 0 if t < -0.8845848504127471: tmp = t_2 elif t < 852031.2288374073: tmp = ((x / y) * t_1) / math.exp((b - (math.log(z) * y))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = a ^ Float64(t - 1.0) t_2 = Float64(Float64(x * Float64(t_1 / y)) / Float64(Float64(b + 1.0) - Float64(y * log(z)))) tmp = 0.0 if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = Float64(Float64(Float64(x / y) * t_1) / exp(Float64(b - Float64(log(z) * y)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a ^ (t - 1.0); t_2 = (x * (t_1 / y)) / ((b + 1.0) - (y * log(z))); tmp = 0.0; if (t < -0.8845848504127471) tmp = t_2; elseif (t < 852031.2288374073) tmp = ((x / y) * t_1) / exp((b - (log(z) * y))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[Power[a, N[(t - 1.0), $MachinePrecision]], $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision] / N[(N[(b + 1.0), $MachinePrecision] - N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -0.8845848504127471], t$95$2, If[Less[t, 852031.2288374073], N[(N[(N[(x / y), $MachinePrecision] * t$95$1), $MachinePrecision] / N[Exp[N[(b - N[(N[Log[z], $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t - 1\right)}\\
t_2 := \frac{x \cdot \frac{t\_1}{y}}{\left(b + 1\right) - y \cdot \log z}\\
\mathbf{if}\;t < -0.8845848504127471:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 852031.2288374073:\\
\;\;\;\;\frac{\frac{x}{y} \cdot t\_1}{e^{b - \log z \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024115
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))