
(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 20 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.7%
Final simplification98.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -1e+93) (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) <= -1e+93) || !((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)) <= (-1d+93)) .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) <= -1e+93) || !((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) <= -1e+93) 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) <= -1e+93) || !(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) <= -1e+93) || ~(((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], -1e+93], 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 \cdot 10^{+93} \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.00000000000000004e93 or -1 < (-.f64 t 1) Initial program 100.0%
Taylor expanded in y around 0 94.7%
if -1.00000000000000004e93 < (-.f64 t 1) < -1Initial program 97.8%
Taylor expanded in t around 0 96.8%
+-commutative96.8%
mul-1-neg96.8%
unsub-neg96.8%
Simplified96.8%
Final simplification95.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (exp b)))
(t_2 (/ x (* a t_1)))
(t_3 (* x (/ (pow a (+ t -1.0)) y))))
(if (<= t -3e+92)
t_3
(if (<= t -1.65e+68)
t_2
(if (<= t -3.3e-182)
(/ (* x (/ (pow z y) a)) y)
(if (<= t -1e-298)
t_2
(if (<= t 8.2e+64) (* (/ (pow z y) t_1) (/ x a)) t_3)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * exp(b);
double t_2 = x / (a * t_1);
double t_3 = x * (pow(a, (t + -1.0)) / y);
double tmp;
if (t <= -3e+92) {
tmp = t_3;
} else if (t <= -1.65e+68) {
tmp = t_2;
} else if (t <= -3.3e-182) {
tmp = (x * (pow(z, y) / a)) / y;
} else if (t <= -1e-298) {
tmp = t_2;
} else if (t <= 8.2e+64) {
tmp = (pow(z, y) / t_1) * (x / a);
} else {
tmp = t_3;
}
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)
t_3 = x * ((a ** (t + (-1.0d0))) / y)
if (t <= (-3d+92)) then
tmp = t_3
else if (t <= (-1.65d+68)) then
tmp = t_2
else if (t <= (-3.3d-182)) then
tmp = (x * ((z ** y) / a)) / y
else if (t <= (-1d-298)) then
tmp = t_2
else if (t <= 8.2d+64) then
tmp = ((z ** y) / t_1) * (x / a)
else
tmp = t_3
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 / (a * t_1);
double t_3 = x * (Math.pow(a, (t + -1.0)) / y);
double tmp;
if (t <= -3e+92) {
tmp = t_3;
} else if (t <= -1.65e+68) {
tmp = t_2;
} else if (t <= -3.3e-182) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else if (t <= -1e-298) {
tmp = t_2;
} else if (t <= 8.2e+64) {
tmp = (Math.pow(z, y) / t_1) * (x / a);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = y * math.exp(b) t_2 = x / (a * t_1) t_3 = x * (math.pow(a, (t + -1.0)) / y) tmp = 0 if t <= -3e+92: tmp = t_3 elif t <= -1.65e+68: tmp = t_2 elif t <= -3.3e-182: tmp = (x * (math.pow(z, y) / a)) / y elif t <= -1e-298: tmp = t_2 elif t <= 8.2e+64: tmp = (math.pow(z, y) / t_1) * (x / a) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(y * exp(b)) t_2 = Float64(x / Float64(a * t_1)) t_3 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) tmp = 0.0 if (t <= -3e+92) tmp = t_3; elseif (t <= -1.65e+68) tmp = t_2; elseif (t <= -3.3e-182) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); elseif (t <= -1e-298) tmp = t_2; elseif (t <= 8.2e+64) tmp = Float64(Float64((z ^ y) / t_1) * Float64(x / a)); else tmp = t_3; 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); t_3 = x * ((a ^ (t + -1.0)) / y); tmp = 0.0; if (t <= -3e+92) tmp = t_3; elseif (t <= -1.65e+68) tmp = t_2; elseif (t <= -3.3e-182) tmp = (x * ((z ^ y) / a)) / y; elseif (t <= -1e-298) tmp = t_2; elseif (t <= 8.2e+64) tmp = ((z ^ y) / t_1) * (x / a); else tmp = t_3; 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[(x / N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3e+92], t$95$3, If[LessEqual[t, -1.65e+68], t$95$2, If[LessEqual[t, -3.3e-182], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, -1e-298], t$95$2, If[LessEqual[t, 8.2e+64], N[(N[(N[Power[z, y], $MachinePrecision] / t$95$1), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot e^{b}\\
t_2 := \frac{x}{a \cdot t\_1}\\
t_3 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -3 \cdot 10^{+92}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-182}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-298}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 8.2 \cdot 10^{+64}:\\
\;\;\;\;\frac{{z}^{y}}{t\_1} \cdot \frac{x}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if t < -3.00000000000000013e92 or 8.19999999999999956e64 < t Initial program 100.0%
Taylor expanded in y around 0 95.0%
Taylor expanded in b around 0 87.9%
associate-/l*87.9%
exp-to-pow87.9%
sub-neg87.9%
metadata-eval87.9%
+-commutative87.9%
Simplified87.9%
Taylor expanded in x around 0 87.9%
exp-to-pow87.9%
sub-neg87.9%
metadata-eval87.9%
associate-*r/87.9%
Simplified87.9%
if -3.00000000000000013e92 < t < -1.65e68 or -3.29999999999999996e-182 < t < -9.99999999999999912e-299Initial program 94.5%
associate-*l/88.9%
*-commutative88.9%
+-commutative88.9%
associate--l+88.9%
exp-sum73.1%
*-commutative73.1%
exp-to-pow73.8%
sub-neg73.8%
metadata-eval73.8%
exp-diff58.0%
*-commutative58.0%
exp-to-pow58.0%
Simplified58.0%
Taylor expanded in t around 0 81.7%
times-frac71.3%
Simplified71.3%
Taylor expanded in y around 0 89.8%
if -1.65e68 < t < -3.29999999999999996e-182Initial program 99.1%
Taylor expanded in t around 0 96.4%
+-commutative96.4%
mul-1-neg96.4%
unsub-neg96.4%
Simplified96.4%
Taylor expanded in b around 0 85.3%
div-exp85.3%
*-commutative85.3%
exp-to-pow85.3%
rem-exp-log86.0%
Simplified86.0%
if -9.99999999999999912e-299 < t < 8.19999999999999956e64Initial program 99.0%
associate-*l/93.3%
*-commutative93.3%
+-commutative93.3%
associate--l+93.3%
exp-sum88.9%
*-commutative88.9%
exp-to-pow89.7%
sub-neg89.7%
metadata-eval89.7%
exp-diff80.9%
*-commutative80.9%
exp-to-pow80.9%
Simplified80.9%
Taylor expanded in t around 0 78.0%
times-frac83.8%
Simplified83.8%
Final simplification86.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (/ (* x (/ (pow z y) a)) y)))
(if (<= y -3.4e+68)
t_2
(if (<= y -7e-50)
(* (/ x y) (/ t_1 (exp b)))
(if (<= y -3e-194)
(* x (/ t_1 y))
(if (<= y 6.8e+41) (/ x (* y (/ (exp b) t_1))) 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 * (pow(z, y) / a)) / y;
double tmp;
if (y <= -3.4e+68) {
tmp = t_2;
} else if (y <= -7e-50) {
tmp = (x / y) * (t_1 / exp(b));
} else if (y <= -3e-194) {
tmp = x * (t_1 / y);
} else if (y <= 6.8e+41) {
tmp = x / (y * (exp(b) / 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 = a ** (t + (-1.0d0))
t_2 = (x * ((z ** y) / a)) / y
if (y <= (-3.4d+68)) then
tmp = t_2
else if (y <= (-7d-50)) then
tmp = (x / y) * (t_1 / exp(b))
else if (y <= (-3d-194)) then
tmp = x * (t_1 / y)
else if (y <= 6.8d+41) then
tmp = x / (y * (exp(b) / 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 = Math.pow(a, (t + -1.0));
double t_2 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (y <= -3.4e+68) {
tmp = t_2;
} else if (y <= -7e-50) {
tmp = (x / y) * (t_1 / Math.exp(b));
} else if (y <= -3e-194) {
tmp = x * (t_1 / y);
} else if (y <= 6.8e+41) {
tmp = x / (y * (Math.exp(b) / t_1));
} 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 * (math.pow(z, y) / a)) / y tmp = 0 if y <= -3.4e+68: tmp = t_2 elif y <= -7e-50: tmp = (x / y) * (t_1 / math.exp(b)) elif y <= -3e-194: tmp = x * (t_1 / y) elif y <= 6.8e+41: tmp = x / (y * (math.exp(b) / t_1)) 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((z ^ y) / a)) / y) tmp = 0.0 if (y <= -3.4e+68) tmp = t_2; elseif (y <= -7e-50) tmp = Float64(Float64(x / y) * Float64(t_1 / exp(b))); elseif (y <= -3e-194) tmp = Float64(x * Float64(t_1 / y)); elseif (y <= 6.8e+41) tmp = Float64(x / Float64(y * Float64(exp(b) / t_1))); 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 * ((z ^ y) / a)) / y; tmp = 0.0; if (y <= -3.4e+68) tmp = t_2; elseif (y <= -7e-50) tmp = (x / y) * (t_1 / exp(b)); elseif (y <= -3e-194) tmp = x * (t_1 / y); elseif (y <= 6.8e+41) tmp = x / (y * (exp(b) / t_1)); 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[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -3.4e+68], t$95$2, If[LessEqual[y, -7e-50], N[(N[(x / y), $MachinePrecision] * N[(t$95$1 / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e-194], N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e+41], N[(x / N[(y * N[(N[Exp[b], $MachinePrecision] / t$95$1), $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{{z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -7 \cdot 10^{-50}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{t\_1}{e^{b}}\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-194}:\\
\;\;\;\;x \cdot \frac{t\_1}{y}\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{+41}:\\
\;\;\;\;\frac{x}{y \cdot \frac{e^{b}}{t\_1}}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.40000000000000015e68 or 6.79999999999999996e41 < y Initial program 100.0%
Taylor expanded in t around 0 90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
Simplified90.5%
Taylor expanded in b around 0 87.7%
div-exp87.7%
*-commutative87.7%
exp-to-pow87.7%
rem-exp-log87.7%
Simplified87.7%
if -3.40000000000000015e68 < y < -6.99999999999999993e-50Initial program 99.4%
associate-*l/99.4%
*-commutative99.4%
+-commutative99.4%
associate--l+99.4%
exp-sum86.9%
*-commutative86.9%
exp-to-pow87.3%
sub-neg87.3%
metadata-eval87.3%
exp-diff62.3%
*-commutative62.3%
exp-to-pow62.5%
Simplified62.5%
Taylor expanded in y around 0 69.5%
times-frac75.7%
exp-to-pow75.7%
sub-neg75.7%
metadata-eval75.7%
Simplified75.7%
if -6.99999999999999993e-50 < y < -3e-194Initial program 98.6%
Taylor expanded in y around 0 98.6%
Taylor expanded in b around 0 82.3%
associate-/l*82.3%
exp-to-pow83.6%
sub-neg83.6%
metadata-eval83.6%
+-commutative83.6%
Simplified83.6%
Taylor expanded in x around 0 82.3%
exp-to-pow83.5%
sub-neg83.5%
metadata-eval83.5%
associate-*r/83.6%
Simplified83.6%
if -3e-194 < y < 6.79999999999999996e41Initial program 97.3%
associate-/l*97.4%
associate--l+97.4%
exp-sum91.4%
associate-/r*91.4%
*-commutative91.4%
exp-to-pow91.4%
exp-diff81.4%
*-commutative81.4%
exp-to-pow82.0%
sub-neg82.0%
metadata-eval82.0%
Simplified82.0%
Taylor expanded in y around 0 84.9%
exp-to-pow85.5%
sub-neg85.5%
metadata-eval85.5%
associate-*r/85.5%
Simplified85.5%
Final simplification85.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.6e+68) (not (<= y 8.5e+131))) (/ (* 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 <= -3.6e+68) || !(y <= 8.5e+131)) {
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 <= (-3.6d+68)) .or. (.not. (y <= 8.5d+131))) 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 <= -3.6e+68) || !(y <= 8.5e+131)) {
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 <= -3.6e+68) or not (y <= 8.5e+131): 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 <= -3.6e+68) || !(y <= 8.5e+131)) 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 <= -3.6e+68) || ~((y <= 8.5e+131))) 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, -3.6e+68], N[Not[LessEqual[y, 8.5e+131]], $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 -3.6 \cdot 10^{+68} \lor \neg \left(y \leq 8.5 \cdot 10^{+131}\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 < -3.5999999999999999e68 or 8.50000000000000063e131 < y Initial program 100.0%
Taylor expanded in t around 0 93.5%
+-commutative93.5%
mul-1-neg93.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in b around 0 91.3%
div-exp91.3%
*-commutative91.3%
exp-to-pow91.3%
rem-exp-log91.3%
Simplified91.3%
if -3.5999999999999999e68 < y < 8.50000000000000063e131Initial program 98.0%
Taylor expanded in y around 0 93.7%
Final simplification92.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.25e+92) (not (<= t 3.9e+67))) (* x (/ (pow a (+ t -1.0)) y)) (/ x (/ a (/ (pow z y) (* y (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.25e+92) || !(t <= 3.9e+67)) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else {
tmp = x / (a / (pow(z, y) / (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) :: tmp
if ((t <= (-1.25d+92)) .or. (.not. (t <= 3.9d+67))) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else
tmp = x / (a / ((z ** y) / (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 tmp;
if ((t <= -1.25e+92) || !(t <= 3.9e+67)) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else {
tmp = x / (a / (Math.pow(z, y) / (y * Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.25e+92) or not (t <= 3.9e+67): tmp = x * (math.pow(a, (t + -1.0)) / y) else: tmp = x / (a / (math.pow(z, y) / (y * math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.25e+92) || !(t <= 3.9e+67)) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); else tmp = Float64(x / Float64(a / Float64((z ^ y) / Float64(y * exp(b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.25e+92) || ~((t <= 3.9e+67))) tmp = x * ((a ^ (t + -1.0)) / y); else tmp = x / (a / ((z ^ y) / (y * exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.25e+92], N[Not[LessEqual[t, 3.9e+67]], $MachinePrecision]], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a / N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+92} \lor \neg \left(t \leq 3.9 \cdot 10^{+67}\right):\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{\frac{a}{\frac{{z}^{y}}{y \cdot e^{b}}}}\\
\end{array}
\end{array}
if t < -1.25000000000000005e92 or 3.90000000000000007e67 < t Initial program 100.0%
Taylor expanded in y around 0 95.0%
Taylor expanded in b around 0 88.1%
associate-/l*88.1%
exp-to-pow88.1%
sub-neg88.1%
metadata-eval88.1%
+-commutative88.1%
Simplified88.1%
Taylor expanded in x around 0 88.1%
exp-to-pow88.1%
sub-neg88.1%
metadata-eval88.1%
associate-*r/88.1%
Simplified88.1%
if -1.25000000000000005e92 < t < 3.90000000000000007e67Initial program 97.9%
associate-/l*98.0%
associate--l+98.0%
exp-sum85.9%
associate-/r*85.9%
*-commutative85.9%
exp-to-pow85.9%
exp-diff78.8%
*-commutative78.8%
exp-to-pow79.6%
sub-neg79.6%
metadata-eval79.6%
Simplified79.6%
Taylor expanded in t around 0 80.0%
associate-/l*85.1%
Simplified85.1%
Final simplification86.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (/ x (* a (exp b))) y))
(t_2 (* x (/ (pow a (+ t -1.0)) y)))
(t_3 (* (/ x a) (/ (pow z y) y))))
(if (<= t -1.75e+92)
t_2
(if (<= t -1.52e-5)
t_1
(if (<= t -1.7e-157)
t_3
(if (<= t 4.7e-306)
(/ x (* a (* y (exp b))))
(if (<= t 1.76e-149) t_3 (if (<= t 19.5) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x / (a * exp(b))) / y;
double t_2 = x * (pow(a, (t + -1.0)) / y);
double t_3 = (x / a) * (pow(z, y) / y);
double tmp;
if (t <= -1.75e+92) {
tmp = t_2;
} else if (t <= -1.52e-5) {
tmp = t_1;
} else if (t <= -1.7e-157) {
tmp = t_3;
} else if (t <= 4.7e-306) {
tmp = x / (a * (y * exp(b)));
} else if (t <= 1.76e-149) {
tmp = t_3;
} else if (t <= 19.5) {
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) :: t_3
real(8) :: tmp
t_1 = (x / (a * exp(b))) / y
t_2 = x * ((a ** (t + (-1.0d0))) / y)
t_3 = (x / a) * ((z ** y) / y)
if (t <= (-1.75d+92)) then
tmp = t_2
else if (t <= (-1.52d-5)) then
tmp = t_1
else if (t <= (-1.7d-157)) then
tmp = t_3
else if (t <= 4.7d-306) then
tmp = x / (a * (y * exp(b)))
else if (t <= 1.76d-149) then
tmp = t_3
else if (t <= 19.5d0) 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.exp(b))) / y;
double t_2 = x * (Math.pow(a, (t + -1.0)) / y);
double t_3 = (x / a) * (Math.pow(z, y) / y);
double tmp;
if (t <= -1.75e+92) {
tmp = t_2;
} else if (t <= -1.52e-5) {
tmp = t_1;
} else if (t <= -1.7e-157) {
tmp = t_3;
} else if (t <= 4.7e-306) {
tmp = x / (a * (y * Math.exp(b)));
} else if (t <= 1.76e-149) {
tmp = t_3;
} else if (t <= 19.5) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x / (a * math.exp(b))) / y t_2 = x * (math.pow(a, (t + -1.0)) / y) t_3 = (x / a) * (math.pow(z, y) / y) tmp = 0 if t <= -1.75e+92: tmp = t_2 elif t <= -1.52e-5: tmp = t_1 elif t <= -1.7e-157: tmp = t_3 elif t <= 4.7e-306: tmp = x / (a * (y * math.exp(b))) elif t <= 1.76e-149: tmp = t_3 elif t <= 19.5: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x / Float64(a * exp(b))) / y) t_2 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) t_3 = Float64(Float64(x / a) * Float64((z ^ y) / y)) tmp = 0.0 if (t <= -1.75e+92) tmp = t_2; elseif (t <= -1.52e-5) tmp = t_1; elseif (t <= -1.7e-157) tmp = t_3; elseif (t <= 4.7e-306) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (t <= 1.76e-149) tmp = t_3; elseif (t <= 19.5) 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 * exp(b))) / y; t_2 = x * ((a ^ (t + -1.0)) / y); t_3 = (x / a) * ((z ^ y) / y); tmp = 0.0; if (t <= -1.75e+92) tmp = t_2; elseif (t <= -1.52e-5) tmp = t_1; elseif (t <= -1.7e-157) tmp = t_3; elseif (t <= 4.7e-306) tmp = x / (a * (y * exp(b))); elseif (t <= 1.76e-149) tmp = t_3; elseif (t <= 19.5) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x / a), $MachinePrecision] * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.75e+92], t$95$2, If[LessEqual[t, -1.52e-5], t$95$1, If[LessEqual[t, -1.7e-157], t$95$3, If[LessEqual[t, 4.7e-306], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.76e-149], t$95$3, If[LessEqual[t, 19.5], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a \cdot e^{b}}}{y}\\
t_2 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
t_3 := \frac{x}{a} \cdot \frac{{z}^{y}}{y}\\
\mathbf{if}\;t \leq -1.75 \cdot 10^{+92}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.52 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-157}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 4.7 \cdot 10^{-306}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;t \leq 1.76 \cdot 10^{-149}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 19.5:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.74999999999999993e92 or 19.5 < t Initial program 100.0%
Taylor expanded in y around 0 94.5%
Taylor expanded in b around 0 86.3%
associate-/l*86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
+-commutative86.3%
Simplified86.3%
Taylor expanded in x around 0 86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
associate-*r/86.3%
Simplified86.3%
if -1.74999999999999993e92 < t < -1.52e-5 or 1.7599999999999999e-149 < t < 19.5Initial program 99.4%
Taylor expanded in y around 0 83.1%
exp-diff66.5%
exp-to-pow67.1%
sub-neg67.1%
metadata-eval67.1%
Simplified67.1%
Taylor expanded in t around 0 82.0%
if -1.52e-5 < t < -1.69999999999999989e-157 or 4.7000000000000001e-306 < t < 1.7599999999999999e-149Initial program 98.8%
associate-*l/92.2%
*-commutative92.2%
+-commutative92.2%
associate--l+92.2%
exp-sum92.2%
*-commutative92.2%
exp-to-pow93.2%
sub-neg93.2%
metadata-eval93.2%
exp-diff78.5%
*-commutative78.5%
exp-to-pow78.5%
Simplified78.5%
Taylor expanded in t around 0 76.3%
times-frac81.0%
Simplified81.0%
Taylor expanded in b around 0 75.0%
times-frac84.7%
Simplified84.7%
if -1.69999999999999989e-157 < t < 4.7000000000000001e-306Initial program 93.4%
associate-*l/86.9%
*-commutative86.9%
+-commutative86.9%
associate--l+86.9%
exp-sum86.9%
*-commutative86.9%
exp-to-pow88.0%
sub-neg88.0%
metadata-eval88.0%
exp-diff72.8%
*-commutative72.8%
exp-to-pow72.8%
Simplified72.8%
Taylor expanded in t around 0 81.9%
times-frac70.0%
Simplified70.0%
Taylor expanded in y around 0 82.3%
Final simplification84.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b)))))
(t_2 (* x (/ (pow a (+ t -1.0)) y)))
(t_3 (/ (* x (/ (pow z y) a)) y)))
(if (<= t -2e+92)
t_2
(if (<= t -2.45e+67)
t_1
(if (<= t -1.7e-183)
t_3
(if (<= t 4.9e-306)
t_1
(if (<= t 1.12e-129) t_3 (if (<= t 1.5) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (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 <= -2e+92) {
tmp = t_2;
} else if (t <= -2.45e+67) {
tmp = t_1;
} else if (t <= -1.7e-183) {
tmp = t_3;
} else if (t <= 4.9e-306) {
tmp = t_1;
} else if (t <= 1.12e-129) {
tmp = t_3;
} else if (t <= 1.5) {
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) :: t_3
real(8) :: tmp
t_1 = x / (a * (y * exp(b)))
t_2 = x * ((a ** (t + (-1.0d0))) / y)
t_3 = (x * ((z ** y) / a)) / y
if (t <= (-2d+92)) then
tmp = t_2
else if (t <= (-2.45d+67)) then
tmp = t_1
else if (t <= (-1.7d-183)) then
tmp = t_3
else if (t <= 4.9d-306) then
tmp = t_1
else if (t <= 1.12d-129) then
tmp = t_3
else if (t <= 1.5d0) 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 * (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 <= -2e+92) {
tmp = t_2;
} else if (t <= -2.45e+67) {
tmp = t_1;
} else if (t <= -1.7e-183) {
tmp = t_3;
} else if (t <= 4.9e-306) {
tmp = t_1;
} else if (t <= 1.12e-129) {
tmp = t_3;
} else if (t <= 1.5) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (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 <= -2e+92: tmp = t_2 elif t <= -2.45e+67: tmp = t_1 elif t <= -1.7e-183: tmp = t_3 elif t <= 4.9e-306: tmp = t_1 elif t <= 1.12e-129: tmp = t_3 elif t <= 1.5: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) t_2 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) t_3 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (t <= -2e+92) tmp = t_2; elseif (t <= -2.45e+67) tmp = t_1; elseif (t <= -1.7e-183) tmp = t_3; elseif (t <= 4.9e-306) tmp = t_1; elseif (t <= 1.12e-129) tmp = t_3; elseif (t <= 1.5) 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 * (y * exp(b))); t_2 = x * ((a ^ (t + -1.0)) / y); t_3 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (t <= -2e+92) tmp = t_2; elseif (t <= -2.45e+67) tmp = t_1; elseif (t <= -1.7e-183) tmp = t_3; elseif (t <= 4.9e-306) tmp = t_1; elseif (t <= 1.12e-129) tmp = t_3; elseif (t <= 1.5) 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[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -2e+92], t$95$2, If[LessEqual[t, -2.45e+67], t$95$1, If[LessEqual[t, -1.7e-183], t$95$3, If[LessEqual[t, 4.9e-306], t$95$1, If[LessEqual[t, 1.12e-129], t$95$3, If[LessEqual[t, 1.5], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_2 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
t_3 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;t \leq -2 \cdot 10^{+92}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-183}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 4.9 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.12 \cdot 10^{-129}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t \leq 1.5:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.0000000000000001e92 or 1.5 < t Initial program 100.0%
Taylor expanded in y around 0 94.5%
Taylor expanded in b around 0 86.3%
associate-/l*86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
+-commutative86.3%
Simplified86.3%
Taylor expanded in x around 0 86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
associate-*r/86.3%
Simplified86.3%
if -2.0000000000000001e92 < t < -2.44999999999999995e67 or -1.70000000000000007e-183 < t < 4.90000000000000025e-306 or 1.12000000000000006e-129 < t < 1.5Initial program 96.1%
associate-*l/87.9%
*-commutative87.9%
+-commutative87.9%
associate--l+87.9%
exp-sum78.1%
*-commutative78.1%
exp-to-pow78.8%
sub-neg78.8%
metadata-eval78.8%
exp-diff67.4%
*-commutative67.4%
exp-to-pow67.4%
Simplified67.4%
Taylor expanded in t around 0 83.7%
times-frac78.8%
Simplified78.8%
Taylor expanded in y around 0 85.7%
if -2.44999999999999995e67 < t < -1.70000000000000007e-183 or 4.90000000000000025e-306 < t < 1.12000000000000006e-129Initial program 99.0%
Taylor expanded in t around 0 97.4%
+-commutative97.4%
mul-1-neg97.4%
unsub-neg97.4%
Simplified97.4%
Taylor expanded in b around 0 84.1%
div-exp84.1%
*-commutative84.1%
exp-to-pow84.1%
rem-exp-log85.0%
Simplified85.0%
Final simplification85.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))) (t_2 (* x (/ (pow a (+ t -1.0)) y))))
(if (<= t -1.95e+92)
t_2
(if (<= t -1.9e+68)
t_1
(if (<= t -1.75e-182)
(/ (* x (/ (pow z y) a)) y)
(if (<= t -1.15e-261)
t_1
(if (<= t 7.5e-129)
(/ (* x (/ (pow z y) y)) a)
(if (<= t 3.35) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double t_2 = x * (pow(a, (t + -1.0)) / y);
double tmp;
if (t <= -1.95e+92) {
tmp = t_2;
} else if (t <= -1.9e+68) {
tmp = t_1;
} else if (t <= -1.75e-182) {
tmp = (x * (pow(z, y) / a)) / y;
} else if (t <= -1.15e-261) {
tmp = t_1;
} else if (t <= 7.5e-129) {
tmp = (x * (pow(z, y) / y)) / a;
} else if (t <= 3.35) {
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 * (y * exp(b)))
t_2 = x * ((a ** (t + (-1.0d0))) / y)
if (t <= (-1.95d+92)) then
tmp = t_2
else if (t <= (-1.9d+68)) then
tmp = t_1
else if (t <= (-1.75d-182)) then
tmp = (x * ((z ** y) / a)) / y
else if (t <= (-1.15d-261)) then
tmp = t_1
else if (t <= 7.5d-129) then
tmp = (x * ((z ** y) / y)) / a
else if (t <= 3.35d0) 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 * (y * Math.exp(b)));
double t_2 = x * (Math.pow(a, (t + -1.0)) / y);
double tmp;
if (t <= -1.95e+92) {
tmp = t_2;
} else if (t <= -1.9e+68) {
tmp = t_1;
} else if (t <= -1.75e-182) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else if (t <= -1.15e-261) {
tmp = t_1;
} else if (t <= 7.5e-129) {
tmp = (x * (Math.pow(z, y) / y)) / a;
} else if (t <= 3.35) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) t_2 = x * (math.pow(a, (t + -1.0)) / y) tmp = 0 if t <= -1.95e+92: tmp = t_2 elif t <= -1.9e+68: tmp = t_1 elif t <= -1.75e-182: tmp = (x * (math.pow(z, y) / a)) / y elif t <= -1.15e-261: tmp = t_1 elif t <= 7.5e-129: tmp = (x * (math.pow(z, y) / y)) / a elif t <= 3.35: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) t_2 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) tmp = 0.0 if (t <= -1.95e+92) tmp = t_2; elseif (t <= -1.9e+68) tmp = t_1; elseif (t <= -1.75e-182) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); elseif (t <= -1.15e-261) tmp = t_1; elseif (t <= 7.5e-129) tmp = Float64(Float64(x * Float64((z ^ y) / y)) / a); elseif (t <= 3.35) 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 * (y * exp(b))); t_2 = x * ((a ^ (t + -1.0)) / y); tmp = 0.0; if (t <= -1.95e+92) tmp = t_2; elseif (t <= -1.9e+68) tmp = t_1; elseif (t <= -1.75e-182) tmp = (x * ((z ^ y) / a)) / y; elseif (t <= -1.15e-261) tmp = t_1; elseif (t <= 7.5e-129) tmp = (x * ((z ^ y) / y)) / a; elseif (t <= 3.35) 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[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.95e+92], t$95$2, If[LessEqual[t, -1.9e+68], t$95$1, If[LessEqual[t, -1.75e-182], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, -1.15e-261], t$95$1, If[LessEqual[t, 7.5e-129], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 3.35], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
t_2 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -1.95 \cdot 10^{+92}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-182}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-261}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-129}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y}}{a}\\
\mathbf{elif}\;t \leq 3.35:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.95000000000000006e92 or 3.35000000000000009 < t Initial program 100.0%
Taylor expanded in y around 0 94.5%
Taylor expanded in b around 0 86.3%
associate-/l*86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
+-commutative86.3%
Simplified86.3%
Taylor expanded in x around 0 86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
associate-*r/86.3%
Simplified86.3%
if -1.95000000000000006e92 < t < -1.9e68 or -1.74999999999999992e-182 < t < -1.15e-261 or 7.49999999999999944e-129 < t < 3.35000000000000009Initial program 99.4%
associate-*l/89.8%
*-commutative89.8%
+-commutative89.8%
associate--l+89.8%
exp-sum77.5%
*-commutative77.5%
exp-to-pow77.8%
sub-neg77.8%
metadata-eval77.8%
exp-diff65.5%
*-commutative65.5%
exp-to-pow65.5%
Simplified65.5%
Taylor expanded in t around 0 83.7%
times-frac81.5%
Simplified81.5%
Taylor expanded in y around 0 90.1%
if -1.9e68 < t < -1.74999999999999992e-182Initial program 99.1%
Taylor expanded in t around 0 96.4%
+-commutative96.4%
mul-1-neg96.4%
unsub-neg96.4%
Simplified96.4%
Taylor expanded in b around 0 85.3%
div-exp85.3%
*-commutative85.3%
exp-to-pow85.3%
rem-exp-log86.0%
Simplified86.0%
if -1.15e-261 < t < 7.49999999999999944e-129Initial program 94.7%
associate-*l/92.0%
*-commutative92.0%
+-commutative92.0%
associate--l+92.0%
exp-sum92.0%
*-commutative92.0%
exp-to-pow93.5%
sub-neg93.5%
metadata-eval93.5%
exp-diff80.7%
*-commutative80.7%
exp-to-pow80.8%
Simplified80.8%
Taylor expanded in t around 0 78.9%
times-frac78.9%
Simplified78.9%
Taylor expanded in b around 0 75.0%
times-frac75.3%
Simplified75.3%
associate-*l/81.4%
Applied egg-rr81.4%
Final simplification86.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.45e+92) (not (<= t 1.5))) (* x (/ (pow a (+ t -1.0)) y)) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.45e+92) || !(t <= 1.5)) {
tmp = x * (pow(a, (t + -1.0)) / y);
} 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) :: tmp
if ((t <= (-1.45d+92)) .or. (.not. (t <= 1.5d0))) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
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 tmp;
if ((t <= -1.45e+92) || !(t <= 1.5)) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.45e+92) or not (t <= 1.5): tmp = x * (math.pow(a, (t + -1.0)) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.45e+92) || !(t <= 1.5)) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); else tmp = Float64(x / Float64(a * Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.45e+92) || ~((t <= 1.5))) tmp = x * ((a ^ (t + -1.0)) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.45e+92], N[Not[LessEqual[t, 1.5]], $MachinePrecision]], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{+92} \lor \neg \left(t \leq 1.5\right):\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -1.45e92 or 1.5 < t Initial program 100.0%
Taylor expanded in y around 0 94.5%
Taylor expanded in b around 0 86.3%
associate-/l*86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
+-commutative86.3%
Simplified86.3%
Taylor expanded in x around 0 86.3%
exp-to-pow86.3%
sub-neg86.3%
metadata-eval86.3%
associate-*r/86.3%
Simplified86.3%
if -1.45e92 < t < 1.5Initial program 97.8%
associate-*l/89.7%
*-commutative89.7%
+-commutative89.7%
associate--l+89.7%
exp-sum82.9%
*-commutative82.9%
exp-to-pow83.8%
sub-neg83.8%
metadata-eval83.8%
exp-diff72.9%
*-commutative72.9%
exp-to-pow73.0%
Simplified73.0%
Taylor expanded in t around 0 80.2%
times-frac79.4%
Simplified79.4%
Taylor expanded in y around 0 72.3%
Final simplification78.2%
(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.7%
associate-*l/89.4%
*-commutative89.4%
+-commutative89.4%
associate--l+89.4%
exp-sum70.2%
*-commutative70.2%
exp-to-pow70.7%
sub-neg70.7%
metadata-eval70.7%
exp-diff63.3%
*-commutative63.3%
exp-to-pow63.3%
Simplified63.3%
Taylor expanded in t around 0 66.3%
times-frac65.4%
Simplified65.4%
Taylor expanded in y around 0 60.1%
Final simplification60.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.4e+45) (* (/ x y) (/ (- b) a)) (if (<= b 4.9e+101) (* (/ x y) (/ 1.0 a)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.4e+45) {
tmp = (x / y) * (-b / a);
} else if (b <= 4.9e+101) {
tmp = (x / y) * (1.0 / 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 <= (-3.4d+45)) then
tmp = (x / y) * (-b / a)
else if (b <= 4.9d+101) then
tmp = (x / y) * (1.0d0 / 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 <= -3.4e+45) {
tmp = (x / y) * (-b / a);
} else if (b <= 4.9e+101) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.4e+45: tmp = (x / y) * (-b / a) elif b <= 4.9e+101: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.4e+45) tmp = Float64(Float64(x / y) * Float64(Float64(-b) / a)); elseif (b <= 4.9e+101) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 <= -3.4e+45) tmp = (x / y) * (-b / a); elseif (b <= 4.9e+101) tmp = (x / y) * (1.0 / a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.4e+45], N[(N[(x / y), $MachinePrecision] * N[((-b) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.9e+101], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.4 \cdot 10^{+45}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{-b}{a}\\
\mathbf{elif}\;b \leq 4.9 \cdot 10^{+101}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.4e45Initial program 100.0%
Taylor expanded in y around 0 93.0%
exp-diff62.6%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in t around 0 82.4%
Taylor expanded in b around 0 46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
associate-/l*45.0%
Simplified45.0%
Taylor expanded in b around inf 48.1%
mul-1-neg48.1%
times-frac46.5%
distribute-rgt-neg-in46.5%
Simplified46.5%
if -3.4e45 < b < 4.89999999999999983e101Initial program 97.9%
associate-*l/90.9%
*-commutative90.9%
+-commutative90.9%
associate--l+90.9%
exp-sum76.1%
*-commutative76.1%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
exp-diff73.0%
*-commutative73.0%
exp-to-pow73.1%
Simplified73.1%
Taylor expanded in t around 0 61.2%
times-frac64.3%
Simplified64.3%
Taylor expanded in y around 0 45.9%
Taylor expanded in b around 0 36.1%
*-un-lft-identity36.1%
times-frac38.9%
Applied egg-rr38.9%
if 4.89999999999999983e101 < b Initial program 100.0%
associate-*l/86.4%
*-commutative86.4%
+-commutative86.4%
associate--l+86.4%
exp-sum63.6%
*-commutative63.6%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
Simplified50.0%
Taylor expanded in t around 0 72.8%
times-frac66.0%
Simplified66.0%
Taylor expanded in y around 0 82.1%
Taylor expanded in b around 0 40.7%
distribute-lft-out40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in b around inf 40.7%
*-commutative40.7%
*-commutative40.7%
associate-*l*47.3%
*-commutative47.3%
Simplified47.3%
Final simplification42.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.8e+45) (/ (* x (- b)) (* y a)) (if (<= b 5.2e+101) (* (/ x y) (/ 1.0 a)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.8e+45) {
tmp = (x * -b) / (y * a);
} else if (b <= 5.2e+101) {
tmp = (x / y) * (1.0 / 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 <= (-2.8d+45)) then
tmp = (x * -b) / (y * a)
else if (b <= 5.2d+101) then
tmp = (x / y) * (1.0d0 / 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 <= -2.8e+45) {
tmp = (x * -b) / (y * a);
} else if (b <= 5.2e+101) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.8e+45: tmp = (x * -b) / (y * a) elif b <= 5.2e+101: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.8e+45) tmp = Float64(Float64(x * Float64(-b)) / Float64(y * a)); elseif (b <= 5.2e+101) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 <= -2.8e+45) tmp = (x * -b) / (y * a); elseif (b <= 5.2e+101) tmp = (x / y) * (1.0 / a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.8e+45], N[(N[(x * (-b)), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e+101], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{+45}:\\
\;\;\;\;\frac{x \cdot \left(-b\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+101}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.7999999999999999e45Initial program 100.0%
Taylor expanded in y around 0 93.0%
exp-diff62.6%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
Simplified62.6%
Taylor expanded in t around 0 82.4%
Taylor expanded in b around 0 46.7%
+-commutative46.7%
mul-1-neg46.7%
unsub-neg46.7%
associate-/l*45.0%
Simplified45.0%
Taylor expanded in b around inf 48.1%
associate-*r/48.1%
associate-*r*48.1%
neg-mul-148.1%
*-commutative48.1%
*-commutative48.1%
Simplified48.1%
if -2.7999999999999999e45 < b < 5.2e101Initial program 97.9%
associate-*l/90.9%
*-commutative90.9%
+-commutative90.9%
associate--l+90.9%
exp-sum76.1%
*-commutative76.1%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
exp-diff73.0%
*-commutative73.0%
exp-to-pow73.1%
Simplified73.1%
Taylor expanded in t around 0 61.2%
times-frac64.3%
Simplified64.3%
Taylor expanded in y around 0 45.9%
Taylor expanded in b around 0 36.1%
*-un-lft-identity36.1%
times-frac38.9%
Applied egg-rr38.9%
if 5.2e101 < b Initial program 100.0%
associate-*l/86.4%
*-commutative86.4%
+-commutative86.4%
associate--l+86.4%
exp-sum63.6%
*-commutative63.6%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
Simplified50.0%
Taylor expanded in t around 0 72.8%
times-frac66.0%
Simplified66.0%
Taylor expanded in y around 0 82.1%
Taylor expanded in b around 0 40.7%
distribute-lft-out40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in b around inf 40.7%
*-commutative40.7%
*-commutative40.7%
associate-*l*47.3%
*-commutative47.3%
Simplified47.3%
Final simplification42.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.3e+45) (/ x (/ y (/ (- 1.0 b) a))) (if (<= b 5.4e+101) (* (/ x y) (/ 1.0 a)) (/ x (* y (* a b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.3e+45) {
tmp = x / (y / ((1.0 - b) / a));
} else if (b <= 5.4e+101) {
tmp = (x / y) * (1.0 / 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 <= (-2.3d+45)) then
tmp = x / (y / ((1.0d0 - b) / a))
else if (b <= 5.4d+101) then
tmp = (x / y) * (1.0d0 / 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 <= -2.3e+45) {
tmp = x / (y / ((1.0 - b) / a));
} else if (b <= 5.4e+101) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.3e+45: tmp = x / (y / ((1.0 - b) / a)) elif b <= 5.4e+101: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.3e+45) tmp = Float64(x / Float64(y / Float64(Float64(1.0 - b) / a))); elseif (b <= 5.4e+101) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 <= -2.3e+45) tmp = x / (y / ((1.0 - b) / a)); elseif (b <= 5.4e+101) tmp = (x / y) * (1.0 / a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.3e+45], N[(x / N[(y / N[(N[(1.0 - b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.4e+101], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.3 \cdot 10^{+45}:\\
\;\;\;\;\frac{x}{\frac{y}{\frac{1 - b}{a}}}\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{+101}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.30000000000000012e45Initial program 100.0%
associate-*l/87.5%
*-commutative87.5%
+-commutative87.5%
associate--l+87.5%
exp-sum58.9%
*-commutative58.9%
exp-to-pow58.9%
sub-neg58.9%
metadata-eval58.9%
exp-diff46.4%
*-commutative46.4%
exp-to-pow46.4%
Simplified46.4%
Taylor expanded in t around 0 75.1%
times-frac68.0%
Simplified68.0%
Taylor expanded in y around 0 82.4%
Taylor expanded in b around 0 11.9%
distribute-lft-out11.9%
*-commutative11.9%
Simplified11.9%
Taylor expanded in b around 0 48.1%
+-commutative48.1%
*-commutative48.1%
mul-1-neg48.1%
sub-neg48.1%
*-lft-identity48.1%
associate-*r/48.1%
associate-/l*48.1%
associate-*r/46.5%
*-commutative46.5%
associate-/l*43.2%
associate-*r/40.0%
div-sub40.0%
associate-/l/45.0%
associate-/r/53.5%
div-sub53.5%
sub-neg53.5%
+-commutative53.5%
neg-mul-153.5%
*-commutative53.5%
associate-/l*55.2%
Simplified55.2%
if -2.30000000000000012e45 < b < 5.40000000000000012e101Initial program 97.9%
associate-*l/90.9%
*-commutative90.9%
+-commutative90.9%
associate--l+90.9%
exp-sum76.1%
*-commutative76.1%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
exp-diff73.0%
*-commutative73.0%
exp-to-pow73.1%
Simplified73.1%
Taylor expanded in t around 0 61.2%
times-frac64.3%
Simplified64.3%
Taylor expanded in y around 0 45.9%
Taylor expanded in b around 0 36.1%
*-un-lft-identity36.1%
times-frac38.9%
Applied egg-rr38.9%
if 5.40000000000000012e101 < b Initial program 100.0%
associate-*l/86.4%
*-commutative86.4%
+-commutative86.4%
associate--l+86.4%
exp-sum63.6%
*-commutative63.6%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
Simplified50.0%
Taylor expanded in t around 0 72.8%
times-frac66.0%
Simplified66.0%
Taylor expanded in y around 0 82.1%
Taylor expanded in b around 0 40.7%
distribute-lft-out40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in b around inf 40.7%
*-commutative40.7%
*-commutative40.7%
associate-*l*47.3%
*-commutative47.3%
Simplified47.3%
Final simplification43.9%
(FPCore (x y z t a b) :precision binary64 (if (<= z 0.0009) (* (/ x y) (/ 1.0 a)) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 0.0009) {
tmp = (x / y) * (1.0 / 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 (z <= 0.0009d0) then
tmp = (x / y) * (1.0d0 / 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 (z <= 0.0009) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= 0.0009: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 0.0009) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 (z <= 0.0009) tmp = (x / y) * (1.0 / a); else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 0.0009], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 0.0009:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if z < 8.9999999999999998e-4Initial program 98.4%
associate-*l/88.9%
*-commutative88.9%
+-commutative88.9%
associate--l+88.9%
exp-sum71.5%
*-commutative71.5%
exp-to-pow72.1%
sub-neg72.1%
metadata-eval72.1%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
Simplified64.3%
Taylor expanded in t around 0 66.2%
times-frac66.9%
Simplified66.9%
Taylor expanded in y around 0 57.2%
Taylor expanded in b around 0 31.2%
*-un-lft-identity31.2%
times-frac37.5%
Applied egg-rr37.5%
if 8.9999999999999998e-4 < z Initial program 99.0%
associate-*l/89.8%
*-commutative89.8%
+-commutative89.8%
associate--l+89.8%
exp-sum69.2%
*-commutative69.2%
exp-to-pow69.5%
sub-neg69.5%
metadata-eval69.5%
exp-diff62.4%
*-commutative62.4%
exp-to-pow62.4%
Simplified62.4%
Taylor expanded in t around 0 66.3%
times-frac64.2%
Simplified64.2%
Taylor expanded in y around 0 62.6%
Taylor expanded in b around 0 31.9%
Final simplification34.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 5.8e+108) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 5.8e+108) {
tmp = (x / y) * (1.0 / 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 <= 5.8d+108) then
tmp = (x / y) * (1.0d0 / 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 <= 5.8e+108) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 5.8e+108: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 5.8e+108) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 <= 5.8e+108) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 5.8e+108], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 5.8 \cdot 10^{+108}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 5.80000000000000015e108Initial program 98.5%
associate-*l/89.3%
*-commutative89.3%
+-commutative89.3%
associate--l+89.3%
exp-sum70.9%
*-commutative70.9%
exp-to-pow71.4%
sub-neg71.4%
metadata-eval71.4%
exp-diff65.4%
*-commutative65.4%
exp-to-pow65.4%
Simplified65.4%
Taylor expanded in t around 0 64.8%
times-frac65.2%
Simplified65.2%
Taylor expanded in y around 0 55.7%
Taylor expanded in b around 0 34.5%
*-un-lft-identity34.5%
times-frac35.2%
Applied egg-rr35.2%
if 5.80000000000000015e108 < b Initial program 100.0%
associate-*l/89.7%
*-commutative89.7%
+-commutative89.7%
associate--l+89.7%
exp-sum66.7%
*-commutative66.7%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
exp-diff51.3%
*-commutative51.3%
exp-to-pow51.3%
Simplified51.3%
Taylor expanded in t around 0 74.5%
times-frac66.8%
Simplified66.8%
Taylor expanded in y around 0 84.9%
Taylor expanded in b around 0 43.1%
distribute-lft-out43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in b around inf 43.1%
*-commutative43.1%
Simplified43.1%
Final simplification36.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.15e+102) (* (/ x y) (/ 1.0 a)) (/ x (* y (* a b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.15e+102) {
tmp = (x / y) * (1.0 / 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 <= 1.15d+102) then
tmp = (x / y) * (1.0d0 / 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 <= 1.15e+102) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (y * (a * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.15e+102: tmp = (x / y) * (1.0 / a) else: tmp = x / (y * (a * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.15e+102) tmp = Float64(Float64(x / y) * Float64(1.0 / 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 <= 1.15e+102) tmp = (x / y) * (1.0 / a); else tmp = x / (y * (a * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.15e+102], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(y * N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.15 \cdot 10^{+102}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot \left(a \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.1499999999999999e102Initial program 98.5%
associate-*l/90.0%
*-commutative90.0%
+-commutative90.0%
associate--l+90.0%
exp-sum71.6%
*-commutative71.6%
exp-to-pow72.1%
sub-neg72.1%
metadata-eval72.1%
exp-diff66.0%
*-commutative66.0%
exp-to-pow66.0%
Simplified66.0%
Taylor expanded in t around 0 64.9%
times-frac65.3%
Simplified65.3%
Taylor expanded in y around 0 55.6%
Taylor expanded in b around 0 34.8%
*-un-lft-identity34.8%
times-frac35.5%
Applied egg-rr35.5%
if 1.1499999999999999e102 < b Initial program 100.0%
associate-*l/86.4%
*-commutative86.4%
+-commutative86.4%
associate--l+86.4%
exp-sum63.6%
*-commutative63.6%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
exp-diff50.0%
*-commutative50.0%
exp-to-pow50.0%
Simplified50.0%
Taylor expanded in t around 0 72.8%
times-frac66.0%
Simplified66.0%
Taylor expanded in y around 0 82.1%
Taylor expanded in b around 0 40.7%
distribute-lft-out40.7%
*-commutative40.7%
Simplified40.7%
Taylor expanded in b around inf 40.7%
*-commutative40.7%
*-commutative40.7%
associate-*l*47.3%
*-commutative47.3%
Simplified47.3%
Final simplification37.5%
(FPCore (x y z t a b) :precision binary64 (if (<= t -2e-214) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2e-214) {
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 (t <= (-2d-214)) 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 (t <= -2e-214) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -2e-214: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2e-214) 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 (t <= -2e-214) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2e-214], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{-214}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if t < -1.99999999999999983e-214Initial program 99.6%
Taylor expanded in y around 0 85.2%
exp-diff67.8%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
Simplified68.0%
Taylor expanded in t around 0 65.1%
Taylor expanded in b around 0 38.5%
if -1.99999999999999983e-214 < t Initial program 97.9%
associate-*l/89.4%
*-commutative89.4%
+-commutative89.4%
associate--l+89.4%
exp-sum74.8%
*-commutative74.8%
exp-to-pow75.4%
sub-neg75.4%
metadata-eval75.4%
exp-diff67.0%
*-commutative67.0%
exp-to-pow67.0%
Simplified67.0%
Taylor expanded in t around 0 65.8%
times-frac65.0%
Simplified65.0%
Taylor expanded in y around 0 56.8%
Taylor expanded in b around 0 28.6%
Final simplification33.5%
(FPCore (x y z t a b) :precision binary64 (if (<= z 0.00095) (/ (/ x y) a) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 0.00095) {
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 (z <= 0.00095d0) 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 (z <= 0.00095) {
tmp = (x / y) / a;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= 0.00095: tmp = (x / y) / a else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 0.00095) 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 (z <= 0.00095) tmp = (x / y) / a; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 0.00095], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 0.00095:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if z < 9.49999999999999998e-4Initial program 98.4%
associate-*l/88.9%
*-commutative88.9%
+-commutative88.9%
associate--l+88.9%
exp-sum71.5%
*-commutative71.5%
exp-to-pow72.1%
sub-neg72.1%
metadata-eval72.1%
exp-diff64.3%
*-commutative64.3%
exp-to-pow64.3%
Simplified64.3%
Taylor expanded in t around 0 66.2%
times-frac66.9%
Simplified66.9%
Taylor expanded in b around 0 58.9%
times-frac60.6%
Simplified60.6%
associate-*l/66.6%
Applied egg-rr66.6%
Taylor expanded in y around 0 37.5%
if 9.49999999999999998e-4 < z Initial program 99.0%
associate-*l/89.8%
*-commutative89.8%
+-commutative89.8%
associate--l+89.8%
exp-sum69.2%
*-commutative69.2%
exp-to-pow69.5%
sub-neg69.5%
metadata-eval69.5%
exp-diff62.4%
*-commutative62.4%
exp-to-pow62.4%
Simplified62.4%
Taylor expanded in t around 0 66.3%
times-frac64.2%
Simplified64.2%
Taylor expanded in y around 0 62.6%
Taylor expanded in b around 0 31.9%
Final simplification34.4%
(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.7%
associate-*l/89.4%
*-commutative89.4%
+-commutative89.4%
associate--l+89.4%
exp-sum70.2%
*-commutative70.2%
exp-to-pow70.7%
sub-neg70.7%
metadata-eval70.7%
exp-diff63.3%
*-commutative63.3%
exp-to-pow63.3%
Simplified63.3%
Taylor expanded in t around 0 66.3%
times-frac65.4%
Simplified65.4%
Taylor expanded in y around 0 60.1%
Taylor expanded in b around 0 31.6%
Final simplification31.6%
(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 2024027
(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))