
(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 27 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.3%
Final simplification98.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.2e+125) (not (<= t 3.6e-6))) (/ (* 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 <= -3.2e+125) || !(t <= 3.6e-6)) {
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 <= (-3.2d+125)) .or. (.not. (t <= 3.6d-6))) 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 <= -3.2e+125) || !(t <= 3.6e-6)) {
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 <= -3.2e+125) or not (t <= 3.6e-6): 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 ((t <= -3.2e+125) || !(t <= 3.6e-6)) 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 <= -3.2e+125) || ~((t <= 3.6e-6))) 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[t, -3.2e+125], N[Not[LessEqual[t, 3.6e-6]], $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 \leq -3.2 \cdot 10^{+125} \lor \neg \left(t \leq 3.6 \cdot 10^{-6}\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 t < -3.19999999999999983e125 or 3.59999999999999984e-6 < t Initial program 100.0%
Taylor expanded in y around 0 95.1%
if -3.19999999999999983e125 < t < 3.59999999999999984e-6Initial program 97.2%
Taylor expanded in t around 0 95.4%
+-commutative95.4%
mul-1-neg95.4%
unsub-neg95.4%
Simplified95.4%
Final simplification95.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (/ (pow a (+ t -1.0)) y) (exp b))))
(t_2 (/ (/ (* x (pow z y)) a) y)))
(if (<= y -470000000000.0)
t_2
(if (<= y 1.25e-281)
t_1
(if (<= y 5.5e-204)
(/ 1.0 (/ (* y (exp b)) (/ x a)))
(if (<= y 3.6e+68) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((pow(a, (t + -1.0)) / y) / exp(b));
double t_2 = ((x * pow(z, y)) / a) / y;
double tmp;
if (y <= -470000000000.0) {
tmp = t_2;
} else if (y <= 1.25e-281) {
tmp = t_1;
} else if (y <= 5.5e-204) {
tmp = 1.0 / ((y * exp(b)) / (x / a));
} else if (y <= 3.6e+68) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (((a ** (t + (-1.0d0))) / y) / exp(b))
t_2 = ((x * (z ** y)) / a) / y
if (y <= (-470000000000.0d0)) then
tmp = t_2
else if (y <= 1.25d-281) then
tmp = t_1
else if (y <= 5.5d-204) then
tmp = 1.0d0 / ((y * exp(b)) / (x / a))
else if (y <= 3.6d+68) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x * ((Math.pow(a, (t + -1.0)) / y) / Math.exp(b));
double t_2 = ((x * Math.pow(z, y)) / a) / y;
double tmp;
if (y <= -470000000000.0) {
tmp = t_2;
} else if (y <= 1.25e-281) {
tmp = t_1;
} else if (y <= 5.5e-204) {
tmp = 1.0 / ((y * Math.exp(b)) / (x / a));
} else if (y <= 3.6e+68) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x * ((math.pow(a, (t + -1.0)) / y) / math.exp(b)) t_2 = ((x * math.pow(z, y)) / a) / y tmp = 0 if y <= -470000000000.0: tmp = t_2 elif y <= 1.25e-281: tmp = t_1 elif y <= 5.5e-204: tmp = 1.0 / ((y * math.exp(b)) / (x / a)) elif y <= 3.6e+68: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64(Float64((a ^ Float64(t + -1.0)) / y) / exp(b))) t_2 = Float64(Float64(Float64(x * (z ^ y)) / a) / y) tmp = 0.0 if (y <= -470000000000.0) tmp = t_2; elseif (y <= 1.25e-281) tmp = t_1; elseif (y <= 5.5e-204) tmp = Float64(1.0 / Float64(Float64(y * exp(b)) / Float64(x / a))); elseif (y <= 3.6e+68) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x * (((a ^ (t + -1.0)) / y) / exp(b)); t_2 = ((x * (z ^ y)) / a) / y; tmp = 0.0; if (y <= -470000000000.0) tmp = t_2; elseif (y <= 1.25e-281) tmp = t_1; elseif (y <= 5.5e-204) tmp = 1.0 / ((y * exp(b)) / (x / a)); elseif (y <= 3.6e+68) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[y, -470000000000.0], t$95$2, If[LessEqual[y, 1.25e-281], t$95$1, If[LessEqual[y, 5.5e-204], N[(1.0 / N[(N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision] / N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+68], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{\frac{{a}^{\left(t + -1\right)}}{y}}{e^{b}}\\
t_2 := \frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{if}\;y \leq -470000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-204}:\\
\;\;\;\;\frac{1}{\frac{y \cdot e^{b}}{\frac{x}{a}}}\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.7e11 or 3.5999999999999999e68 < y Initial program 100.0%
Taylor expanded in b around 0 95.0%
exp-sum73.0%
*-commutative73.0%
exp-to-pow73.0%
exp-to-pow73.0%
Simplified73.0%
Taylor expanded in t around 0 81.6%
if -4.7e11 < y < 1.2499999999999999e-281 or 5.4999999999999999e-204 < y < 3.5999999999999999e68Initial program 96.8%
associate-/l*98.9%
exp-diff82.8%
associate-/l/82.8%
exp-sum81.1%
associate-/l*81.1%
*-commutative81.1%
exp-to-pow81.1%
*-commutative81.1%
exp-to-pow82.1%
sub-neg82.1%
metadata-eval82.1%
Simplified82.1%
Taylor expanded in y around 0 83.9%
associate-/r*82.3%
exp-to-pow83.2%
sub-neg83.2%
metadata-eval83.2%
metadata-eval83.2%
sub-neg83.2%
Simplified83.2%
if 1.2499999999999999e-281 < y < 5.4999999999999999e-204Initial program 97.6%
associate-/l*86.1%
exp-diff64.6%
associate-/l/64.6%
exp-sum64.6%
associate-/l*64.6%
*-commutative64.6%
exp-to-pow64.6%
*-commutative64.6%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in y around 0 64.6%
associate-/r*50.3%
exp-to-pow51.2%
sub-neg51.2%
metadata-eval51.2%
metadata-eval51.2%
sub-neg51.2%
Simplified51.2%
Taylor expanded in t around 0 73.0%
associate-/r*85.9%
clear-num86.2%
Applied egg-rr86.2%
Final simplification82.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -3.5e+42) (not (<= t 1.15e-22))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ 1.0 (/ y (* x (/ (pow z y) (* a (exp b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -3.5e+42) || !(t <= 1.15e-22)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = 1.0 / (y / (x * (pow(z, y) / (a * 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 <= (-3.5d+42)) .or. (.not. (t <= 1.15d-22))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = 1.0d0 / (y / (x * ((z ** y) / (a * 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 <= -3.5e+42) || !(t <= 1.15e-22)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = 1.0 / (y / (x * (Math.pow(z, y) / (a * Math.exp(b)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -3.5e+42) or not (t <= 1.15e-22): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = 1.0 / (y / (x * (math.pow(z, y) / (a * math.exp(b))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -3.5e+42) || !(t <= 1.15e-22)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(1.0 / Float64(y / Float64(x * Float64((z ^ y) / Float64(a * exp(b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -3.5e+42) || ~((t <= 1.15e-22))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = 1.0 / (y / (x * ((z ^ y) / (a * exp(b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -3.5e+42], N[Not[LessEqual[t, 1.15e-22]], $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[(1.0 / N[(y / N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(a * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.5 \cdot 10^{+42} \lor \neg \left(t \leq 1.15 \cdot 10^{-22}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{y}{x \cdot \frac{{z}^{y}}{a \cdot e^{b}}}}\\
\end{array}
\end{array}
if t < -3.50000000000000023e42 or 1.1499999999999999e-22 < t Initial program 100.0%
Taylor expanded in y around 0 93.1%
if -3.50000000000000023e42 < t < 1.1499999999999999e-22Initial program 97.0%
Taylor expanded in t around 0 96.3%
+-commutative96.3%
mul-1-neg96.3%
unsub-neg96.3%
Simplified96.3%
clear-num96.3%
*-commutative96.3%
associate--l-96.3%
exp-diff88.5%
*-commutative88.5%
pow-to-exp88.5%
prod-exp88.5%
add-exp-log89.5%
Applied egg-rr89.5%
Final simplification91.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5e+42) (not (<= t 1.15e-22))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (* x (* (pow z y) (/ (/ 1.0 a) (* y (exp b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5e+42) || !(t <= 1.15e-22)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = x * (pow(z, y) * ((1.0 / 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 <= (-5d+42)) .or. (.not. (t <= 1.15d-22))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = x * ((z ** y) * ((1.0d0 / 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 <= -5e+42) || !(t <= 1.15e-22)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = x * (Math.pow(z, y) * ((1.0 / a) / (y * Math.exp(b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5e+42) or not (t <= 1.15e-22): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = x * (math.pow(z, y) * ((1.0 / a) / (y * math.exp(b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5e+42) || !(t <= 1.15e-22)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(x * Float64((z ^ y) * Float64(Float64(1.0 / a) / Float64(y * exp(b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -5e+42) || ~((t <= 1.15e-22))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = x * ((z ^ y) * ((1.0 / a) / (y * exp(b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5e+42], N[Not[LessEqual[t, 1.15e-22]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[Power[z, y], $MachinePrecision] * N[(N[(1.0 / a), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5 \cdot 10^{+42} \lor \neg \left(t \leq 1.15 \cdot 10^{-22}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left({z}^{y} \cdot \frac{\frac{1}{a}}{y \cdot e^{b}}\right)\\
\end{array}
\end{array}
if t < -5.00000000000000007e42 or 1.1499999999999999e-22 < t Initial program 100.0%
Taylor expanded in y around 0 93.1%
if -5.00000000000000007e42 < t < 1.1499999999999999e-22Initial program 97.0%
associate-/l*97.7%
exp-diff89.2%
associate-/l/89.2%
exp-sum87.1%
associate-/l*83.5%
*-commutative83.5%
exp-to-pow83.5%
*-commutative83.5%
exp-to-pow84.5%
sub-neg84.5%
metadata-eval84.5%
Simplified84.5%
Taylor expanded in t around 0 87.3%
Final simplification89.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -5.1e+34) (not (<= t 3.6e-23))) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y) (/ (* x (pow z y)) (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -5.1e+34) || !(t <= 3.6e-23)) {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
} else {
tmp = (x * pow(z, y)) / (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 <= (-5.1d+34)) .or. (.not. (t <= 3.6d-23))) then
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
else
tmp = (x * (z ** y)) / (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 <= -5.1e+34) || !(t <= 3.6e-23)) {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -5.1e+34) or not (t <= 3.6e-23): tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y else: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -5.1e+34) || !(t <= 3.6e-23)) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); else tmp = Float64(Float64(x * (z ^ y)) / 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 <= -5.1e+34) || ~((t <= 3.6e-23))) tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; else tmp = (x * (z ^ y)) / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -5.1e+34], N[Not[LessEqual[t, 3.6e-23]], $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[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.1 \cdot 10^{+34} \lor \neg \left(t \leq 3.6 \cdot 10^{-23}\right):\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -5.10000000000000036e34 or 3.5999999999999998e-23 < t Initial program 100.0%
Taylor expanded in y around 0 92.3%
if -5.10000000000000036e34 < t < 3.5999999999999998e-23Initial program 97.0%
associate-/l*97.7%
exp-diff89.1%
associate-/l/89.1%
exp-sum87.7%
associate-/l*84.1%
*-commutative84.1%
exp-to-pow84.1%
*-commutative84.1%
exp-to-pow85.1%
sub-neg85.1%
metadata-eval85.1%
Simplified85.1%
Taylor expanded in t around 0 87.3%
*-commutative87.3%
Simplified87.3%
Final simplification89.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.85e+39) (not (<= t 110.0))) (* x (/ (pow a (+ t -1.0)) y)) (/ (* x (pow z y)) (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.85e+39) || !(t <= 110.0)) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else {
tmp = (x * pow(z, y)) / (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.85d+39)) .or. (.not. (t <= 110.0d0))) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else
tmp = (x * (z ** y)) / (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.85e+39) || !(t <= 110.0)) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} else {
tmp = (x * Math.pow(z, y)) / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.85e+39) or not (t <= 110.0): tmp = x * (math.pow(a, (t + -1.0)) / y) else: tmp = (x * math.pow(z, y)) / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.85e+39) || !(t <= 110.0)) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); else tmp = Float64(Float64(x * (z ^ y)) / 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.85e+39) || ~((t <= 110.0))) tmp = x * ((a ^ (t + -1.0)) / y); else tmp = (x * (z ^ y)) / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.85e+39], N[Not[LessEqual[t, 110.0]], $MachinePrecision]], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.85 \cdot 10^{+39} \lor \neg \left(t \leq 110\right):\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -1.85000000000000006e39 or 110 < t Initial program 100.0%
associate-/l*100.0%
exp-diff72.7%
associate-/l/72.7%
exp-sum54.5%
associate-/l*54.5%
*-commutative54.5%
exp-to-pow54.5%
*-commutative54.5%
exp-to-pow54.5%
sub-neg54.5%
metadata-eval54.5%
Simplified54.5%
Taylor expanded in y around 0 67.4%
associate-/r*67.4%
exp-to-pow67.4%
sub-neg67.4%
metadata-eval67.4%
metadata-eval67.4%
sub-neg67.4%
Simplified67.4%
Taylor expanded in b around 0 82.1%
Simplified82.1%
if -1.85000000000000006e39 < t < 110Initial program 97.1%
associate-/l*97.7%
exp-diff87.5%
associate-/l/87.5%
exp-sum86.0%
associate-/l*82.6%
*-commutative82.6%
exp-to-pow82.6%
*-commutative82.6%
exp-to-pow83.6%
sub-neg83.6%
metadata-eval83.6%
Simplified83.6%
Taylor expanded in t around 0 85.7%
*-commutative85.7%
Simplified85.7%
Final simplification84.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -4.5e+92) (not (<= y 7.2e+32))) (/ (/ (* x (pow z y)) a) y) (/ (* x (/ (pow a (+ t -1.0)) (exp b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.5e+92) || !(y <= 7.2e+32)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = (x * (pow(a, (t + -1.0)) / exp(b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-4.5d+92)) .or. (.not. (y <= 7.2d+32))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = (x * ((a ** (t + (-1.0d0))) / exp(b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -4.5e+92) || !(y <= 7.2e+32)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = (x * (Math.pow(a, (t + -1.0)) / Math.exp(b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -4.5e+92) or not (y <= 7.2e+32): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = (x * (math.pow(a, (t + -1.0)) / math.exp(b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -4.5e+92) || !(y <= 7.2e+32)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(Float64(x * Float64((a ^ Float64(t + -1.0)) / exp(b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -4.5e+92) || ~((y <= 7.2e+32))) tmp = ((x * (z ^ y)) / a) / y; else tmp = (x * ((a ^ (t + -1.0)) / exp(b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -4.5e+92], N[Not[LessEqual[y, 7.2e+32]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.5 \cdot 10^{+92} \lor \neg \left(y \leq 7.2 \cdot 10^{+32}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \frac{{a}^{\left(t + -1\right)}}{e^{b}}}{y}\\
\end{array}
\end{array}
if y < -4.4999999999999999e92 or 7.1999999999999994e32 < y Initial program 100.0%
Taylor expanded in b around 0 94.6%
exp-sum73.5%
*-commutative73.5%
exp-to-pow73.5%
exp-to-pow73.5%
Simplified73.5%
Taylor expanded in t around 0 82.8%
if -4.4999999999999999e92 < y < 7.1999999999999994e32Initial program 97.1%
Taylor expanded in y around 0 93.4%
div-exp80.5%
exp-to-pow81.3%
Simplified81.3%
Final simplification81.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -4e-35)
t_1
(if (<= b -1.85e-270)
(/ x (* a (/ (- (* y y) (* (* y b) (* y b))) (- y (* y b)))))
(if (<= b 1.8e-175)
(/ x (* a (* b (+ y (/ y b)))))
(if (<= b 5.1e-166) (/ x (* a (* y b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * exp(b)));
double tmp;
if (b <= -4e-35) {
tmp = t_1;
} else if (b <= -1.85e-270) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 1.8e-175) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 5.1e-166) {
tmp = x / (a * (y * b));
} 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 * (y * exp(b)))
if (b <= (-4d-35)) then
tmp = t_1
else if (b <= (-1.85d-270)) then
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))))
else if (b <= 1.8d-175) then
tmp = x / (a * (b * (y + (y / b))))
else if (b <= 5.1d-166) then
tmp = x / (a * (y * b))
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 / (a * (y * Math.exp(b)));
double tmp;
if (b <= -4e-35) {
tmp = t_1;
} else if (b <= -1.85e-270) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 1.8e-175) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 5.1e-166) {
tmp = x / (a * (y * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -4e-35: tmp = t_1 elif b <= -1.85e-270: tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))) elif b <= 1.8e-175: tmp = x / (a * (b * (y + (y / b)))) elif b <= 5.1e-166: tmp = x / (a * (y * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -4e-35) tmp = t_1; elseif (b <= -1.85e-270) tmp = Float64(x / Float64(a * Float64(Float64(Float64(y * y) - Float64(Float64(y * b) * Float64(y * b))) / Float64(y - Float64(y * b))))); elseif (b <= 1.8e-175) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); elseif (b <= 5.1e-166) tmp = Float64(x / Float64(a * Float64(y * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -4e-35) tmp = t_1; elseif (b <= -1.85e-270) tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))); elseif (b <= 1.8e-175) tmp = x / (a * (b * (y + (y / b)))); elseif (b <= 5.1e-166) tmp = x / (a * (y * b)); else tmp = t_1; 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]}, If[LessEqual[b, -4e-35], t$95$1, If[LessEqual[b, -1.85e-270], N[(x / N[(a * N[(N[(N[(y * y), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e-175], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.1e-166], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -4 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.85 \cdot 10^{-270}:\\
\;\;\;\;\frac{x}{a \cdot \frac{y \cdot y - \left(y \cdot b\right) \cdot \left(y \cdot b\right)}{y - y \cdot b}}\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-175}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 5.1 \cdot 10^{-166}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.00000000000000003e-35 or 5.1000000000000002e-166 < b Initial program 99.2%
associate-/l*99.2%
exp-diff72.8%
associate-/l/72.8%
exp-sum65.2%
associate-/l*63.4%
*-commutative63.4%
exp-to-pow63.4%
*-commutative63.4%
exp-to-pow63.7%
sub-neg63.7%
metadata-eval63.7%
Simplified63.7%
Taylor expanded in y around 0 65.8%
associate-/r*62.3%
exp-to-pow62.5%
sub-neg62.5%
metadata-eval62.5%
metadata-eval62.5%
sub-neg62.5%
Simplified62.5%
Taylor expanded in t around 0 68.7%
if -4.00000000000000003e-35 < b < -1.8500000000000001e-270Initial program 96.2%
associate-/l*96.5%
exp-diff96.5%
associate-/l/96.5%
exp-sum82.9%
associate-/l*82.9%
*-commutative82.9%
exp-to-pow82.9%
*-commutative82.9%
exp-to-pow84.1%
sub-neg84.1%
metadata-eval84.1%
Simplified84.1%
Taylor expanded in y around 0 70.2%
associate-/r*70.2%
exp-to-pow71.3%
sub-neg71.3%
metadata-eval71.3%
metadata-eval71.3%
sub-neg71.3%
Simplified71.3%
Taylor expanded in t around 0 36.3%
Taylor expanded in b around 0 34.1%
distribute-lft-out36.3%
Simplified36.3%
flip-+55.8%
*-commutative55.8%
*-commutative55.8%
*-commutative55.8%
Applied egg-rr55.8%
if -1.8500000000000001e-270 < b < 1.8e-175Initial program 97.0%
associate-/l*99.1%
exp-diff99.1%
associate-/l/99.1%
exp-sum91.2%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
*-commutative86.0%
exp-to-pow86.8%
sub-neg86.8%
metadata-eval86.8%
Simplified86.8%
Taylor expanded in y around 0 63.3%
associate-/r*63.3%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
metadata-eval64.1%
sub-neg64.1%
Simplified64.1%
Taylor expanded in t around 0 38.5%
Taylor expanded in b around 0 38.5%
distribute-lft-out38.5%
Simplified38.5%
Taylor expanded in b around inf 53.5%
if 1.8e-175 < b < 5.1000000000000002e-166Initial program 100.0%
associate-/l*100.0%
exp-diff100.0%
associate-/l/100.0%
exp-sum100.0%
associate-/l*100.0%
*-commutative100.0%
exp-to-pow100.0%
*-commutative100.0%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 39.8%
associate-/r*39.8%
exp-to-pow39.8%
sub-neg39.8%
metadata-eval39.8%
metadata-eval39.8%
sub-neg39.8%
Simplified39.8%
Taylor expanded in t around 0 8.3%
Taylor expanded in b around 0 8.3%
distribute-lft-out8.3%
Simplified8.3%
Taylor expanded in b around inf 100.0%
*-commutative100.0%
Simplified100.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a (+ t -1.0)) y))))
(if (<= t -1.02e+118)
t_1
(if (<= t 1.7e-6)
(/ (/ (* x (pow z y)) a) y)
(if (<= t 8.5e+44) (/ x (* a (* y (exp b)))) 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 <= -1.02e+118) {
tmp = t_1;
} else if (t <= 1.7e-6) {
tmp = ((x * pow(z, y)) / a) / y;
} else if (t <= 8.5e+44) {
tmp = x / (a * (y * exp(b)));
} 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 <= (-1.02d+118)) then
tmp = t_1
else if (t <= 1.7d-6) then
tmp = ((x * (z ** y)) / a) / y
else if (t <= 8.5d+44) then
tmp = x / (a * (y * exp(b)))
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 <= -1.02e+118) {
tmp = t_1;
} else if (t <= 1.7e-6) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else if (t <= 8.5e+44) {
tmp = x / (a * (y * Math.exp(b)));
} 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 <= -1.02e+118: tmp = t_1 elif t <= 1.7e-6: tmp = ((x * math.pow(z, y)) / a) / y elif t <= 8.5e+44: tmp = x / (a * (y * math.exp(b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) tmp = 0.0 if (t <= -1.02e+118) tmp = t_1; elseif (t <= 1.7e-6) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); elseif (t <= 8.5e+44) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); 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 <= -1.02e+118) tmp = t_1; elseif (t <= 1.7e-6) tmp = ((x * (z ^ y)) / a) / y; elseif (t <= 8.5e+44) tmp = x / (a * (y * exp(b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.02e+118], t$95$1, If[LessEqual[t, 1.7e-6], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[t, 8.5e+44], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{if}\;t \leq -1.02 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-6}:\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+44}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.0199999999999999e118 or 8.5e44 < t Initial program 100.0%
associate-/l*100.0%
exp-diff76.4%
associate-/l/76.4%
exp-sum56.2%
associate-/l*56.2%
*-commutative56.2%
exp-to-pow56.2%
*-commutative56.2%
exp-to-pow56.2%
sub-neg56.2%
metadata-eval56.2%
Simplified56.2%
Taylor expanded in y around 0 70.9%
associate-/r*70.9%
exp-to-pow70.9%
sub-neg70.9%
metadata-eval70.9%
metadata-eval70.9%
sub-neg70.9%
Simplified70.9%
Taylor expanded in b around 0 88.9%
Simplified88.9%
if -1.0199999999999999e118 < t < 1.70000000000000003e-6Initial program 97.2%
Taylor expanded in b around 0 76.4%
exp-sum73.2%
*-commutative73.2%
exp-to-pow73.2%
exp-to-pow73.9%
Simplified73.9%
Taylor expanded in t around 0 75.4%
if 1.70000000000000003e-6 < t < 8.5e44Initial program 100.0%
associate-/l*100.0%
exp-diff58.3%
associate-/l/58.3%
exp-sum50.0%
associate-/l*50.0%
*-commutative50.0%
exp-to-pow50.0%
*-commutative50.0%
exp-to-pow50.0%
sub-neg50.0%
metadata-eval50.0%
Simplified50.0%
Taylor expanded in y around 0 66.7%
associate-/r*66.7%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
metadata-eval66.7%
sub-neg66.7%
Simplified66.7%
Taylor expanded in t around 0 83.7%
Final simplification80.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.2e+35) (not (<= b 2.2e-45))) (/ 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 <= -1.2e+35) || !(b <= 2.2e-45)) {
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 <= (-1.2d+35)) .or. (.not. (b <= 2.2d-45))) 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 <= -1.2e+35) || !(b <= 2.2e-45)) {
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 <= -1.2e+35) or not (b <= 2.2e-45): 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 <= -1.2e+35) || !(b <= 2.2e-45)) 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 <= -1.2e+35) || ~((b <= 2.2e-45))) 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, -1.2e+35], N[Not[LessEqual[b, 2.2e-45]], $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 -1.2 \cdot 10^{+35} \lor \neg \left(b \leq 2.2 \cdot 10^{-45}\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 < -1.20000000000000007e35 or 2.19999999999999993e-45 < b Initial program 99.9%
associate-/l*99.9%
exp-diff65.8%
associate-/l/65.8%
exp-sum61.0%
associate-/l*61.0%
*-commutative61.0%
exp-to-pow61.0%
*-commutative61.0%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
Simplified61.1%
Taylor expanded in y around 0 70.6%
associate-/r*65.9%
exp-to-pow66.0%
sub-neg66.0%
metadata-eval66.0%
metadata-eval66.0%
sub-neg66.0%
Simplified66.0%
Taylor expanded in t around 0 80.5%
if -1.20000000000000007e35 < b < 2.19999999999999993e-45Initial program 96.8%
Taylor expanded in b around 0 96.1%
exp-sum83.7%
*-commutative83.7%
exp-to-pow83.7%
exp-to-pow84.6%
Simplified84.6%
Taylor expanded in t around 0 75.3%
associate-/l/69.9%
*-commutative69.9%
times-frac71.4%
Applied egg-rr71.4%
Final simplification75.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.1e+46) (not (<= t 1.05e+44))) (* 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.1e+46) || !(t <= 1.05e+44)) {
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.1d+46)) .or. (.not. (t <= 1.05d+44))) 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.1e+46) || !(t <= 1.05e+44)) {
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.1e+46) or not (t <= 1.05e+44): 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.1e+46) || !(t <= 1.05e+44)) 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.1e+46) || ~((t <= 1.05e+44))) 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.1e+46], N[Not[LessEqual[t, 1.05e+44]], $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.1 \cdot 10^{+46} \lor \neg \left(t \leq 1.05 \cdot 10^{+44}\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.1e46 or 1.04999999999999993e44 < t Initial program 100.0%
associate-/l*100.0%
exp-diff74.0%
associate-/l/74.0%
exp-sum56.0%
associate-/l*56.0%
*-commutative56.0%
exp-to-pow56.0%
*-commutative56.0%
exp-to-pow56.0%
sub-neg56.0%
metadata-eval56.0%
Simplified56.0%
Taylor expanded in y around 0 69.1%
associate-/r*69.1%
exp-to-pow69.1%
sub-neg69.1%
metadata-eval69.1%
metadata-eval69.1%
sub-neg69.1%
Simplified69.1%
Taylor expanded in b around 0 85.2%
Simplified85.2%
if -1.1e46 < t < 1.04999999999999993e44Initial program 97.3%
associate-/l*97.9%
exp-diff85.7%
associate-/l/85.7%
exp-sum83.1%
associate-/l*79.9%
*-commutative79.9%
exp-to-pow79.9%
*-commutative79.9%
exp-to-pow80.8%
sub-neg80.8%
metadata-eval80.8%
Simplified80.8%
Taylor expanded in y around 0 63.8%
associate-/r*60.0%
exp-to-pow60.7%
sub-neg60.7%
metadata-eval60.7%
metadata-eval60.7%
sub-neg60.7%
Simplified60.7%
Taylor expanded in t around 0 67.8%
Final simplification74.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* y a))) (t_2 (* a (* y b))))
(if (<= b -1.25e+50)
(+ t_1 (* b (- (* b (- t_1 (/ (* x b) (* y a)))) t_1)))
(if (<= b -3.8e-276)
(/ x (* a (/ (- (* y y) (* (* y b) (* y b))) (- y (* y b)))))
(if (<= b 4e-173)
(/ x (* a (* b (+ y (/ y b)))))
(if (<= b 6e-166)
(/ x t_2)
(/
x
(+
(* y a)
(*
b
(+
(* y a)
(* b (+ (* 0.16666666666666666 t_2) (* (* y a) 0.5)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double t_2 = a * (y * b);
double tmp;
if (b <= -1.25e+50) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= -3.8e-276) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 4e-173) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 6e-166) {
tmp = x / t_2;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_2) + ((y * a) * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x / (y * a)
t_2 = a * (y * b)
if (b <= (-1.25d+50)) then
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1))
else if (b <= (-3.8d-276)) then
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))))
else if (b <= 4d-173) then
tmp = x / (a * (b * (y + (y / b))))
else if (b <= 6d-166) then
tmp = x / t_2
else
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666d0 * t_2) + ((y * a) * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (y * a);
double t_2 = a * (y * b);
double tmp;
if (b <= -1.25e+50) {
tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1));
} else if (b <= -3.8e-276) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 4e-173) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 6e-166) {
tmp = x / t_2;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_2) + ((y * a) * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x / (y * a) t_2 = a * (y * b) tmp = 0 if b <= -1.25e+50: tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)) elif b <= -3.8e-276: tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))) elif b <= 4e-173: tmp = x / (a * (b * (y + (y / b)))) elif b <= 6e-166: tmp = x / t_2 else: tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_2) + ((y * a) * 0.5)))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x / Float64(y * a)) t_2 = Float64(a * Float64(y * b)) tmp = 0.0 if (b <= -1.25e+50) tmp = Float64(t_1 + Float64(b * Float64(Float64(b * Float64(t_1 - Float64(Float64(x * b) / Float64(y * a)))) - t_1))); elseif (b <= -3.8e-276) tmp = Float64(x / Float64(a * Float64(Float64(Float64(y * y) - Float64(Float64(y * b) * Float64(y * b))) / Float64(y - Float64(y * b))))); elseif (b <= 4e-173) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); elseif (b <= 6e-166) tmp = Float64(x / t_2); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(b * Float64(Float64(0.16666666666666666 * t_2) + Float64(Float64(y * a) * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x / (y * a); t_2 = a * (y * b); tmp = 0.0; if (b <= -1.25e+50) tmp = t_1 + (b * ((b * (t_1 - ((x * b) / (y * a)))) - t_1)); elseif (b <= -3.8e-276) tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))); elseif (b <= 4e-173) tmp = x / (a * (b * (y + (y / b)))); elseif (b <= 6e-166) tmp = x / t_2; else tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_2) + ((y * a) * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+50], N[(t$95$1 + N[(b * N[(N[(b * N[(t$95$1 - N[(N[(x * b), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.8e-276], N[(x / N[(a * N[(N[(N[(y * y), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e-173], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6e-166], N[(x / t$95$2), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(0.16666666666666666 * t$95$2), $MachinePrecision] + N[(N[(y * a), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{y \cdot a}\\
t_2 := a \cdot \left(y \cdot b\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+50}:\\
\;\;\;\;t\_1 + b \cdot \left(b \cdot \left(t\_1 - \frac{x \cdot b}{y \cdot a}\right) - t\_1\right)\\
\mathbf{elif}\;b \leq -3.8 \cdot 10^{-276}:\\
\;\;\;\;\frac{x}{a \cdot \frac{y \cdot y - \left(y \cdot b\right) \cdot \left(y \cdot b\right)}{y - y \cdot b}}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{-173}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 6 \cdot 10^{-166}:\\
\;\;\;\;\frac{x}{t\_2}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + b \cdot \left(0.16666666666666666 \cdot t\_2 + \left(y \cdot a\right) \cdot 0.5\right)\right)}\\
\end{array}
\end{array}
if b < -1.25e50Initial program 100.0%
associate-/l*100.0%
exp-diff64.0%
associate-/l/64.0%
exp-sum64.0%
associate-/l*64.0%
*-commutative64.0%
exp-to-pow64.0%
*-commutative64.0%
exp-to-pow64.0%
sub-neg64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in y around 0 72.1%
associate-/r*68.1%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
metadata-eval68.1%
sub-neg68.1%
Simplified68.1%
Taylor expanded in t around 0 86.2%
Taylor expanded in b around 0 8.9%
distribute-lft-out9.1%
Simplified9.1%
Taylor expanded in b around 0 59.3%
if -1.25e50 < b < -3.8e-276Initial program 95.5%
associate-/l*97.2%
exp-diff93.8%
associate-/l/93.8%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
*-commutative82.0%
exp-to-pow83.0%
sub-neg83.0%
metadata-eval83.0%
Simplified83.0%
Taylor expanded in y around 0 70.9%
associate-/r*70.9%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
metadata-eval71.9%
sub-neg71.9%
Simplified71.9%
Taylor expanded in t around 0 40.9%
Taylor expanded in b around 0 30.9%
distribute-lft-out32.6%
Simplified32.6%
flip-+50.3%
*-commutative50.3%
*-commutative50.3%
*-commutative50.3%
Applied egg-rr50.3%
if -3.8e-276 < b < 4.0000000000000002e-173Initial program 97.0%
associate-/l*99.1%
exp-diff99.1%
associate-/l/99.1%
exp-sum91.2%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
*-commutative86.0%
exp-to-pow86.8%
sub-neg86.8%
metadata-eval86.8%
Simplified86.8%
Taylor expanded in y around 0 63.3%
associate-/r*63.3%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
metadata-eval64.1%
sub-neg64.1%
Simplified64.1%
Taylor expanded in t around 0 38.5%
Taylor expanded in b around 0 38.5%
distribute-lft-out38.5%
Simplified38.5%
Taylor expanded in b around inf 53.5%
if 4.0000000000000002e-173 < b < 6.0000000000000005e-166Initial program 100.0%
associate-/l*100.0%
exp-diff100.0%
associate-/l/100.0%
exp-sum100.0%
associate-/l*100.0%
*-commutative100.0%
exp-to-pow100.0%
*-commutative100.0%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 39.8%
associate-/r*39.8%
exp-to-pow39.8%
sub-neg39.8%
metadata-eval39.8%
metadata-eval39.8%
sub-neg39.8%
Simplified39.8%
Taylor expanded in t around 0 8.3%
Taylor expanded in b around 0 8.3%
distribute-lft-out8.3%
Simplified8.3%
Taylor expanded in b around inf 100.0%
*-commutative100.0%
Simplified100.0%
if 6.0000000000000005e-166 < b Initial program 99.6%
associate-/l*98.8%
exp-diff75.2%
associate-/l/75.2%
exp-sum63.8%
associate-/l*60.9%
*-commutative60.9%
exp-to-pow60.9%
*-commutative60.9%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 61.8%
associate-/r*58.0%
exp-to-pow58.3%
sub-neg58.3%
metadata-eval58.3%
metadata-eval58.3%
sub-neg58.3%
Simplified58.3%
Taylor expanded in t around 0 62.5%
associate-*r*54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in b around 0 46.2%
Final simplification51.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (* y b))))
(if (<= b -1.42e+48)
(* x (- (/ 1.0 (* y a)) (/ b (* y a))))
(if (<= b -2.4e-275)
(/ x (* a (/ (- (* y y) (* (* y b) (* y b))) (- y (* y b)))))
(if (<= b 2.8e-174)
(/ x (* a (* b (+ y (/ y b)))))
(if (<= b 6.5e-166)
(/ x t_1)
(/
x
(+
(* y a)
(*
b
(+
(* y a)
(* b (+ (* 0.16666666666666666 t_1) (* (* y a) 0.5)))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (y * b);
double tmp;
if (b <= -1.42e+48) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else if (b <= -2.4e-275) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 2.8e-174) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 6.5e-166) {
tmp = x / t_1;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_1) + ((y * a) * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y * b)
if (b <= (-1.42d+48)) then
tmp = x * ((1.0d0 / (y * a)) - (b / (y * a)))
else if (b <= (-2.4d-275)) then
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))))
else if (b <= 2.8d-174) then
tmp = x / (a * (b * (y + (y / b))))
else if (b <= 6.5d-166) then
tmp = x / t_1
else
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666d0 * t_1) + ((y * a) * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (y * b);
double tmp;
if (b <= -1.42e+48) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else if (b <= -2.4e-275) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 2.8e-174) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 6.5e-166) {
tmp = x / t_1;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_1) + ((y * a) * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (y * b) tmp = 0 if b <= -1.42e+48: tmp = x * ((1.0 / (y * a)) - (b / (y * a))) elif b <= -2.4e-275: tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))) elif b <= 2.8e-174: tmp = x / (a * (b * (y + (y / b)))) elif b <= 6.5e-166: tmp = x / t_1 else: tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_1) + ((y * a) * 0.5)))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(y * b)) tmp = 0.0 if (b <= -1.42e+48) tmp = Float64(x * Float64(Float64(1.0 / Float64(y * a)) - Float64(b / Float64(y * a)))); elseif (b <= -2.4e-275) tmp = Float64(x / Float64(a * Float64(Float64(Float64(y * y) - Float64(Float64(y * b) * Float64(y * b))) / Float64(y - Float64(y * b))))); elseif (b <= 2.8e-174) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); elseif (b <= 6.5e-166) tmp = Float64(x / t_1); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(b * Float64(Float64(0.16666666666666666 * t_1) + Float64(Float64(y * a) * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (y * b); tmp = 0.0; if (b <= -1.42e+48) tmp = x * ((1.0 / (y * a)) - (b / (y * a))); elseif (b <= -2.4e-275) tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))); elseif (b <= 2.8e-174) tmp = x / (a * (b * (y + (y / b)))); elseif (b <= 6.5e-166) tmp = x / t_1; else tmp = x / ((y * a) + (b * ((y * a) + (b * ((0.16666666666666666 * t_1) + ((y * a) * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.42e+48], N[(x * N[(N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(b / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.4e-275], N[(x / N[(a * N[(N[(N[(y * y), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.8e-174], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-166], N[(x / t$95$1), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(0.16666666666666666 * t$95$1), $MachinePrecision] + N[(N[(y * a), $MachinePrecision] * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot b\right)\\
\mathbf{if}\;b \leq -1.42 \cdot 10^{+48}:\\
\;\;\;\;x \cdot \left(\frac{1}{y \cdot a} - \frac{b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-275}:\\
\;\;\;\;\frac{x}{a \cdot \frac{y \cdot y - \left(y \cdot b\right) \cdot \left(y \cdot b\right)}{y - y \cdot b}}\\
\mathbf{elif}\;b \leq 2.8 \cdot 10^{-174}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-166}:\\
\;\;\;\;\frac{x}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + b \cdot \left(0.16666666666666666 \cdot t\_1 + \left(y \cdot a\right) \cdot 0.5\right)\right)}\\
\end{array}
\end{array}
if b < -1.42e48Initial program 100.0%
associate-/l*100.0%
exp-diff64.0%
associate-/l/64.0%
exp-sum64.0%
associate-/l*64.0%
*-commutative64.0%
exp-to-pow64.0%
*-commutative64.0%
exp-to-pow64.0%
sub-neg64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in y around 0 72.1%
associate-/r*68.1%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
metadata-eval68.1%
sub-neg68.1%
Simplified68.1%
Taylor expanded in t around 0 86.2%
Taylor expanded in b around 0 38.0%
Taylor expanded in x around 0 51.3%
if -1.42e48 < b < -2.39999999999999991e-275Initial program 95.5%
associate-/l*97.2%
exp-diff93.8%
associate-/l/93.8%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
*-commutative82.0%
exp-to-pow83.0%
sub-neg83.0%
metadata-eval83.0%
Simplified83.0%
Taylor expanded in y around 0 70.9%
associate-/r*70.9%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
metadata-eval71.9%
sub-neg71.9%
Simplified71.9%
Taylor expanded in t around 0 40.9%
Taylor expanded in b around 0 30.9%
distribute-lft-out32.6%
Simplified32.6%
flip-+50.3%
*-commutative50.3%
*-commutative50.3%
*-commutative50.3%
Applied egg-rr50.3%
if -2.39999999999999991e-275 < b < 2.79999999999999999e-174Initial program 97.0%
associate-/l*99.1%
exp-diff99.1%
associate-/l/99.1%
exp-sum91.2%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
*-commutative86.0%
exp-to-pow86.8%
sub-neg86.8%
metadata-eval86.8%
Simplified86.8%
Taylor expanded in y around 0 63.3%
associate-/r*63.3%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
metadata-eval64.1%
sub-neg64.1%
Simplified64.1%
Taylor expanded in t around 0 38.5%
Taylor expanded in b around 0 38.5%
distribute-lft-out38.5%
Simplified38.5%
Taylor expanded in b around inf 53.5%
if 2.79999999999999999e-174 < b < 6.50000000000000019e-166Initial program 100.0%
associate-/l*100.0%
exp-diff100.0%
associate-/l/100.0%
exp-sum100.0%
associate-/l*100.0%
*-commutative100.0%
exp-to-pow100.0%
*-commutative100.0%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 39.8%
associate-/r*39.8%
exp-to-pow39.8%
sub-neg39.8%
metadata-eval39.8%
metadata-eval39.8%
sub-neg39.8%
Simplified39.8%
Taylor expanded in t around 0 8.3%
Taylor expanded in b around 0 8.3%
distribute-lft-out8.3%
Simplified8.3%
Taylor expanded in b around inf 100.0%
*-commutative100.0%
Simplified100.0%
if 6.50000000000000019e-166 < b Initial program 99.6%
associate-/l*98.8%
exp-diff75.2%
associate-/l/75.2%
exp-sum63.8%
associate-/l*60.9%
*-commutative60.9%
exp-to-pow60.9%
*-commutative60.9%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 61.8%
associate-/r*58.0%
exp-to-pow58.3%
sub-neg58.3%
metadata-eval58.3%
metadata-eval58.3%
sub-neg58.3%
Simplified58.3%
Taylor expanded in t around 0 62.5%
associate-*r*54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in b around 0 46.2%
Final simplification49.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* a (* y b))))
(if (<= b -1.35e+48)
(* x (- (/ 1.0 (* y a)) (/ b (* y a))))
(if (<= b -1.05e-274)
(/ x (* a (/ (- (* y y) (* (* y b) (* y b))) (- y (* y b)))))
(if (<= b 4.5e-173)
(/ x (* a (* b (+ y (/ y b)))))
(if (<= b 5.4e-166)
(/ x t_1)
(/ x (+ (* y a) (* b (+ (* y a) (* t_1 0.5)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (y * b);
double tmp;
if (b <= -1.35e+48) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else if (b <= -1.05e-274) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 4.5e-173) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 5.4e-166) {
tmp = x / t_1;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (t_1 * 0.5))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y * b)
if (b <= (-1.35d+48)) then
tmp = x * ((1.0d0 / (y * a)) - (b / (y * a)))
else if (b <= (-1.05d-274)) then
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))))
else if (b <= 4.5d-173) then
tmp = x / (a * (b * (y + (y / b))))
else if (b <= 5.4d-166) then
tmp = x / t_1
else
tmp = x / ((y * a) + (b * ((y * a) + (t_1 * 0.5d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = a * (y * b);
double tmp;
if (b <= -1.35e+48) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else if (b <= -1.05e-274) {
tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b))));
} else if (b <= 4.5e-173) {
tmp = x / (a * (b * (y + (y / b))));
} else if (b <= 5.4e-166) {
tmp = x / t_1;
} else {
tmp = x / ((y * a) + (b * ((y * a) + (t_1 * 0.5))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = a * (y * b) tmp = 0 if b <= -1.35e+48: tmp = x * ((1.0 / (y * a)) - (b / (y * a))) elif b <= -1.05e-274: tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))) elif b <= 4.5e-173: tmp = x / (a * (b * (y + (y / b)))) elif b <= 5.4e-166: tmp = x / t_1 else: tmp = x / ((y * a) + (b * ((y * a) + (t_1 * 0.5)))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(a * Float64(y * b)) tmp = 0.0 if (b <= -1.35e+48) tmp = Float64(x * Float64(Float64(1.0 / Float64(y * a)) - Float64(b / Float64(y * a)))); elseif (b <= -1.05e-274) tmp = Float64(x / Float64(a * Float64(Float64(Float64(y * y) - Float64(Float64(y * b) * Float64(y * b))) / Float64(y - Float64(y * b))))); elseif (b <= 4.5e-173) tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); elseif (b <= 5.4e-166) tmp = Float64(x / t_1); else tmp = Float64(x / Float64(Float64(y * a) + Float64(b * Float64(Float64(y * a) + Float64(t_1 * 0.5))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = a * (y * b); tmp = 0.0; if (b <= -1.35e+48) tmp = x * ((1.0 / (y * a)) - (b / (y * a))); elseif (b <= -1.05e-274) tmp = x / (a * (((y * y) - ((y * b) * (y * b))) / (y - (y * b)))); elseif (b <= 4.5e-173) tmp = x / (a * (b * (y + (y / b)))); elseif (b <= 5.4e-166) tmp = x / t_1; else tmp = x / ((y * a) + (b * ((y * a) + (t_1 * 0.5)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.35e+48], N[(x * N[(N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(b / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.05e-274], N[(x / N[(a * N[(N[(N[(y * y), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y - N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.5e-173], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.4e-166], N[(x / t$95$1), $MachinePrecision], N[(x / N[(N[(y * a), $MachinePrecision] + N[(b * N[(N[(y * a), $MachinePrecision] + N[(t$95$1 * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y \cdot b\right)\\
\mathbf{if}\;b \leq -1.35 \cdot 10^{+48}:\\
\;\;\;\;x \cdot \left(\frac{1}{y \cdot a} - \frac{b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq -1.05 \cdot 10^{-274}:\\
\;\;\;\;\frac{x}{a \cdot \frac{y \cdot y - \left(y \cdot b\right) \cdot \left(y \cdot b\right)}{y - y \cdot b}}\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-173}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{-166}:\\
\;\;\;\;\frac{x}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a + b \cdot \left(y \cdot a + t\_1 \cdot 0.5\right)}\\
\end{array}
\end{array}
if b < -1.35000000000000002e48Initial program 100.0%
associate-/l*100.0%
exp-diff64.0%
associate-/l/64.0%
exp-sum64.0%
associate-/l*64.0%
*-commutative64.0%
exp-to-pow64.0%
*-commutative64.0%
exp-to-pow64.0%
sub-neg64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in y around 0 72.1%
associate-/r*68.1%
exp-to-pow68.1%
sub-neg68.1%
metadata-eval68.1%
metadata-eval68.1%
sub-neg68.1%
Simplified68.1%
Taylor expanded in t around 0 86.2%
Taylor expanded in b around 0 38.0%
Taylor expanded in x around 0 51.3%
if -1.35000000000000002e48 < b < -1.04999999999999997e-274Initial program 95.5%
associate-/l*97.2%
exp-diff93.8%
associate-/l/93.8%
exp-sum82.0%
associate-/l*82.0%
*-commutative82.0%
exp-to-pow82.0%
*-commutative82.0%
exp-to-pow83.0%
sub-neg83.0%
metadata-eval83.0%
Simplified83.0%
Taylor expanded in y around 0 70.9%
associate-/r*70.9%
exp-to-pow71.9%
sub-neg71.9%
metadata-eval71.9%
metadata-eval71.9%
sub-neg71.9%
Simplified71.9%
Taylor expanded in t around 0 40.9%
Taylor expanded in b around 0 30.9%
distribute-lft-out32.6%
Simplified32.6%
flip-+50.3%
*-commutative50.3%
*-commutative50.3%
*-commutative50.3%
Applied egg-rr50.3%
if -1.04999999999999997e-274 < b < 4.50000000000000018e-173Initial program 97.0%
associate-/l*99.1%
exp-diff99.1%
associate-/l/99.1%
exp-sum91.2%
associate-/l*86.0%
*-commutative86.0%
exp-to-pow86.0%
*-commutative86.0%
exp-to-pow86.8%
sub-neg86.8%
metadata-eval86.8%
Simplified86.8%
Taylor expanded in y around 0 63.3%
associate-/r*63.3%
exp-to-pow64.1%
sub-neg64.1%
metadata-eval64.1%
metadata-eval64.1%
sub-neg64.1%
Simplified64.1%
Taylor expanded in t around 0 38.5%
Taylor expanded in b around 0 38.5%
distribute-lft-out38.5%
Simplified38.5%
Taylor expanded in b around inf 53.5%
if 4.50000000000000018e-173 < b < 5.40000000000000013e-166Initial program 100.0%
associate-/l*100.0%
exp-diff100.0%
associate-/l/100.0%
exp-sum100.0%
associate-/l*100.0%
*-commutative100.0%
exp-to-pow100.0%
*-commutative100.0%
exp-to-pow100.0%
sub-neg100.0%
metadata-eval100.0%
Simplified100.0%
Taylor expanded in y around 0 39.8%
associate-/r*39.8%
exp-to-pow39.8%
sub-neg39.8%
metadata-eval39.8%
metadata-eval39.8%
sub-neg39.8%
Simplified39.8%
Taylor expanded in t around 0 8.3%
Taylor expanded in b around 0 8.3%
distribute-lft-out8.3%
Simplified8.3%
Taylor expanded in b around inf 100.0%
*-commutative100.0%
Simplified100.0%
if 5.40000000000000013e-166 < b Initial program 99.6%
associate-/l*98.8%
exp-diff75.2%
associate-/l/75.2%
exp-sum63.8%
associate-/l*60.9%
*-commutative60.9%
exp-to-pow60.9%
*-commutative60.9%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 61.8%
associate-/r*58.0%
exp-to-pow58.3%
sub-neg58.3%
metadata-eval58.3%
metadata-eval58.3%
sub-neg58.3%
Simplified58.3%
Taylor expanded in t around 0 62.5%
associate-*r*54.9%
*-commutative54.9%
Simplified54.9%
Taylor expanded in b around 0 42.4%
Final simplification48.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.2e+104)
(* x (- (/ 1.0 (* y a)) (/ b (* y a))))
(if (<= b -2.9)
(/ (+ (* a (* y (/ x a))) (* y (* x b))) (* a (* y (- y))))
(/ x (* a (* b (+ y (/ y b))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.2e+104) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else if (b <= -2.9) {
tmp = ((a * (y * (x / a))) + (y * (x * b))) / (a * (y * -y));
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-1.2d+104)) then
tmp = x * ((1.0d0 / (y * a)) - (b / (y * a)))
else if (b <= (-2.9d0)) then
tmp = ((a * (y * (x / a))) + (y * (x * b))) / (a * (y * -y))
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.2e+104) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else if (b <= -2.9) {
tmp = ((a * (y * (x / a))) + (y * (x * b))) / (a * (y * -y));
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.2e+104: tmp = x * ((1.0 / (y * a)) - (b / (y * a))) elif b <= -2.9: tmp = ((a * (y * (x / a))) + (y * (x * b))) / (a * (y * -y)) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.2e+104) tmp = Float64(x * Float64(Float64(1.0 / Float64(y * a)) - Float64(b / Float64(y * a)))); elseif (b <= -2.9) tmp = Float64(Float64(Float64(a * Float64(y * Float64(x / a))) + Float64(y * Float64(x * b))) / Float64(a * Float64(y * Float64(-y)))); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.2e+104) tmp = x * ((1.0 / (y * a)) - (b / (y * a))); elseif (b <= -2.9) tmp = ((a * (y * (x / a))) + (y * (x * b))) / (a * (y * -y)); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.2e+104], N[(x * N[(N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(b / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.9], N[(N[(N[(a * N[(y * N[(x / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(a * N[(y * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.2 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \left(\frac{1}{y \cdot a} - \frac{b}{y \cdot a}\right)\\
\mathbf{elif}\;b \leq -2.9:\\
\;\;\;\;\frac{a \cdot \left(y \cdot \frac{x}{a}\right) + y \cdot \left(x \cdot b\right)}{a \cdot \left(y \cdot \left(-y\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -1.2e104Initial program 100.0%
associate-/l*100.0%
exp-diff66.7%
associate-/l/66.7%
exp-sum66.7%
associate-/l*66.7%
*-commutative66.7%
exp-to-pow66.7%
*-commutative66.7%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
Simplified66.7%
Taylor expanded in y around 0 71.9%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
metadata-eval69.4%
sub-neg69.4%
Simplified69.4%
Taylor expanded in t around 0 89.9%
Taylor expanded in b around 0 40.5%
Taylor expanded in x around 0 57.4%
if -1.2e104 < b < -2.89999999999999991Initial program 100.0%
associate-/l*100.0%
exp-diff63.2%
associate-/l/63.2%
exp-sum63.2%
associate-/l*63.2%
*-commutative63.2%
exp-to-pow63.2%
*-commutative63.2%
exp-to-pow63.2%
sub-neg63.2%
metadata-eval63.2%
Simplified63.2%
Taylor expanded in y around 0 68.7%
associate-/r*63.4%
exp-to-pow63.4%
sub-neg63.4%
metadata-eval63.4%
metadata-eval63.4%
sub-neg63.4%
Simplified63.4%
Taylor expanded in t around 0 68.9%
Taylor expanded in b around 0 18.5%
fma-define18.5%
add-sqr-sqrt17.7%
sqrt-unprod23.5%
sqr-neg23.5%
mul-1-neg23.5%
mul-1-neg23.5%
sqrt-unprod0.9%
add-sqr-sqrt7.8%
mul-1-neg7.8%
fma-neg7.8%
associate-*r/7.8%
associate-/r*7.8%
frac-sub32.9%
*-commutative32.9%
*-commutative32.9%
*-commutative32.9%
Applied egg-rr32.9%
*-commutative32.9%
neg-mul-132.9%
distribute-rgt-neg-in32.9%
*-commutative32.9%
associate-*r*33.0%
*-commutative33.0%
associate-*r*43.1%
Simplified43.1%
if -2.89999999999999991 < b Initial program 97.8%
associate-/l*98.3%
exp-diff85.7%
associate-/l/85.7%
exp-sum74.6%
associate-/l*72.0%
*-commutative72.0%
exp-to-pow72.0%
*-commutative72.0%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in y around 0 64.4%
associate-/r*62.4%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
metadata-eval63.0%
sub-neg63.0%
Simplified63.0%
Taylor expanded in t around 0 50.6%
Taylor expanded in b around 0 37.5%
distribute-lft-out38.0%
Simplified38.0%
Taylor expanded in b around inf 43.2%
Final simplification45.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.65e+43)
(/ (* b (/ x (- a))) y)
(if (<= b 2.5e-83)
(/ x (* y a))
(if (<= b 5.2e+17) (* (/ 1.0 a) (/ x y)) (/ x (* a (* y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.65e+43) {
tmp = (b * (x / -a)) / y;
} else if (b <= 2.5e-83) {
tmp = x / (y * a);
} else if (b <= 5.2e+17) {
tmp = (1.0 / a) * (x / y);
} 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 <= (-1.65d+43)) then
tmp = (b * (x / -a)) / y
else if (b <= 2.5d-83) then
tmp = x / (y * a)
else if (b <= 5.2d+17) then
tmp = (1.0d0 / a) * (x / y)
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 <= -1.65e+43) {
tmp = (b * (x / -a)) / y;
} else if (b <= 2.5e-83) {
tmp = x / (y * a);
} else if (b <= 5.2e+17) {
tmp = (1.0 / a) * (x / y);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.65e+43: tmp = (b * (x / -a)) / y elif b <= 2.5e-83: tmp = x / (y * a) elif b <= 5.2e+17: tmp = (1.0 / a) * (x / y) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.65e+43) tmp = Float64(Float64(b * Float64(x / Float64(-a))) / y); elseif (b <= 2.5e-83) tmp = Float64(x / Float64(y * a)); elseif (b <= 5.2e+17) tmp = Float64(Float64(1.0 / a) * Float64(x / y)); 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 <= -1.65e+43) tmp = (b * (x / -a)) / y; elseif (b <= 2.5e-83) tmp = x / (y * a); elseif (b <= 5.2e+17) tmp = (1.0 / a) * (x / y); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.65e+43], N[(N[(b * N[(x / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.5e-83], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.2e+17], N[(N[(1.0 / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.65 \cdot 10^{+43}:\\
\;\;\;\;\frac{b \cdot \frac{x}{-a}}{y}\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-83}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+17}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -1.6500000000000001e43Initial program 100.0%
associate-/l*100.0%
exp-diff65.4%
associate-/l/65.4%
exp-sum65.4%
associate-/l*65.4%
*-commutative65.4%
exp-to-pow65.4%
*-commutative65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in y around 0 73.2%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
metadata-eval69.4%
sub-neg69.4%
Simplified69.4%
Taylor expanded in t around 0 86.7%
Taylor expanded in b around 0 36.7%
Taylor expanded in b around inf 36.7%
associate-*r/36.7%
*-commutative36.7%
*-commutative36.7%
times-frac38.7%
associate-*l/38.7%
neg-mul-138.7%
*-commutative38.7%
associate-/l*38.6%
distribute-rgt-neg-in38.6%
distribute-neg-frac38.6%
Simplified38.6%
if -1.6500000000000001e43 < b < 2.5e-83Initial program 96.8%
associate-/l*98.3%
exp-diff96.6%
associate-/l/96.6%
exp-sum85.1%
associate-/l*81.8%
*-commutative81.8%
exp-to-pow81.8%
*-commutative81.8%
exp-to-pow82.8%
sub-neg82.8%
metadata-eval82.8%
Simplified82.8%
Taylor expanded in y around 0 62.8%
associate-/r*62.8%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
metadata-eval63.6%
sub-neg63.6%
Simplified63.6%
Taylor expanded in t around 0 35.9%
Taylor expanded in b around 0 33.6%
if 2.5e-83 < b < 5.2e17Initial program 98.3%
associate-/l*94.0%
exp-diff83.9%
associate-/l/83.9%
exp-sum73.9%
associate-/l*68.9%
*-commutative68.9%
exp-to-pow68.9%
*-commutative68.9%
exp-to-pow70.1%
sub-neg70.1%
metadata-eval70.1%
Simplified70.1%
Taylor expanded in y around 0 64.3%
associate-/r*64.3%
exp-to-pow65.5%
sub-neg65.5%
metadata-eval65.5%
metadata-eval65.5%
sub-neg65.5%
Simplified65.5%
Taylor expanded in t around 0 55.8%
Taylor expanded in b around 0 35.6%
*-un-lft-identity35.6%
times-frac40.6%
Applied egg-rr40.6%
if 5.2e17 < b Initial program 100.0%
associate-/l*100.0%
exp-diff62.9%
associate-/l/62.9%
exp-sum53.2%
associate-/l*53.2%
*-commutative53.2%
exp-to-pow53.2%
*-commutative53.2%
exp-to-pow53.2%
sub-neg53.2%
metadata-eval53.2%
Simplified53.2%
Taylor expanded in y around 0 66.2%
associate-/r*59.8%
exp-to-pow59.8%
sub-neg59.8%
metadata-eval59.8%
metadata-eval59.8%
sub-neg59.8%
Simplified59.8%
Taylor expanded in t around 0 77.8%
Taylor expanded in b around 0 43.6%
distribute-lft-out43.6%
Simplified43.6%
Taylor expanded in b around inf 43.6%
*-commutative43.6%
Simplified43.6%
Final simplification37.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.7) (* x (- (/ 1.0 (* y a)) (/ b (* y a)))) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.7) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.7d0)) then
tmp = x * ((1.0d0 / (y * a)) - (b / (y * a)))
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.7) {
tmp = x * ((1.0 / (y * a)) - (b / (y * a)));
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.7: tmp = x * ((1.0 / (y * a)) - (b / (y * a))) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.7) tmp = Float64(x * Float64(Float64(1.0 / Float64(y * a)) - Float64(b / Float64(y * a)))); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.7) tmp = x * ((1.0 / (y * a)) - (b / (y * a))); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.7], N[(x * N[(N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(b / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.7:\\
\;\;\;\;x \cdot \left(\frac{1}{y \cdot a} - \frac{b}{y \cdot a}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -2.7000000000000002Initial program 100.0%
associate-/l*100.0%
exp-diff65.5%
associate-/l/65.5%
exp-sum65.5%
associate-/l*65.5%
*-commutative65.5%
exp-to-pow65.5%
*-commutative65.5%
exp-to-pow65.5%
sub-neg65.5%
metadata-eval65.5%
Simplified65.5%
Taylor expanded in y around 0 70.9%
associate-/r*67.4%
exp-to-pow67.4%
sub-neg67.4%
metadata-eval67.4%
metadata-eval67.4%
sub-neg67.4%
Simplified67.4%
Taylor expanded in t around 0 83.0%
Taylor expanded in b around 0 33.3%
Taylor expanded in x around 0 44.7%
if -2.7000000000000002 < b Initial program 97.8%
associate-/l*98.3%
exp-diff85.7%
associate-/l/85.7%
exp-sum74.6%
associate-/l*72.0%
*-commutative72.0%
exp-to-pow72.0%
*-commutative72.0%
exp-to-pow72.7%
sub-neg72.7%
metadata-eval72.7%
Simplified72.7%
Taylor expanded in y around 0 64.4%
associate-/r*62.4%
exp-to-pow63.0%
sub-neg63.0%
metadata-eval63.0%
metadata-eval63.0%
sub-neg63.0%
Simplified63.0%
Taylor expanded in t around 0 50.6%
Taylor expanded in b around 0 37.5%
distribute-lft-out38.0%
Simplified38.0%
Taylor expanded in b around inf 43.2%
Final simplification43.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -9e-63) (/ (- (/ x y) (/ (* x b) y)) a) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9e-63) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-9d-63)) then
tmp = ((x / y) - ((x * b) / y)) / a
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9e-63) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9e-63: tmp = ((x / y) - ((x * b) / y)) / a else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9e-63) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9e-63) tmp = ((x / y) - ((x * b) / y)) / a; else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9e-63], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{-63}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -8.9999999999999999e-63Initial program 98.4%
associate-/l*99.6%
exp-diff71.5%
associate-/l/71.5%
exp-sum67.3%
associate-/l*67.3%
*-commutative67.3%
exp-to-pow67.3%
*-commutative67.3%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
Simplified67.5%
Taylor expanded in y around 0 70.4%
associate-/r*67.6%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
metadata-eval67.9%
sub-neg67.9%
Simplified67.9%
Taylor expanded in t around 0 75.2%
Taylor expanded in b around 0 34.6%
Taylor expanded in a around 0 40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
*-commutative40.0%
Simplified40.0%
if -8.9999999999999999e-63 < b Initial program 98.3%
associate-/l*98.4%
exp-diff84.8%
associate-/l/84.8%
exp-sum74.5%
associate-/l*71.8%
*-commutative71.8%
exp-to-pow71.8%
*-commutative71.8%
exp-to-pow72.5%
sub-neg72.5%
metadata-eval72.5%
Simplified72.5%
Taylor expanded in y around 0 64.1%
associate-/r*62.0%
exp-to-pow62.5%
sub-neg62.5%
metadata-eval62.5%
metadata-eval62.5%
sub-neg62.5%
Simplified62.5%
Taylor expanded in t around 0 51.3%
Taylor expanded in b around 0 37.3%
distribute-lft-out37.8%
Simplified37.8%
Taylor expanded in b around inf 43.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3e-19) (/ (- (/ x a) (* x (/ b a))) y) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3e-19) {
tmp = ((x / a) - (x * (b / a))) / y;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3d-19)) then
tmp = ((x / a) - (x * (b / a))) / y
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3e-19) {
tmp = ((x / a) - (x * (b / a))) / y;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3e-19: tmp = ((x / a) - (x * (b / a))) / y else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3e-19) tmp = Float64(Float64(Float64(x / a) - Float64(x * Float64(b / a))) / y); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3e-19) tmp = ((x / a) - (x * (b / a))) / y; else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3e-19], N[(N[(N[(x / a), $MachinePrecision] - N[(x * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{-19}:\\
\;\;\;\;\frac{\frac{x}{a} - x \cdot \frac{b}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -2.99999999999999993e-19Initial program 99.9%
associate-/l*99.9%
exp-diff67.7%
associate-/l/67.7%
exp-sum67.7%
associate-/l*67.7%
*-commutative67.7%
exp-to-pow67.7%
*-commutative67.7%
exp-to-pow67.7%
sub-neg67.7%
metadata-eval67.7%
Simplified67.7%
Taylor expanded in y around 0 71.1%
associate-/r*67.9%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
metadata-eval68.0%
sub-neg68.0%
Simplified68.0%
Taylor expanded in t around 0 81.0%
Taylor expanded in b around 0 34.4%
Taylor expanded in y around 0 36.1%
+-commutative36.1%
*-commutative36.1%
neg-mul-136.1%
unsub-neg36.1%
associate-/l*39.1%
Simplified39.1%
if -2.99999999999999993e-19 < b Initial program 97.8%
associate-/l*98.3%
exp-diff85.4%
associate-/l/85.4%
exp-sum74.1%
associate-/l*71.5%
*-commutative71.5%
exp-to-pow71.5%
*-commutative71.5%
exp-to-pow72.2%
sub-neg72.2%
metadata-eval72.2%
Simplified72.2%
Taylor expanded in y around 0 64.2%
associate-/r*62.1%
exp-to-pow62.7%
sub-neg62.7%
metadata-eval62.7%
metadata-eval62.7%
sub-neg62.7%
Simplified62.7%
Taylor expanded in t around 0 50.6%
Taylor expanded in b around 0 37.2%
distribute-lft-out37.7%
Simplified37.7%
Taylor expanded in b around inf 43.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -8.8e-10) (/ (* b (/ x (- a))) y) (/ x (* a (* b (+ y (/ y b)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.8e-10) {
tmp = (b * (x / -a)) / y;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-8.8d-10)) then
tmp = (b * (x / -a)) / y
else
tmp = x / (a * (b * (y + (y / b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -8.8e-10) {
tmp = (b * (x / -a)) / y;
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -8.8e-10: tmp = (b * (x / -a)) / y else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -8.8e-10) tmp = Float64(Float64(b * Float64(x / Float64(-a))) / y); else tmp = Float64(x / Float64(a * Float64(b * Float64(y + Float64(y / b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -8.8e-10) tmp = (b * (x / -a)) / y; else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -8.8e-10], N[(N[(b * N[(x / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(b * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.8 \cdot 10^{-10}:\\
\;\;\;\;\frac{b \cdot \frac{x}{-a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -8.7999999999999996e-10Initial program 100.0%
associate-/l*100.0%
exp-diff67.2%
associate-/l/67.2%
exp-sum67.2%
associate-/l*67.2%
*-commutative67.2%
exp-to-pow67.2%
*-commutative67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in y around 0 70.7%
associate-/r*67.5%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
metadata-eval67.5%
sub-neg67.5%
Simplified67.5%
Taylor expanded in t around 0 80.7%
Taylor expanded in b around 0 33.4%
Taylor expanded in b around inf 33.4%
associate-*r/33.4%
*-commutative33.4%
*-commutative33.4%
times-frac35.1%
associate-*l/35.1%
neg-mul-135.1%
*-commutative35.1%
associate-/l*35.0%
distribute-rgt-neg-in35.0%
distribute-neg-frac35.0%
Simplified35.0%
if -8.7999999999999996e-10 < b Initial program 97.8%
associate-/l*98.3%
exp-diff85.5%
associate-/l/85.5%
exp-sum74.2%
associate-/l*71.6%
*-commutative71.6%
exp-to-pow71.6%
*-commutative71.6%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in y around 0 64.4%
associate-/r*62.3%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
metadata-eval62.9%
sub-neg62.9%
Simplified62.9%
Taylor expanded in t around 0 50.8%
Taylor expanded in b around 0 37.5%
distribute-lft-out38.0%
Simplified38.0%
Taylor expanded in b around inf 43.3%
Final simplification41.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -1.2e+40) (/ (* b (/ x (- a))) y) (* (/ 1.0 a) (/ x (* y (+ 1.0 b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.2e+40) {
tmp = (b * (x / -a)) / y;
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + 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.2d+40)) then
tmp = (b * (x / -a)) / y
else
tmp = (1.0d0 / a) * (x / (y * (1.0d0 + 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.2e+40) {
tmp = (b * (x / -a)) / y;
} else {
tmp = (1.0 / a) * (x / (y * (1.0 + b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1.2e+40: tmp = (b * (x / -a)) / y else: tmp = (1.0 / a) * (x / (y * (1.0 + b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.2e+40) tmp = Float64(Float64(b * Float64(x / Float64(-a))) / y); else tmp = Float64(Float64(1.0 / a) * Float64(x / Float64(y * Float64(1.0 + b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1.2e+40) tmp = (b * (x / -a)) / y; else tmp = (1.0 / a) * (x / (y * (1.0 + b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.2e+40], N[(N[(b * N[(x / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / N[(y * N[(1.0 + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.2 \cdot 10^{+40}:\\
\;\;\;\;\frac{b \cdot \frac{x}{-a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y \cdot \left(1 + b\right)}\\
\end{array}
\end{array}
if b < -1.2e40Initial program 100.0%
associate-/l*100.0%
exp-diff65.4%
associate-/l/65.4%
exp-sum65.4%
associate-/l*65.4%
*-commutative65.4%
exp-to-pow65.4%
*-commutative65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in y around 0 73.2%
associate-/r*69.4%
exp-to-pow69.4%
sub-neg69.4%
metadata-eval69.4%
metadata-eval69.4%
sub-neg69.4%
Simplified69.4%
Taylor expanded in t around 0 86.7%
Taylor expanded in b around 0 36.7%
Taylor expanded in b around inf 36.7%
associate-*r/36.7%
*-commutative36.7%
*-commutative36.7%
times-frac38.7%
associate-*l/38.7%
neg-mul-138.7%
*-commutative38.7%
associate-/l*38.6%
distribute-rgt-neg-in38.6%
distribute-neg-frac38.6%
Simplified38.6%
if -1.2e40 < b Initial program 97.9%
associate-/l*98.4%
exp-diff85.1%
associate-/l/85.1%
exp-sum74.3%
associate-/l*71.9%
*-commutative71.9%
exp-to-pow71.9%
*-commutative71.9%
exp-to-pow72.5%
sub-neg72.5%
metadata-eval72.5%
Simplified72.5%
Taylor expanded in y around 0 64.0%
associate-/r*62.0%
exp-to-pow62.6%
sub-neg62.6%
metadata-eval62.6%
metadata-eval62.6%
sub-neg62.6%
Simplified62.6%
Taylor expanded in t around 0 50.6%
Taylor expanded in b around 0 36.4%
distribute-lft-out36.9%
Simplified36.9%
*-un-lft-identity36.9%
times-frac37.3%
distribute-rgt1-in37.3%
Applied egg-rr37.3%
Final simplification37.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.7e-12) (/ (* b (/ x (- a))) y) (/ x (* a (+ y (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.7e-12) {
tmp = (b * (x / -a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3.7d-12)) then
tmp = (b * (x / -a)) / y
else
tmp = x / (a * (y + (y * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3.7e-12) {
tmp = (b * (x / -a)) / y;
} else {
tmp = x / (a * (y + (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.7e-12: tmp = (b * (x / -a)) / y else: tmp = x / (a * (y + (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.7e-12) tmp = Float64(Float64(b * Float64(x / Float64(-a))) / y); else tmp = Float64(x / Float64(a * Float64(y + Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3.7e-12) tmp = (b * (x / -a)) / y; else tmp = x / (a * (y + (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.7e-12], N[(N[(b * N[(x / (-a)), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.7 \cdot 10^{-12}:\\
\;\;\;\;\frac{b \cdot \frac{x}{-a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y + y \cdot b\right)}\\
\end{array}
\end{array}
if b < -3.69999999999999999e-12Initial program 100.0%
associate-/l*100.0%
exp-diff67.2%
associate-/l/67.2%
exp-sum67.2%
associate-/l*67.2%
*-commutative67.2%
exp-to-pow67.2%
*-commutative67.2%
exp-to-pow67.2%
sub-neg67.2%
metadata-eval67.2%
Simplified67.2%
Taylor expanded in y around 0 70.7%
associate-/r*67.5%
exp-to-pow67.5%
sub-neg67.5%
metadata-eval67.5%
metadata-eval67.5%
sub-neg67.5%
Simplified67.5%
Taylor expanded in t around 0 80.7%
Taylor expanded in b around 0 33.4%
Taylor expanded in b around inf 33.4%
associate-*r/33.4%
*-commutative33.4%
*-commutative33.4%
times-frac35.1%
associate-*l/35.1%
neg-mul-135.1%
*-commutative35.1%
associate-/l*35.0%
distribute-rgt-neg-in35.0%
distribute-neg-frac35.0%
Simplified35.0%
if -3.69999999999999999e-12 < b Initial program 97.8%
associate-/l*98.3%
exp-diff85.5%
associate-/l/85.5%
exp-sum74.2%
associate-/l*71.6%
*-commutative71.6%
exp-to-pow71.6%
*-commutative71.6%
exp-to-pow72.3%
sub-neg72.3%
metadata-eval72.3%
Simplified72.3%
Taylor expanded in y around 0 64.4%
associate-/r*62.3%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
metadata-eval62.9%
sub-neg62.9%
Simplified62.9%
Taylor expanded in t around 0 50.8%
Taylor expanded in b around 0 37.5%
distribute-lft-out38.0%
Simplified38.0%
Final simplification37.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 3.8e+17) (* (/ 1.0 a) (/ x y)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 3.8e+17) {
tmp = (1.0 / a) * (x / y);
} 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 <= 3.8d+17) then
tmp = (1.0d0 / a) * (x / y)
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 <= 3.8e+17) {
tmp = (1.0 / a) * (x / y);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 3.8e+17: tmp = (1.0 / a) * (x / y) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 3.8e+17) tmp = Float64(Float64(1.0 / a) * Float64(x / y)); 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 <= 3.8e+17) tmp = (1.0 / a) * (x / y); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 3.8e+17], N[(N[(1.0 / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 3.8 \cdot 10^{+17}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 3.8e17Initial program 97.8%
associate-/l*98.3%
exp-diff86.9%
associate-/l/86.9%
exp-sum78.7%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
*-commutative76.1%
exp-to-pow76.8%
sub-neg76.8%
metadata-eval76.8%
Simplified76.8%
Taylor expanded in y around 0 65.8%
associate-/r*64.7%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
metadata-eval65.4%
sub-neg65.4%
Simplified65.4%
Taylor expanded in t around 0 51.6%
Taylor expanded in b around 0 32.7%
*-un-lft-identity32.7%
times-frac33.6%
Applied egg-rr33.6%
if 3.8e17 < b Initial program 100.0%
associate-/l*100.0%
exp-diff62.9%
associate-/l/62.9%
exp-sum53.2%
associate-/l*53.2%
*-commutative53.2%
exp-to-pow53.2%
*-commutative53.2%
exp-to-pow53.2%
sub-neg53.2%
metadata-eval53.2%
Simplified53.2%
Taylor expanded in y around 0 66.2%
associate-/r*59.8%
exp-to-pow59.8%
sub-neg59.8%
metadata-eval59.8%
metadata-eval59.8%
sub-neg59.8%
Simplified59.8%
Taylor expanded in t around 0 77.8%
Taylor expanded in b around 0 43.6%
distribute-lft-out43.6%
Simplified43.6%
Taylor expanded in b around inf 43.6%
*-commutative43.6%
Simplified43.6%
(FPCore (x y z t a b) :precision binary64 (if (<= t -2e+87) (/ (/ x a) y) (* (/ 1.0 a) (/ x y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2e+87) {
tmp = (x / a) / y;
} else {
tmp = (1.0 / a) * (x / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-2d+87)) then
tmp = (x / a) / y
else
tmp = (1.0d0 / a) * (x / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -2e+87) {
tmp = (x / a) / y;
} else {
tmp = (1.0 / a) * (x / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -2e+87: tmp = (x / a) / y else: tmp = (1.0 / a) * (x / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -2e+87) tmp = Float64(Float64(x / a) / y); else tmp = Float64(Float64(1.0 / a) * Float64(x / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -2e+87) tmp = (x / a) / y; else tmp = (1.0 / a) * (x / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -2e+87], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(1.0 / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+87}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{a} \cdot \frac{x}{y}\\
\end{array}
\end{array}
if t < -1.9999999999999999e87Initial program 100.0%
associate-/l*100.0%
exp-diff75.0%
associate-/l/75.0%
exp-sum55.0%
associate-/l*55.0%
*-commutative55.0%
exp-to-pow55.0%
*-commutative55.0%
exp-to-pow55.0%
sub-neg55.0%
metadata-eval55.0%
Simplified55.0%
Taylor expanded in y around 0 72.6%
associate-/r*72.6%
exp-to-pow72.6%
sub-neg72.6%
metadata-eval72.6%
metadata-eval72.6%
sub-neg72.6%
Simplified72.6%
Taylor expanded in t around 0 51.3%
Taylor expanded in b around 0 40.2%
associate-/r*47.0%
Applied egg-rr47.0%
if -1.9999999999999999e87 < t Initial program 98.0%
associate-/l*98.5%
exp-diff82.3%
associate-/l/82.3%
exp-sum75.8%
associate-/l*73.4%
*-commutative73.4%
exp-to-pow73.4%
*-commutative73.4%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 64.6%
associate-/r*61.9%
exp-to-pow62.4%
sub-neg62.4%
metadata-eval62.4%
metadata-eval62.4%
sub-neg62.4%
Simplified62.4%
Taylor expanded in t around 0 59.2%
Taylor expanded in b around 0 30.0%
*-un-lft-identity30.0%
times-frac31.6%
Applied egg-rr31.6%
(FPCore (x y z t a b) :precision binary64 (if (<= z 5.5e-44) (/ (/ x a) y) (/ x (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= 5.5e-44) {
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 (z <= 5.5d-44) 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 (z <= 5.5e-44) {
tmp = (x / a) / y;
} else {
tmp = x / (y * a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= 5.5e-44: tmp = (x / a) / y else: tmp = x / (y * a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= 5.5e-44) 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 (z <= 5.5e-44) tmp = (x / a) / y; else tmp = x / (y * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, 5.5e-44], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq 5.5 \cdot 10^{-44}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y \cdot a}\\
\end{array}
\end{array}
if z < 5.49999999999999993e-44Initial program 99.3%
associate-/l*98.0%
exp-diff75.0%
associate-/l/75.0%
exp-sum66.8%
associate-/l*63.5%
*-commutative63.5%
exp-to-pow63.5%
*-commutative63.5%
exp-to-pow64.0%
sub-neg64.0%
metadata-eval64.0%
Simplified64.0%
Taylor expanded in y around 0 59.5%
associate-/r*56.2%
exp-to-pow56.6%
sub-neg56.6%
metadata-eval56.6%
metadata-eval56.6%
sub-neg56.6%
Simplified56.6%
Taylor expanded in t around 0 58.8%
Taylor expanded in b around 0 30.2%
associate-/r*34.7%
Applied egg-rr34.7%
if 5.49999999999999993e-44 < z Initial program 97.4%
associate-/l*99.4%
exp-diff86.7%
associate-/l/86.7%
exp-sum77.7%
associate-/l*77.0%
*-commutative77.0%
exp-to-pow77.0%
*-commutative77.0%
exp-to-pow77.5%
sub-neg77.5%
metadata-eval77.5%
Simplified77.5%
Taylor expanded in y around 0 71.7%
associate-/r*70.2%
exp-to-pow70.7%
sub-neg70.7%
metadata-eval70.7%
metadata-eval70.7%
sub-neg70.7%
Simplified70.7%
Taylor expanded in t around 0 57.2%
Taylor expanded in b around 0 32.8%
Final simplification33.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.3%
associate-/l*98.7%
exp-diff81.1%
associate-/l/81.1%
exp-sum72.5%
associate-/l*70.6%
*-commutative70.6%
exp-to-pow70.6%
*-commutative70.6%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in y around 0 65.9%
associate-/r*63.5%
exp-to-pow64.0%
sub-neg64.0%
metadata-eval64.0%
metadata-eval64.0%
sub-neg64.0%
Simplified64.0%
Taylor expanded in t around 0 57.9%
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 2024097
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))