
(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 21 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.6%
Final simplification98.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -1.2) (not (<= (+ t -1.0) -1.0))) (/ (* 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) <= -1.2) || !((t + -1.0) <= -1.0)) {
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)) <= (-1.2d0)) .or. (.not. ((t + (-1.0d0)) <= (-1.0d0)))) 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) <= -1.2) || !((t + -1.0) <= -1.0)) {
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) <= -1.2) or not ((t + -1.0) <= -1.0): 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) <= -1.2) || !(Float64(t + -1.0) <= -1.0)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * 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) <= -1.2) || ~(((t + -1.0) <= -1.0))) 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], -1.2], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], -1.0]], $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[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -1.2 \lor \neg \left(t + -1 \leq -1\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t 1) < -1.19999999999999996 or -1 < (-.f64 t 1) Initial program 99.9%
Taylor expanded in y around 0 93.1%
if -1.19999999999999996 < (-.f64 t 1) < -1Initial program 96.8%
Taylor expanded in t around 0 96.8%
+-commutative96.8%
mul-1-neg96.8%
unsub-neg96.8%
Simplified96.8%
Final simplification94.7%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= y -1.6e+109)
(not
(or (<= y 3.4e+78) (and (not (<= y 7.2e+162)) (<= y 1.05e+249)))))
(/ (* 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 <= -1.6e+109) || !((y <= 3.4e+78) || (!(y <= 7.2e+162) && (y <= 1.05e+249)))) {
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 <= (-1.6d+109)) .or. (.not. (y <= 3.4d+78) .or. (.not. (y <= 7.2d+162)) .and. (y <= 1.05d+249))) 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 <= -1.6e+109) || !((y <= 3.4e+78) || (!(y <= 7.2e+162) && (y <= 1.05e+249)))) {
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 <= -1.6e+109) or not ((y <= 3.4e+78) or (not (y <= 7.2e+162) and (y <= 1.05e+249))): 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 <= -1.6e+109) || !((y <= 3.4e+78) || (!(y <= 7.2e+162) && (y <= 1.05e+249)))) tmp = Float64(Float64(x * 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 <= -1.6e+109) || ~(((y <= 3.4e+78) || (~((y <= 7.2e+162)) && (y <= 1.05e+249))))) 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, -1.6e+109], N[Not[Or[LessEqual[y, 3.4e+78], And[N[Not[LessEqual[y, 7.2e+162]], $MachinePrecision], LessEqual[y, 1.05e+249]]]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $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 -1.6 \cdot 10^{+109} \lor \neg \left(y \leq 3.4 \cdot 10^{+78} \lor \neg \left(y \leq 7.2 \cdot 10^{+162}\right) \land y \leq 1.05 \cdot 10^{+249}\right):\\
\;\;\;\;\frac{x \cdot \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 < -1.6000000000000001e109 or 3.40000000000000007e78 < y < 7.19999999999999987e162 or 1.0499999999999999e249 < y Initial program 100.0%
Taylor expanded in t around 0 92.7%
+-commutative92.7%
mul-1-neg92.7%
unsub-neg92.7%
Simplified92.7%
Taylor expanded in b around 0 89.7%
div-exp89.7%
*-commutative89.7%
exp-to-pow89.7%
rem-exp-log89.7%
Simplified89.7%
if -1.6000000000000001e109 < y < 3.40000000000000007e78 or 7.19999999999999987e162 < y < 1.0499999999999999e249Initial program 98.1%
Taylor expanded in y around 0 94.5%
Final simplification93.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b)))
(t_2 (/ (* x (pow a (+ t -1.0))) y))
(t_3 (/ (* x (/ (pow z y) a)) y)))
(if (<= t -0.18)
t_2
(if (<= t -1.42e-102)
(/ x (* a t_1))
(if (<= t -9e-208)
t_3
(if (<= t 1.52e-208)
(* (/ (pow z y) t_1) (/ x a))
(if (<= t 2e+60) t_3 t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double t_2 = (x * pow(a, (t + -1.0))) / y;
double t_3 = (x * (pow(z, y) / a)) / y;
double tmp;
if (t <= -0.18) {
tmp = t_2;
} else if (t <= -1.42e-102) {
tmp = x / (a * t_1);
} else if (t <= -9e-208) {
tmp = t_3;
} else if (t <= 1.52e-208) {
tmp = (pow(z, y) / t_1) * (x / a);
} else if (t <= 2e+60) {
tmp = t_3;
} 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) :: t_3
real(8) :: tmp
t_1 = y * exp(b)
t_2 = (x * (a ** (t + (-1.0d0)))) / y
t_3 = (x * ((z ** y) / a)) / y
if (t <= (-0.18d0)) then
tmp = t_2
else if (t <= (-1.42d-102)) then
tmp = x / (a * t_1)
else if (t <= (-9d-208)) then
tmp = t_3
else if (t <= 1.52d-208) then
tmp = ((z ** y) / t_1) * (x / a)
else if (t <= 2d+60) then
tmp = t_3
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 = y * Math.exp(b);
double t_2 = (x * Math.pow(a, (t + -1.0))) / y;
double t_3 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (t <= -0.18) {
tmp = t_2;
} else if (t <= -1.42e-102) {
tmp = x / (a * t_1);
} else if (t <= -9e-208) {
tmp = t_3;
} else if (t <= 1.52e-208) {
tmp = (Math.pow(z, y) / t_1) * (x / a);
} else if (t <= 2e+60) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) t_2 = (x * math.pow(a, (t + -1.0))) / y t_3 = (x * (math.pow(z, y) / a)) / y tmp = 0 if t <= -0.18: tmp = t_2 elif t <= -1.42e-102: tmp = x / (a * t_1) elif t <= -9e-208: tmp = t_3 elif t <= 1.52e-208: tmp = (math.pow(z, y) / t_1) * (x / a) elif t <= 2e+60: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) t_2 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) t_3 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (t <= -0.18) tmp = t_2; elseif (t <= -1.42e-102) tmp = Float64(x / Float64(a * t_1)); elseif (t <= -9e-208) tmp = t_3; elseif (t <= 1.52e-208) tmp = Float64(Float64((z ^ y) / t_1) * Float64(x / a)); elseif (t <= 2e+60) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = y * exp(b); t_2 = (x * (a ^ (t + -1.0))) / y; t_3 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (t <= -0.18) tmp = t_2; elseif (t <= -1.42e-102) tmp = x / (a * t_1); elseif (t <= -9e-208) tmp = t_3; elseif (t <= 1.52e-208) tmp = ((z ^ y) / t_1) * (x / a); elseif (t <= 2e+60) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -0.18], t$95$2, If[LessEqual[t, -1.42e-102], N[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e-208], t$95$3, If[LessEqual[t, 1.52e-208], N[(N[(N[Power[z, y], $MachinePrecision] / t$95$1), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2e+60], t$95$3, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
t_2 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
t_3 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;t \leq -0.18:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.42 \cdot 10^{-102}:\\
\;\;\;\;\frac{x}{a \cdot t_1}\\
\mathbf{elif}\;t \leq -9 \cdot 10^{-208}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq 1.52 \cdot 10^{-208}:\\
\;\;\;\;\frac{{z}^{y}}{t_1} \cdot \frac{x}{a}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+60}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -0.17999999999999999 or 1.9999999999999999e60 < t Initial program 99.9%
Taylor expanded in y around 0 93.8%
Taylor expanded in b around 0 83.9%
*-commutative83.9%
exp-to-pow84.0%
sub-neg84.0%
metadata-eval84.0%
+-commutative84.0%
Simplified84.0%
if -0.17999999999999999 < t < -1.42000000000000009e-102Initial program 99.2%
associate-*l/76.1%
*-commutative76.1%
+-commutative76.1%
associate--l+76.1%
exp-sum76.1%
*-commutative76.1%
exp-to-pow76.3%
sub-neg76.3%
metadata-eval76.3%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
Simplified64.3%
Taylor expanded in t around 0 72.0%
times-frac63.9%
Simplified63.9%
Taylor expanded in y around 0 76.7%
if -1.42000000000000009e-102 < t < -8.9999999999999992e-208 or 1.52e-208 < t < 1.9999999999999999e60Initial program 97.0%
Taylor expanded in t around 0 92.5%
+-commutative92.5%
mul-1-neg92.5%
unsub-neg92.5%
Simplified92.5%
Taylor expanded in b around 0 80.9%
div-exp80.9%
*-commutative80.9%
exp-to-pow80.9%
rem-exp-log82.1%
Simplified82.1%
if -8.9999999999999992e-208 < t < 1.52e-208Initial program 96.2%
associate-*l/90.6%
*-commutative90.6%
+-commutative90.6%
associate--l+90.6%
exp-sum90.5%
*-commutative90.5%
exp-to-pow91.7%
sub-neg91.7%
metadata-eval91.7%
exp-diff83.3%
*-commutative83.3%
exp-to-pow83.3%
Simplified83.3%
Taylor expanded in t around 0 88.9%
times-frac89.1%
Simplified89.1%
Final simplification83.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (/ a (/ (pow z y) (* y (exp b))))))
(t_2 (/ (* x (pow a (+ t -1.0))) y)))
(if (<= t -2.2e+56)
t_2
(if (<= t 6.4e-169)
t_1
(if (<= t 1.45e-51)
(* (/ x a) (/ (pow z y) y))
(if (<= t 3.3e+72) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a / (pow(z, y) / (y * exp(b))));
double t_2 = (x * pow(a, (t + -1.0))) / y;
double tmp;
if (t <= -2.2e+56) {
tmp = t_2;
} else if (t <= 6.4e-169) {
tmp = t_1;
} else if (t <= 1.45e-51) {
tmp = (x / a) * (pow(z, y) / y);
} else if (t <= 3.3e+72) {
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 / ((z ** y) / (y * exp(b))))
t_2 = (x * (a ** (t + (-1.0d0)))) / y
if (t <= (-2.2d+56)) then
tmp = t_2
else if (t <= 6.4d-169) then
tmp = t_1
else if (t <= 1.45d-51) then
tmp = (x / a) * ((z ** y) / y)
else if (t <= 3.3d+72) 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 / (a / (Math.pow(z, y) / (y * Math.exp(b))));
double t_2 = (x * Math.pow(a, (t + -1.0))) / y;
double tmp;
if (t <= -2.2e+56) {
tmp = t_2;
} else if (t <= 6.4e-169) {
tmp = t_1;
} else if (t <= 1.45e-51) {
tmp = (x / a) * (Math.pow(z, y) / y);
} else if (t <= 3.3e+72) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a / (math.pow(z, y) / (y * math.exp(b)))) t_2 = (x * math.pow(a, (t + -1.0))) / y tmp = 0 if t <= -2.2e+56: tmp = t_2 elif t <= 6.4e-169: tmp = t_1 elif t <= 1.45e-51: tmp = (x / a) * (math.pow(z, y) / y) elif t <= 3.3e+72: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a / Float64((z ^ y) / Float64(y * exp(b))))) t_2 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) tmp = 0.0 if (t <= -2.2e+56) tmp = t_2; elseif (t <= 6.4e-169) tmp = t_1; elseif (t <= 1.45e-51) tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); elseif (t <= 3.3e+72) 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 / ((z ^ y) / (y * exp(b)))); t_2 = (x * (a ^ (t + -1.0))) / y; tmp = 0.0; if (t <= -2.2e+56) tmp = t_2; elseif (t <= 6.4e-169) tmp = t_1; elseif (t <= 1.45e-51) tmp = (x / a) * ((z ^ y) / y); elseif (t <= 3.3e+72) 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[(a / N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -2.2e+56], t$95$2, If[LessEqual[t, 6.4e-169], t$95$1, If[LessEqual[t, 1.45e-51], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.3e+72], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{a}{\frac{{z}^{y}}{y \cdot e^{b}}}}\\
t_2 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -2.2 \cdot 10^{+56}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-51}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{elif}\;t \leq 3.3 \cdot 10^{+72}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.20000000000000016e56 or 3.3e72 < t Initial program 100.0%
Taylor expanded in y around 0 94.9%
Taylor expanded in b around 0 85.4%
*-commutative85.4%
exp-to-pow85.4%
sub-neg85.4%
metadata-eval85.4%
+-commutative85.4%
Simplified85.4%
if -2.20000000000000016e56 < t < 6.39999999999999989e-169 or 1.44999999999999986e-51 < t < 3.3e72Initial program 97.3%
associate-/l*96.6%
associate--l+96.6%
exp-sum82.9%
associate-/r*82.9%
*-commutative82.9%
exp-to-pow82.9%
exp-diff78.9%
*-commutative78.9%
exp-to-pow79.8%
sub-neg79.8%
metadata-eval79.8%
Simplified79.8%
Taylor expanded in t around 0 81.6%
associate-/l*83.1%
Simplified83.1%
if 6.39999999999999989e-169 < t < 1.44999999999999986e-51Initial program 98.0%
associate-*l/92.1%
*-commutative92.1%
+-commutative92.1%
associate--l+92.1%
exp-sum92.1%
*-commutative92.1%
exp-to-pow93.8%
sub-neg93.8%
metadata-eval93.8%
exp-diff70.3%
*-commutative70.3%
exp-to-pow70.3%
Simplified70.3%
Taylor expanded in t around 0 70.9%
times-frac76.4%
Simplified76.4%
Taylor expanded in b around 0 94.4%
times-frac99.9%
Simplified99.9%
Final simplification85.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.3e+131) (not (<= b 4.3))) (/ x (* a (* y (exp b)))) (/ x (/ (/ y (pow z y)) (pow a (+ t -1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.3e+131) || !(b <= 4.3)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x / ((y / pow(z, y)) / pow(a, (t + -1.0)));
}
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.3d+131)) .or. (.not. (b <= 4.3d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x / ((y / (z ** y)) / (a ** (t + (-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 tmp;
if ((b <= -1.3e+131) || !(b <= 4.3)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x / ((y / Math.pow(z, y)) / Math.pow(a, (t + -1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.3e+131) or not (b <= 4.3): tmp = x / (a * (y * math.exp(b))) else: tmp = x / ((y / math.pow(z, y)) / math.pow(a, (t + -1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.3e+131) || !(b <= 4.3)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x / Float64(Float64(y / (z ^ y)) / (a ^ Float64(t + -1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.3e+131) || ~((b <= 4.3))) tmp = x / (a * (y * exp(b))); else tmp = x / ((y / (z ^ y)) / (a ^ (t + -1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.3e+131], N[Not[LessEqual[b, 4.3]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(N[(y / N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.3 \cdot 10^{+131} \lor \neg \left(b \leq 4.3\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{\frac{y}{{z}^{y}}}{{a}^{\left(t + -1\right)}}}\\
\end{array}
\end{array}
if b < -1.3e131 or 4.29999999999999982 < b Initial program 99.9%
associate-*l/86.7%
*-commutative86.7%
+-commutative86.7%
associate--l+86.7%
exp-sum59.3%
*-commutative59.3%
exp-to-pow59.4%
sub-neg59.4%
metadata-eval59.4%
exp-diff48.1%
*-commutative48.1%
exp-to-pow48.1%
Simplified48.1%
Taylor expanded in t around 0 69.9%
times-frac65.2%
Simplified65.2%
Taylor expanded in y around 0 84.2%
if -1.3e131 < b < 4.29999999999999982Initial program 97.6%
associate-*l/84.3%
*-commutative84.3%
+-commutative84.3%
associate--l+84.3%
exp-sum69.7%
*-commutative69.7%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
exp-diff68.6%
*-commutative68.6%
exp-to-pow68.7%
Simplified68.7%
Taylor expanded in b around 0 81.6%
associate-/l*80.5%
exp-to-pow81.4%
sub-neg81.4%
metadata-eval81.4%
associate-/l/81.4%
Simplified81.4%
Final simplification82.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (pow a (+ t -1.0))) y)))
(if (<= t -0.3)
t_1
(if (<= t 1.3e-173)
(* (/ (pow z y) (* a (exp b))) (/ x y))
(if (<= t 8e+63) (/ (* x (/ (pow z y) a)) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * pow(a, (t + -1.0))) / y;
double tmp;
if (t <= -0.3) {
tmp = t_1;
} else if (t <= 1.3e-173) {
tmp = (pow(z, y) / (a * exp(b))) * (x / y);
} else if (t <= 8e+63) {
tmp = (x * (pow(z, y) / a)) / 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 * (a ** (t + (-1.0d0)))) / y
if (t <= (-0.3d0)) then
tmp = t_1
else if (t <= 1.3d-173) then
tmp = ((z ** y) / (a * exp(b))) * (x / y)
else if (t <= 8d+63) then
tmp = (x * ((z ** y) / a)) / 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(a, (t + -1.0))) / y;
double tmp;
if (t <= -0.3) {
tmp = t_1;
} else if (t <= 1.3e-173) {
tmp = (Math.pow(z, y) / (a * Math.exp(b))) * (x / y);
} else if (t <= 8e+63) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * math.pow(a, (t + -1.0))) / y tmp = 0 if t <= -0.3: tmp = t_1 elif t <= 1.3e-173: tmp = (math.pow(z, y) / (a * math.exp(b))) * (x / y) elif t <= 8e+63: tmp = (x * (math.pow(z, y) / a)) / y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y) tmp = 0.0 if (t <= -0.3) tmp = t_1; elseif (t <= 1.3e-173) tmp = Float64(Float64((z ^ y) / Float64(a * exp(b))) * Float64(x / y)); elseif (t <= 8e+63) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * (a ^ (t + -1.0))) / y; tmp = 0.0; if (t <= -0.3) tmp = t_1; elseif (t <= 1.3e-173) tmp = ((z ^ y) / (a * exp(b))) * (x / y); elseif (t <= 8e+63) tmp = (x * ((z ^ y) / a)) / y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -0.3], t$95$1, If[LessEqual[t, 1.3e-173], N[(N[(N[Power[z, y], $MachinePrecision] / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+63], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -0.3:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 1.3 \cdot 10^{-173}:\\
\;\;\;\;\frac{{z}^{y}}{a \cdot e^{b}} \cdot \frac{x}{y}\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+63}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -0.299999999999999989 or 8.00000000000000046e63 < t Initial program 99.9%
Taylor expanded in y around 0 93.8%
Taylor expanded in b around 0 83.9%
*-commutative83.9%
exp-to-pow84.0%
sub-neg84.0%
metadata-eval84.0%
+-commutative84.0%
Simplified84.0%
if -0.299999999999999989 < t < 1.30000000000000002e-173Initial program 96.5%
associate-*l/88.5%
*-commutative88.5%
+-commutative88.5%
associate--l+88.5%
exp-sum88.5%
*-commutative88.5%
exp-to-pow89.7%
sub-neg89.7%
metadata-eval89.7%
exp-diff81.6%
*-commutative81.6%
exp-to-pow81.6%
Simplified81.6%
Taylor expanded in t around 0 81.6%
if 1.30000000000000002e-173 < t < 8.00000000000000046e63Initial program 98.8%
Taylor expanded in t around 0 91.5%
+-commutative91.5%
mul-1-neg91.5%
unsub-neg91.5%
Simplified91.5%
Taylor expanded in b around 0 76.8%
div-exp76.8%
*-commutative76.8%
exp-to-pow76.8%
rem-exp-log77.8%
Simplified77.8%
Final simplification82.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -8e+97) (not (<= b 4.3))) (/ x (* a (* y (exp b)))) (* (/ x a) (/ (pow z y) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -8e+97) || !(b <= 4.3)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x / a) * (pow(z, y) / 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 <= (-8d+97)) .or. (.not. (b <= 4.3d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x / a) * ((z ** y) / 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 <= -8e+97) || !(b <= 4.3)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x / a) * (Math.pow(z, y) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -8e+97) or not (b <= 4.3): tmp = x / (a * (y * math.exp(b))) else: tmp = (x / a) * (math.pow(z, y) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -8e+97) || !(b <= 4.3)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x / a) * Float64((z ^ y) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -8e+97) || ~((b <= 4.3))) tmp = x / (a * (y * exp(b))); else tmp = (x / a) * ((z ^ y) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -8e+97], N[Not[LessEqual[b, 4.3]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8 \cdot 10^{+97} \lor \neg \left(b \leq 4.3\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\end{array}
\end{array}
if b < -8.0000000000000006e97 or 4.29999999999999982 < b Initial program 99.9%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum60.1%
*-commutative60.1%
exp-to-pow60.2%
sub-neg60.2%
metadata-eval60.2%
exp-diff49.1%
*-commutative49.1%
exp-to-pow49.1%
Simplified49.1%
Taylor expanded in t around 0 68.8%
times-frac63.7%
Simplified63.7%
Taylor expanded in y around 0 82.5%
if -8.0000000000000006e97 < b < 4.29999999999999982Initial program 97.4%
associate-*l/83.7%
*-commutative83.7%
+-commutative83.7%
associate--l+83.7%
exp-sum69.9%
*-commutative69.9%
exp-to-pow71.0%
sub-neg71.0%
metadata-eval71.0%
exp-diff69.5%
*-commutative69.5%
exp-to-pow69.6%
Simplified69.6%
Taylor expanded in t around 0 63.0%
times-frac61.7%
Simplified61.7%
Taylor expanded in b around 0 64.5%
times-frac63.2%
Simplified63.2%
Final simplification72.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.05e+98) (not (<= b 46.0))) (/ x (* a (* y (exp b)))) (/ (* x (/ (pow z y) a)) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.05e+98) || !(b <= 46.0)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x * (pow(z, y) / a)) / 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 <= (-2.05d+98)) .or. (.not. (b <= 46.0d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x * ((z ** y) / a)) / 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 <= -2.05e+98) || !(b <= 46.0)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x * (Math.pow(z, y) / a)) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.05e+98) or not (b <= 46.0): tmp = x / (a * (y * math.exp(b))) else: tmp = (x * (math.pow(z, y) / a)) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.05e+98) || !(b <= 46.0)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.05e+98) || ~((b <= 46.0))) tmp = x / (a * (y * exp(b))); else tmp = (x * ((z ^ y) / a)) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.05e+98], N[Not[LessEqual[b, 46.0]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.05 \cdot 10^{+98} \lor \neg \left(b \leq 46\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\end{array}
\end{array}
if b < -2.05e98 or 46 < b Initial program 99.9%
associate-*l/87.1%
*-commutative87.1%
+-commutative87.1%
associate--l+87.1%
exp-sum60.6%
*-commutative60.6%
exp-to-pow60.7%
sub-neg60.7%
metadata-eval60.7%
exp-diff49.6%
*-commutative49.6%
exp-to-pow49.6%
Simplified49.6%
Taylor expanded in t around 0 68.5%
times-frac64.2%
Simplified64.2%
Taylor expanded in y around 0 83.2%
if -2.05e98 < b < 46Initial program 97.4%
Taylor expanded in t around 0 68.1%
+-commutative68.1%
mul-1-neg68.1%
unsub-neg68.1%
Simplified68.1%
Taylor expanded in b around 0 67.4%
div-exp67.4%
*-commutative67.4%
exp-to-pow67.4%
rem-exp-log68.4%
Simplified68.4%
Final simplification75.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -9e+95) (not (<= b 4.3))) (/ x (* a (* y (exp b)))) (/ (* x (pow a (+ t -1.0))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -9e+95) || !(b <= 4.3)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = (x * pow(a, (t + -1.0))) / 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 <= (-9d+95)) .or. (.not. (b <= 4.3d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = (x * (a ** (t + (-1.0d0)))) / 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 <= -9e+95) || !(b <= 4.3)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = (x * Math.pow(a, (t + -1.0))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -9e+95) or not (b <= 4.3): tmp = x / (a * (y * math.exp(b))) else: tmp = (x * math.pow(a, (t + -1.0))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -9e+95) || !(b <= 4.3)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(Float64(x * (a ^ Float64(t + -1.0))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -9e+95) || ~((b <= 4.3))) tmp = x / (a * (y * exp(b))); else tmp = (x * (a ^ (t + -1.0))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -9e+95], N[Not[LessEqual[b, 4.3]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{+95} \lor \neg \left(b \leq 4.3\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if b < -9.00000000000000033e95 or 4.29999999999999982 < b Initial program 99.9%
associate-*l/87.2%
*-commutative87.2%
+-commutative87.2%
associate--l+87.2%
exp-sum60.1%
*-commutative60.1%
exp-to-pow60.2%
sub-neg60.2%
metadata-eval60.2%
exp-diff49.1%
*-commutative49.1%
exp-to-pow49.1%
Simplified49.1%
Taylor expanded in t around 0 68.8%
times-frac63.7%
Simplified63.7%
Taylor expanded in y around 0 82.5%
if -9.00000000000000033e95 < b < 4.29999999999999982Initial program 97.4%
Taylor expanded in y around 0 75.4%
Taylor expanded in b around 0 74.7%
*-commutative74.7%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
+-commutative75.6%
Simplified75.6%
Final simplification78.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.6%
associate-*l/85.3%
*-commutative85.3%
+-commutative85.3%
associate--l+85.3%
exp-sum65.4%
*-commutative65.4%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
exp-diff60.1%
*-commutative60.1%
exp-to-pow60.1%
Simplified60.1%
Taylor expanded in t around 0 65.7%
times-frac62.6%
Simplified62.6%
Taylor expanded in y around 0 58.9%
Final simplification58.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -9.2e-48)
(/ (* x (- b)) (* y a))
(if (<= b 6e-46)
(/ 1.0 (/ a (/ x y)))
(if (<= b 1.75e+257)
(/ x (+ (* y a) (* y (* a b))))
(/ x (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9.2e-48) {
tmp = (x * -b) / (y * a);
} else if (b <= 6e-46) {
tmp = 1.0 / (a / (x / y));
} else if (b <= 1.75e+257) {
tmp = x / ((y * a) + (y * (a * b)));
} else {
tmp = x / (a * (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 <= (-9.2d-48)) then
tmp = (x * -b) / (y * a)
else if (b <= 6d-46) then
tmp = 1.0d0 / (a / (x / y))
else if (b <= 1.75d+257) then
tmp = x / ((y * a) + (y * (a * b)))
else
tmp = x / (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 tmp;
if (b <= -9.2e-48) {
tmp = (x * -b) / (y * a);
} else if (b <= 6e-46) {
tmp = 1.0 / (a / (x / y));
} else if (b <= 1.75e+257) {
tmp = x / ((y * a) + (y * (a * b)));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9.2e-48: tmp = (x * -b) / (y * a) elif b <= 6e-46: tmp = 1.0 / (a / (x / y)) elif b <= 1.75e+257: tmp = x / ((y * a) + (y * (a * b))) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9.2e-48) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= 6e-46) tmp = Float64(1.0 / Float64(a / Float64(x / y))); elseif (b <= 1.75e+257) tmp = Float64(x / Float64(Float64(y * a) + Float64(y * Float64(a * b)))); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9.2e-48) tmp = (x * -b) / (y * a); elseif (b <= 6e-46) tmp = 1.0 / (a / (x / y)); elseif (b <= 1.75e+257) tmp = x / ((y * a) + (y * (a * b))); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9.2e-48], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e-46], N[(1.0 / N[(a / N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e+257], N[(x / N[(N[(y * a), $MachinePrecision] + N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.2 \cdot 10^{-48}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-46}:\\
\;\;\;\;\frac{1}{\frac{a}{\frac{x}{y}}}\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+257}:\\
\;\;\;\;\frac{x}{y \cdot a + y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -9.2000000000000003e-48Initial program 98.6%
associate-*l/90.3%
*-commutative90.3%
+-commutative90.3%
associate--l+90.3%
exp-sum62.9%
*-commutative62.9%
exp-to-pow63.1%
sub-neg63.1%
metadata-eval63.1%
exp-diff53.5%
*-commutative53.5%
exp-to-pow53.5%
Simplified53.5%
Taylor expanded in t around 0 64.6%
times-frac56.5%
Simplified56.5%
Taylor expanded in y around 0 75.8%
Taylor expanded in b around 0 44.4%
+-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
*-commutative44.4%
*-commutative44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in b around inf 41.9%
if -9.2000000000000003e-48 < b < 5.99999999999999975e-46Initial program 97.7%
associate-*l/83.9%
*-commutative83.9%
+-commutative83.9%
associate--l+83.9%
exp-sum73.7%
*-commutative73.7%
exp-to-pow74.9%
sub-neg74.9%
metadata-eval74.9%
exp-diff74.9%
*-commutative74.9%
exp-to-pow74.9%
Simplified74.9%
Taylor expanded in t around 0 63.7%
times-frac64.7%
Simplified64.7%
Taylor expanded in b around 0 63.7%
times-frac64.7%
Simplified64.7%
Taylor expanded in y around 0 36.8%
associate-*l/37.6%
div-inv37.6%
clear-num37.9%
Applied egg-rr37.9%
if 5.99999999999999975e-46 < b < 1.74999999999999989e257Initial program 99.7%
associate-*l/79.0%
*-commutative79.0%
+-commutative79.0%
associate--l+79.0%
exp-sum53.2%
*-commutative53.2%
exp-to-pow53.4%
sub-neg53.4%
metadata-eval53.4%
exp-diff41.4%
*-commutative41.4%
exp-to-pow41.4%
Simplified41.4%
Taylor expanded in t around 0 64.1%
times-frac58.9%
Simplified58.9%
Taylor expanded in y around 0 69.6%
associate-*r*66.1%
rem-exp-log38.1%
exp-sum38.2%
+-commutative38.2%
exp-sum38.1%
rem-exp-log66.1%
Simplified66.1%
Taylor expanded in b around 0 30.1%
distribute-lft-out30.1%
*-commutative30.1%
Simplified30.1%
+-commutative30.1%
distribute-rgt-in30.1%
associate-*l*36.7%
*-commutative36.7%
Applied egg-rr36.7%
if 1.74999999999999989e257 < b Initial program 100.0%
associate-*l/94.1%
*-commutative94.1%
+-commutative94.1%
associate--l+94.1%
exp-sum64.7%
*-commutative64.7%
exp-to-pow64.7%
sub-neg64.7%
metadata-eval64.7%
exp-diff58.8%
*-commutative58.8%
exp-to-pow58.8%
Simplified58.8%
Taylor expanded in t around 0 88.2%
times-frac88.2%
Simplified88.2%
Taylor expanded in y around 0 100.0%
associate-*r*94.1%
rem-exp-log70.6%
exp-sum70.7%
+-commutative70.7%
exp-sum70.6%
rem-exp-log94.1%
Simplified94.1%
Taylor expanded in b around 0 71.9%
distribute-lft-out71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around inf 71.9%
*-commutative71.9%
Simplified71.9%
Final simplification41.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -360.0)
(/ (* x (- b)) (* y a))
(if (<= b 2.1e+127)
(/ x (* a (+ y (* y b))))
(if (<= b 1.2e+262) (/ x (* y (* a b))) (/ x (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -360.0) {
tmp = (x * -b) / (y * a);
} else if (b <= 2.1e+127) {
tmp = x / (a * (y + (y * b)));
} else if (b <= 1.2e+262) {
tmp = x / (y * (a * b));
} else {
tmp = x / (a * (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 <= (-360.0d0)) then
tmp = (x * -b) / (y * a)
else if (b <= 2.1d+127) then
tmp = x / (a * (y + (y * b)))
else if (b <= 1.2d+262) then
tmp = x / (y * (a * b))
else
tmp = x / (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 tmp;
if (b <= -360.0) {
tmp = (x * -b) / (y * a);
} else if (b <= 2.1e+127) {
tmp = x / (a * (y + (y * b)));
} else if (b <= 1.2e+262) {
tmp = x / (y * (a * b));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -360.0: tmp = (x * -b) / (y * a) elif b <= 2.1e+127: tmp = x / (a * (y + (y * b))) elif b <= 1.2e+262: tmp = x / (y * (a * b)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -360.0) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= 2.1e+127) tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); elseif (b <= 1.2e+262) tmp = Float64(x / Float64(y * Float64(a * b))); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -360.0) tmp = (x * -b) / (y * a); elseif (b <= 2.1e+127) tmp = x / (a * (y + (y * b))); elseif (b <= 1.2e+262) tmp = x / (y * (a * b)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -360.0], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+127], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e+262], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -360:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+127}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+262}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -360Initial program 100.0%
associate-*l/90.3%
*-commutative90.3%
+-commutative90.3%
associate--l+90.3%
exp-sum61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
Simplified50.0%
Taylor expanded in t around 0 63.1%
times-frac58.3%
Simplified58.3%
Taylor expanded in y around 0 79.4%
Taylor expanded in b around 0 40.8%
+-commutative40.8%
mul-1-neg40.8%
unsub-neg40.8%
*-commutative40.8%
*-commutative40.8%
*-commutative40.8%
Simplified40.8%
Taylor expanded in b around inf 40.8%
if -360 < b < 2.09999999999999992e127Initial program 97.7%
associate-*l/84.4%
*-commutative84.4%
+-commutative84.4%
associate--l+84.4%
exp-sum71.8%
*-commutative71.8%
exp-to-pow72.8%
sub-neg72.8%
metadata-eval72.8%
exp-diff68.3%
*-commutative68.3%
exp-to-pow68.3%
Simplified68.3%
Taylor expanded in t around 0 63.9%
times-frac60.8%
Simplified60.8%
Taylor expanded in y around 0 44.6%
associate-*r*43.9%
rem-exp-log22.4%
exp-sum22.4%
+-commutative22.4%
exp-sum22.4%
rem-exp-log43.9%
Simplified43.9%
Taylor expanded in b around 0 31.7%
distribute-lft-out35.5%
*-commutative35.5%
Simplified35.5%
if 2.09999999999999992e127 < b < 1.19999999999999991e262Initial program 100.0%
associate-*l/68.4%
*-commutative68.4%
+-commutative68.4%
associate--l+68.4%
exp-sum26.3%
*-commutative26.3%
exp-to-pow26.3%
sub-neg26.3%
metadata-eval26.3%
exp-diff26.3%
*-commutative26.3%
exp-to-pow26.3%
Simplified26.3%
Taylor expanded in t around 0 68.8%
times-frac68.8%
Simplified68.8%
Taylor expanded in y around 0 74.1%
associate-*r*74.1%
rem-exp-log42.4%
exp-sum42.4%
+-commutative42.4%
exp-sum42.4%
rem-exp-log74.1%
Simplified74.1%
Taylor expanded in b around 0 33.8%
distribute-lft-out33.8%
*-commutative33.8%
Simplified33.8%
Taylor expanded in b around inf 33.8%
associate-*r*59.1%
*-commutative59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
if 1.19999999999999991e262 < b Initial program 100.0%
associate-*l/94.1%
*-commutative94.1%
+-commutative94.1%
associate--l+94.1%
exp-sum64.7%
*-commutative64.7%
exp-to-pow64.7%
sub-neg64.7%
metadata-eval64.7%
exp-diff58.8%
*-commutative58.8%
exp-to-pow58.8%
Simplified58.8%
Taylor expanded in t around 0 88.2%
times-frac88.2%
Simplified88.2%
Taylor expanded in y around 0 100.0%
associate-*r*94.1%
rem-exp-log70.6%
exp-sum70.7%
+-commutative70.7%
exp-sum70.6%
rem-exp-log94.1%
Simplified94.1%
Taylor expanded in b around 0 71.9%
distribute-lft-out71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in b around inf 71.9%
*-commutative71.9%
Simplified71.9%
Final simplification41.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -6.2e-215) (* x (/ (- b) (* y a))) (if (<= b 1.26e+22) (/ 1.0 (* y (/ a x))) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -6.2e-215) {
tmp = x * (-b / (y * a));
} else if (b <= 1.26e+22) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (y * (a * 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 <= (-6.2d-215)) then
tmp = x * (-b / (y * a))
else if (b <= 1.26d+22) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = x / (y * (a * 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 <= -6.2e-215) {
tmp = x * (-b / (y * a));
} else if (b <= 1.26e+22) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -6.2e-215: tmp = x * (-b / (y * a)) elif b <= 1.26e+22: tmp = 1.0 / (y * (a / x)) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -6.2e-215) tmp = Float64(x * Float64(Float64(-b) / Float64(y * a))); elseif (b <= 1.26e+22) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -6.2e-215) tmp = x * (-b / (y * a)); elseif (b <= 1.26e+22) tmp = 1.0 / (y * (a / x)); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -6.2e-215], N[(x * N[((-b) / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.26e+22], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.2 \cdot 10^{-215}:\\
\;\;\;\;x \cdot \frac{-b}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.26 \cdot 10^{+22}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -6.19999999999999987e-215Initial program 98.8%
associate-*l/89.0%
*-commutative89.0%
+-commutative89.0%
associate--l+89.0%
exp-sum67.8%
*-commutative67.8%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
exp-diff62.0%
*-commutative62.0%
exp-to-pow62.0%
Simplified62.0%
Taylor expanded in t around 0 65.0%
times-frac60.6%
Simplified60.6%
Taylor expanded in y around 0 59.6%
Taylor expanded in b around 0 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
*-commutative39.2%
*-commutative39.2%
Simplified39.2%
Taylor expanded in b around inf 38.4%
associate-*r/38.4%
*-commutative38.4%
neg-mul-138.4%
distribute-rgt-neg-out38.4%
associate-*r/36.9%
Simplified36.9%
if -6.19999999999999987e-215 < b < 1.26e22Initial program 97.1%
associate-*l/82.4%
*-commutative82.4%
+-commutative82.4%
associate--l+82.4%
exp-sum70.1%
*-commutative70.1%
exp-to-pow71.5%
sub-neg71.5%
metadata-eval71.5%
exp-diff70.3%
*-commutative70.3%
exp-to-pow70.3%
Simplified70.3%
Taylor expanded in t around 0 63.7%
times-frac62.6%
Simplified62.6%
Taylor expanded in b around 0 59.0%
times-frac57.9%
Simplified57.9%
Taylor expanded in y around 0 36.0%
clear-num36.0%
frac-times36.4%
metadata-eval36.4%
Applied egg-rr36.4%
if 1.26e22 < b Initial program 100.0%
associate-*l/82.3%
*-commutative82.3%
+-commutative82.3%
associate--l+82.3%
exp-sum54.8%
*-commutative54.8%
exp-to-pow54.8%
sub-neg54.8%
metadata-eval54.8%
exp-diff43.5%
*-commutative43.5%
exp-to-pow43.5%
Simplified43.5%
Taylor expanded in t around 0 69.5%
times-frac66.3%
Simplified66.3%
Taylor expanded in y around 0 80.9%
associate-*r*76.1%
rem-exp-log48.5%
exp-sum48.6%
+-commutative48.6%
exp-sum48.5%
rem-exp-log76.1%
Simplified76.1%
Taylor expanded in b around 0 43.9%
distribute-lft-out43.9%
*-commutative43.9%
Simplified43.9%
Taylor expanded in b around inf 43.9%
associate-*r*48.2%
*-commutative48.2%
*-commutative48.2%
*-commutative48.2%
Simplified48.2%
Final simplification39.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.5e+124) (/ (* x (- b)) (* y a)) (if (<= b 3.3e+94) (/ x (* y a)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.5e+124) {
tmp = (x * -b) / (y * a);
} else if (b <= 3.3e+94) {
tmp = x / (y * a);
} else {
tmp = x / (y * (a * 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 <= (-4.5d+124)) then
tmp = (x * -b) / (y * a)
else if (b <= 3.3d+94) then
tmp = x / (y * a)
else
tmp = x / (y * (a * 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 <= -4.5e+124) {
tmp = (x * -b) / (y * a);
} else if (b <= 3.3e+94) {
tmp = x / (y * a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.5e+124: tmp = (x * -b) / (y * a) elif b <= 3.3e+94: tmp = x / (y * a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.5e+124) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= 3.3e+94) tmp = Float64(x / Float64(y * a)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.5e+124) tmp = (x * -b) / (y * a); elseif (b <= 3.3e+94) tmp = x / (y * a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.5e+124], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.3e+94], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.5 \cdot 10^{+124}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 3.3 \cdot 10^{+94}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.5000000000000004e124Initial program 100.0%
associate-*l/95.2%
*-commutative95.2%
+-commutative95.2%
associate--l+95.2%
exp-sum64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
exp-diff54.8%
*-commutative54.8%
exp-to-pow54.8%
Simplified54.8%
Taylor expanded in t around 0 66.8%
times-frac62.1%
Simplified62.1%
Taylor expanded in y around 0 88.3%
Taylor expanded in b around 0 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
*-commutative49.6%
*-commutative49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in b around inf 49.6%
if -4.5000000000000004e124 < b < 3.3e94Initial program 97.8%
associate-*l/83.2%
*-commutative83.2%
+-commutative83.2%
associate--l+83.2%
exp-sum69.7%
*-commutative69.7%
exp-to-pow70.7%
sub-neg70.7%
metadata-eval70.7%
exp-diff66.4%
*-commutative66.4%
exp-to-pow66.4%
Simplified66.4%
Taylor expanded in t around 0 62.8%
times-frac59.2%
Simplified59.2%
Taylor expanded in y around 0 43.0%
Taylor expanded in b around 0 33.7%
*-commutative33.7%
Simplified33.7%
if 3.3e94 < b Initial program 100.0%
associate-*l/84.0%
*-commutative84.0%
+-commutative84.0%
associate--l+84.0%
exp-sum52.0%
*-commutative52.0%
exp-to-pow52.0%
sub-neg52.0%
metadata-eval52.0%
exp-diff44.0%
*-commutative44.0%
exp-to-pow44.0%
Simplified44.0%
Taylor expanded in t around 0 74.2%
times-frac74.2%
Simplified74.2%
Taylor expanded in y around 0 86.2%
associate-*r*82.2%
rem-exp-log48.1%
exp-sum48.2%
+-commutative48.2%
exp-sum48.1%
rem-exp-log82.2%
Simplified82.2%
Taylor expanded in b around 0 49.8%
distribute-lft-out49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in b around inf 49.8%
associate-*r*55.1%
*-commutative55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Final simplification40.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -5.8e+37) (/ (- (/ x y) (/ (* x b) y)) a) (if (<= b 7.2e+92) (/ x (* y a)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5.8e+37) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= 7.2e+92) {
tmp = x / (y * a);
} else {
tmp = x / (y * (a * 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 <= (-5.8d+37)) then
tmp = ((x / y) - ((x * b) / y)) / a
else if (b <= 7.2d+92) then
tmp = x / (y * a)
else
tmp = x / (y * (a * 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 <= -5.8e+37) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= 7.2e+92) {
tmp = x / (y * a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5.8e+37: tmp = ((x / y) - ((x * b) / y)) / a elif b <= 7.2e+92: tmp = x / (y * a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5.8e+37) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); elseif (b <= 7.2e+92) tmp = Float64(x / Float64(y * a)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5.8e+37) tmp = ((x / y) - ((x * b) / y)) / a; elseif (b <= 7.2e+92) tmp = x / (y * a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5.8e+37], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 7.2e+92], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.8 \cdot 10^{+37}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+92}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -5.79999999999999957e37Initial program 100.0%
associate-*l/93.0%
*-commutative93.0%
+-commutative93.0%
associate--l+93.0%
exp-sum64.9%
*-commutative64.9%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
exp-diff52.6%
*-commutative52.6%
exp-to-pow52.6%
Simplified52.6%
Taylor expanded in t around 0 63.3%
times-frac58.1%
Simplified58.1%
Taylor expanded in y around 0 81.0%
Taylor expanded in b around 0 40.7%
+-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
*-commutative40.7%
*-commutative40.7%
*-commutative40.7%
Simplified40.7%
associate-/r*40.7%
associate-/r*49.3%
sub-div49.3%
Applied egg-rr49.3%
if -5.79999999999999957e37 < b < 7.2e92Initial program 97.5%
associate-*l/82.8%
*-commutative82.8%
+-commutative82.8%
associate--l+82.8%
exp-sum70.1%
*-commutative70.1%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
exp-diff68.4%
*-commutative68.4%
exp-to-pow68.4%
Simplified68.4%
Taylor expanded in t around 0 63.7%
times-frac60.5%
Simplified60.5%
Taylor expanded in y around 0 41.2%
Taylor expanded in b around 0 35.5%
*-commutative35.5%
Simplified35.5%
if 7.2e92 < b Initial program 100.0%
associate-*l/84.0%
*-commutative84.0%
+-commutative84.0%
associate--l+84.0%
exp-sum52.0%
*-commutative52.0%
exp-to-pow52.0%
sub-neg52.0%
metadata-eval52.0%
exp-diff44.0%
*-commutative44.0%
exp-to-pow44.0%
Simplified44.0%
Taylor expanded in t around 0 74.2%
times-frac74.2%
Simplified74.2%
Taylor expanded in y around 0 86.2%
associate-*r*82.2%
rem-exp-log48.1%
exp-sum48.2%
+-commutative48.2%
exp-sum48.1%
rem-exp-log82.2%
Simplified82.2%
Taylor expanded in b around 0 49.8%
distribute-lft-out49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in b around inf 49.8%
associate-*r*55.1%
*-commutative55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Final simplification42.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.8e+92) (/ x (* y a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.8e+92) {
tmp = x / (y * a);
} else {
tmp = x / (a * (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 <= 4.8d+92) then
tmp = x / (y * a)
else
tmp = x / (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 tmp;
if (b <= 4.8e+92) {
tmp = x / (y * a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.8e+92: tmp = x / (y * a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.8e+92) tmp = Float64(x / Float64(y * a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 4.8e+92) tmp = x / (y * a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.8e+92], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.8 \cdot 10^{+92}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.80000000000000009e92Initial program 98.2%
associate-*l/85.6%
*-commutative85.6%
+-commutative85.6%
associate--l+85.6%
exp-sum68.6%
*-commutative68.6%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
exp-diff64.1%
*-commutative64.1%
exp-to-pow64.1%
Simplified64.1%
Taylor expanded in t around 0 63.6%
times-frac59.8%
Simplified59.8%
Taylor expanded in y around 0 52.2%
Taylor expanded in b around 0 30.8%
*-commutative30.8%
Simplified30.8%
if 4.80000000000000009e92 < b Initial program 100.0%
associate-*l/84.0%
*-commutative84.0%
+-commutative84.0%
associate--l+84.0%
exp-sum52.0%
*-commutative52.0%
exp-to-pow52.0%
sub-neg52.0%
metadata-eval52.0%
exp-diff44.0%
*-commutative44.0%
exp-to-pow44.0%
Simplified44.0%
Taylor expanded in t around 0 74.2%
times-frac74.2%
Simplified74.2%
Taylor expanded in y around 0 86.2%
associate-*r*82.2%
rem-exp-log48.1%
exp-sum48.2%
+-commutative48.2%
exp-sum48.1%
rem-exp-log82.2%
Simplified82.2%
Taylor expanded in b around 0 49.8%
distribute-lft-out49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in b around inf 49.8%
*-commutative49.8%
Simplified49.8%
Final simplification34.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b 7.2e+92) (/ x (* y a)) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 7.2e+92) {
tmp = x / (y * a);
} else {
tmp = x / (y * (a * 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.2d+92) then
tmp = x / (y * a)
else
tmp = x / (y * (a * 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.2e+92) {
tmp = x / (y * a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 7.2e+92: tmp = x / (y * a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 7.2e+92) tmp = Float64(x / Float64(y * a)); else tmp = Float64(x / Float64(y * Float64(a * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 7.2e+92) tmp = x / (y * a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 7.2e+92], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 7.2 \cdot 10^{+92}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 7.2e92Initial program 98.2%
associate-*l/85.6%
*-commutative85.6%
+-commutative85.6%
associate--l+85.6%
exp-sum68.6%
*-commutative68.6%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
exp-diff64.1%
*-commutative64.1%
exp-to-pow64.1%
Simplified64.1%
Taylor expanded in t around 0 63.6%
times-frac59.8%
Simplified59.8%
Taylor expanded in y around 0 52.2%
Taylor expanded in b around 0 30.8%
*-commutative30.8%
Simplified30.8%
if 7.2e92 < b Initial program 100.0%
associate-*l/84.0%
*-commutative84.0%
+-commutative84.0%
associate--l+84.0%
exp-sum52.0%
*-commutative52.0%
exp-to-pow52.0%
sub-neg52.0%
metadata-eval52.0%
exp-diff44.0%
*-commutative44.0%
exp-to-pow44.0%
Simplified44.0%
Taylor expanded in t around 0 74.2%
times-frac74.2%
Simplified74.2%
Taylor expanded in y around 0 86.2%
associate-*r*82.2%
rem-exp-log48.1%
exp-sum48.2%
+-commutative48.2%
exp-sum48.1%
rem-exp-log82.2%
Simplified82.2%
Taylor expanded in b around 0 49.8%
distribute-lft-out49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in b around inf 49.8%
associate-*r*55.1%
*-commutative55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Final simplification35.6%
(FPCore (x y z t a b) :precision binary64 (if (<= a 5.2e-136) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 5.2e-136) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
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 (a <= 5.2d-136) then
tmp = (x / a) / y
else
tmp = x / (y * a)
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 (a <= 5.2e-136) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 5.2e-136: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 5.2e-136) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 5.2e-136) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 5.2e-136], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 5.2 \cdot 10^{-136}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 5.19999999999999993e-136Initial program 99.3%
Taylor expanded in t around 0 77.4%
+-commutative77.4%
mul-1-neg77.4%
unsub-neg77.4%
Simplified77.4%
Taylor expanded in b around 0 63.0%
div-exp63.0%
*-commutative63.0%
exp-to-pow63.0%
rem-exp-log63.4%
Simplified63.4%
Taylor expanded in y around 0 28.7%
if 5.19999999999999993e-136 < a Initial program 98.2%
associate-*l/82.9%
*-commutative82.9%
+-commutative82.9%
associate--l+82.9%
exp-sum62.5%
*-commutative62.5%
exp-to-pow63.1%
sub-neg63.1%
metadata-eval63.1%
exp-diff57.4%
*-commutative57.4%
exp-to-pow57.4%
Simplified57.4%
Taylor expanded in t around 0 65.2%
times-frac64.2%
Simplified64.2%
Taylor expanded in y around 0 64.0%
Taylor expanded in b around 0 31.6%
*-commutative31.6%
Simplified31.6%
Final simplification30.7%
(FPCore (x y z t a b) :precision binary64 (if (<= a 4e-136) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (a <= 4e-136) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
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 (a <= 4d-136) then
tmp = (x / y) / a
else
tmp = x / (y * a)
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 (a <= 4e-136) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if a <= 4e-136: tmp = (x / y) / a else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (a <= 4e-136) tmp = Float64(Float64(x / y) / a); else tmp = Float64(x / Float64(y * a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (a <= 4e-136) tmp = (x / y) / a; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[a, 4e-136], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 4 \cdot 10^{-136}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if a < 4.00000000000000001e-136Initial program 99.3%
associate-*l/90.5%
*-commutative90.5%
+-commutative90.5%
associate--l+90.5%
exp-sum71.8%
*-commutative71.8%
exp-to-pow72.4%
sub-neg72.4%
metadata-eval72.4%
exp-diff66.2%
*-commutative66.2%
exp-to-pow66.2%
Simplified66.2%
Taylor expanded in t around 0 66.7%
times-frac59.2%
Simplified59.2%
Taylor expanded in b around 0 62.1%
times-frac53.4%
Simplified53.4%
Taylor expanded in y around 0 28.6%
associate-*l/28.7%
div-inv28.7%
Applied egg-rr28.7%
if 4.00000000000000001e-136 < a Initial program 98.2%
associate-*l/82.9%
*-commutative82.9%
+-commutative82.9%
associate--l+82.9%
exp-sum62.5%
*-commutative62.5%
exp-to-pow63.1%
sub-neg63.1%
metadata-eval63.1%
exp-diff57.4%
*-commutative57.4%
exp-to-pow57.4%
Simplified57.4%
Taylor expanded in t around 0 65.2%
times-frac64.2%
Simplified64.2%
Taylor expanded in y around 0 64.0%
Taylor expanded in b around 0 31.6%
*-commutative31.6%
Simplified31.6%
Final simplification30.7%
(FPCore (x y z t a b) :precision binary64 (/ x (* y a)))
double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
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 * a)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (y * a);
}
def code(x, y, z, t, a, b): return x / (y * a)
function code(x, y, z, t, a, b) return Float64(x / Float64(y * a)) end
function tmp = code(x, y, z, t, a, b) tmp = x / (y * a); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{y \cdot a}
\end{array}
Initial program 98.6%
associate-*l/85.3%
*-commutative85.3%
+-commutative85.3%
associate--l+85.3%
exp-sum65.4%
*-commutative65.4%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
exp-diff60.1%
*-commutative60.1%
exp-to-pow60.1%
Simplified60.1%
Taylor expanded in t around 0 65.7%
times-frac62.6%
Simplified62.6%
Taylor expanded in y around 0 58.9%
Taylor expanded in b around 0 28.8%
*-commutative28.8%
Simplified28.8%
Final simplification28.8%
(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 2024020
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(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))