
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t - 1.0d0) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t - 1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t - 1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t - 1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t - 1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t - 1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t - 1\right) \cdot \log a\right) - b}}{y}
\end{array}
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (+ t -1.0) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = (x * exp((((y * log(z)) + ((t + (-1.0d0)) * log(a))) - b))) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x * Math.exp((((y * Math.log(z)) + ((t + -1.0) * Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((t + -1.0) * math.log(a))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(Float64(t + -1.0) * log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((t + -1.0) * log(a))) - b))) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] + N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \left(t + -1\right) \cdot \log a\right) - b}}{y}
\end{array}
Initial program 98.3%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= (+ t -1.0) -5e+248)
(* x (/ (pow a t) (* y a)))
(if (<= (+ t -1.0) 2e+36)
(/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)
(/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t + -1.0) <= -5e+248) {
tmp = x * (pow(a, t) / (y * a));
} else if ((t + -1.0) <= 2e+36) {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((t + (-1.0d0)) <= (-5d+248)) then
tmp = x * ((a ** t) / (y * a))
else if ((t + (-1.0d0)) <= 2d+36) then
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t + -1.0) <= -5e+248) {
tmp = x * (Math.pow(a, t) / (y * a));
} else if ((t + -1.0) <= 2e+36) {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t + -1.0) <= -5e+248: tmp = x * (math.pow(a, t) / (y * a)) elif (t + -1.0) <= 2e+36: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(t + -1.0) <= -5e+248) tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); elseif (Float64(t + -1.0) <= 2e+36) tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t + -1.0) <= -5e+248) tmp = x * ((a ^ t) / (y * a)); elseif ((t + -1.0) <= 2e+36) tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(t + -1.0), $MachinePrecision], -5e+248], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t + -1.0), $MachinePrecision], 2e+36], 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], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -5 \cdot 10^{+248}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\mathbf{elif}\;t + -1 \leq 2 \cdot 10^{+36}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t 1) < -4.9999999999999996e248Initial program 100.0%
associate-/l*100.0%
exp-diff64.3%
associate-/l/64.3%
exp-sum64.3%
times-frac64.3%
*-commutative64.3%
exp-to-pow64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in y around 0 64.3%
associate-/l*64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
unpow-prod-up64.3%
times-frac64.3%
unpow-164.3%
Applied egg-rr64.3%
associate-/l/64.3%
*-commutative64.3%
associate-*r/64.3%
Simplified64.3%
Taylor expanded in b around 0 100.0%
if -4.9999999999999996e248 < (-.f64 t 1) < 2.00000000000000008e36Initial program 97.6%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
if 2.00000000000000008e36 < (-.f64 t 1) Initial program 100.0%
Taylor expanded in y around 0 98.3%
Final simplification94.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.1e+55) (not (<= y 2.9e+31))) (/ (* x (/ (pow z y) a)) y) (/ (* x (exp (- (* (+ t -1.0) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.1e+55) || !(y <= 2.9e+31)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.1d+55)) .or. (.not. (y <= 2.9d+31))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = (x * exp((((t + (-1.0d0)) * log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.1e+55) || !(y <= 2.9e+31)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = (x * Math.exp((((t + -1.0) * Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.1e+55) or not (y <= 2.9e+31): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = (x * math.exp((((t + -1.0) * math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.1e+55) || !(y <= 2.9e+31)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(t + -1.0) * log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.1e+55) || ~((y <= 2.9e+31))) tmp = (x * ((z ^ y) / a)) / y; else tmp = (x * exp((((t + -1.0) * log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.1e+55], N[Not[LessEqual[y, 2.9e+31]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(t + -1.0), $MachinePrecision] * N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{+55} \lor \neg \left(y \leq 2.9 \cdot 10^{+31}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(t + -1\right) \cdot \log a - b}}{y}\\
\end{array}
\end{array}
if y < -1.10000000000000005e55 or 2.9e31 < y Initial program 100.0%
Taylor expanded in t around 0 92.0%
+-commutative92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
Taylor expanded in b around 0 88.0%
div-exp88.0%
*-commutative88.0%
exp-to-pow88.0%
rem-exp-log88.0%
Simplified88.0%
if -1.10000000000000005e55 < y < 2.9e31Initial program 96.7%
Taylor expanded in y around 0 94.0%
Final simplification91.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.2e+53) (not (<= y 2.3e+27))) (/ (* x (/ (pow z y) a)) y) (* x (/ (/ (pow a t) a) (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.2e+53) || !(y <= 2.3e+27)) {
tmp = (x * (pow(z, y) / a)) / y;
} else {
tmp = x * ((pow(a, t) / 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 ((y <= (-2.2d+53)) .or. (.not. (y <= 2.3d+27))) then
tmp = (x * ((z ** y) / a)) / y
else
tmp = x * (((a ** t) / 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 ((y <= -2.2e+53) || !(y <= 2.3e+27)) {
tmp = (x * (Math.pow(z, y) / a)) / y;
} else {
tmp = x * ((Math.pow(a, t) / a) / (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.2e+53) or not (y <= 2.3e+27): tmp = (x * (math.pow(z, y) / a)) / y else: tmp = x * ((math.pow(a, t) / a) / (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.2e+53) || !(y <= 2.3e+27)) tmp = Float64(Float64(x * Float64((z ^ y) / a)) / y); else tmp = Float64(x * Float64(Float64((a ^ t) / a) / Float64(y * exp(b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.2e+53) || ~((y <= 2.3e+27))) tmp = (x * ((z ^ y) / a)) / y; else tmp = x * (((a ^ t) / a) / (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.2e+53], N[Not[LessEqual[y, 2.3e+27]], $MachinePrecision]], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(x * N[(N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+53} \lor \neg \left(y \leq 2.3 \cdot 10^{+27}\right):\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{\frac{{a}^{t}}{a}}{y \cdot e^{b}}\\
\end{array}
\end{array}
if y < -2.19999999999999999e53 or 2.3000000000000001e27 < y Initial program 100.0%
Taylor expanded in t around 0 92.1%
+-commutative92.1%
mul-1-neg92.1%
unsub-neg92.1%
Simplified92.1%
Taylor expanded in b around 0 87.3%
div-exp87.3%
*-commutative87.3%
exp-to-pow87.3%
rem-exp-log87.3%
Simplified87.3%
if -2.19999999999999999e53 < y < 2.3000000000000001e27Initial program 96.7%
associate-/l*97.6%
exp-diff82.5%
associate-/l/82.5%
exp-sum80.2%
times-frac80.2%
*-commutative80.2%
exp-to-pow80.2%
*-commutative80.2%
exp-to-pow81.0%
sub-neg81.0%
metadata-eval81.0%
Simplified81.0%
Taylor expanded in y around 0 81.1%
associate-/l*84.3%
exp-to-pow84.9%
sub-neg84.9%
metadata-eval84.9%
Simplified84.9%
unpow-prod-up85.0%
unpow-185.0%
Applied egg-rr85.0%
associate-*r/85.0%
*-rgt-identity85.0%
Simplified85.0%
Final simplification86.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (* x (/ (pow z y) a)) y)))
(if (<= t -2.7e+242)
(* x (/ (pow a t) (* y a)))
(if (<= t -7.5e-26)
t_1
(if (<= t 1.25e-294)
(/ x (* a (* y (exp b))))
(if (<= t 2.12e+36) t_1 (* x (/ (pow a (+ t -1.0)) y))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (pow(z, y) / a)) / y;
double tmp;
if (t <= -2.7e+242) {
tmp = x * (pow(a, t) / (y * a));
} else if (t <= -7.5e-26) {
tmp = t_1;
} else if (t <= 1.25e-294) {
tmp = x / (a * (y * exp(b)));
} else if (t <= 2.12e+36) {
tmp = t_1;
} else {
tmp = x * (pow(a, (t + -1.0)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (x * ((z ** y) / a)) / y
if (t <= (-2.7d+242)) then
tmp = x * ((a ** t) / (y * a))
else if (t <= (-7.5d-26)) then
tmp = t_1
else if (t <= 1.25d-294) then
tmp = x / (a * (y * exp(b)))
else if (t <= 2.12d+36) then
tmp = t_1
else
tmp = x * ((a ** (t + (-1.0d0))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (x * (Math.pow(z, y) / a)) / y;
double tmp;
if (t <= -2.7e+242) {
tmp = x * (Math.pow(a, t) / (y * a));
} else if (t <= -7.5e-26) {
tmp = t_1;
} else if (t <= 1.25e-294) {
tmp = x / (a * (y * Math.exp(b)));
} else if (t <= 2.12e+36) {
tmp = t_1;
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (x * (math.pow(z, y) / a)) / y tmp = 0 if t <= -2.7e+242: tmp = x * (math.pow(a, t) / (y * a)) elif t <= -7.5e-26: tmp = t_1 elif t <= 1.25e-294: tmp = x / (a * (y * math.exp(b))) elif t <= 2.12e+36: tmp = t_1 else: tmp = x * (math.pow(a, (t + -1.0)) / y) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(x * Float64((z ^ y) / a)) / y) tmp = 0.0 if (t <= -2.7e+242) tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); elseif (t <= -7.5e-26) tmp = t_1; elseif (t <= 1.25e-294) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (t <= 2.12e+36) tmp = t_1; else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (x * ((z ^ y) / a)) / y; tmp = 0.0; if (t <= -2.7e+242) tmp = x * ((a ^ t) / (y * a)); elseif (t <= -7.5e-26) tmp = t_1; elseif (t <= 1.25e-294) tmp = x / (a * (y * exp(b))); elseif (t <= 2.12e+36) tmp = t_1; else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]}, If[LessEqual[t, -2.7e+242], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -7.5e-26], t$95$1, If[LessEqual[t, 1.25e-294], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.12e+36], t$95$1, N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x \cdot \frac{{z}^{y}}{a}}{y}\\
\mathbf{if}\;t \leq -2.7 \cdot 10^{+242}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\mathbf{elif}\;t \leq -7.5 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-294}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;t \leq 2.12 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if t < -2.69999999999999984e242Initial program 100.0%
associate-/l*100.0%
exp-diff64.3%
associate-/l/64.3%
exp-sum64.3%
times-frac64.3%
*-commutative64.3%
exp-to-pow64.3%
*-commutative64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
Taylor expanded in y around 0 64.3%
associate-/l*64.3%
exp-to-pow64.3%
sub-neg64.3%
metadata-eval64.3%
Simplified64.3%
unpow-prod-up64.3%
times-frac64.3%
unpow-164.3%
Applied egg-rr64.3%
associate-/l/64.3%
*-commutative64.3%
associate-*r/64.3%
Simplified64.3%
Taylor expanded in b around 0 100.0%
if -2.69999999999999984e242 < t < -7.4999999999999994e-26 or 1.2500000000000001e-294 < t < 2.12000000000000004e36Initial program 98.6%
Taylor expanded in t around 0 92.1%
+-commutative92.1%
mul-1-neg92.1%
unsub-neg92.1%
Simplified92.1%
Taylor expanded in b around 0 78.3%
div-exp78.3%
*-commutative78.3%
exp-to-pow78.3%
rem-exp-log78.8%
Simplified78.8%
if -7.4999999999999994e-26 < t < 1.2500000000000001e-294Initial program 95.8%
associate-/l*97.7%
exp-diff76.1%
associate-/l/76.1%
exp-sum76.2%
times-frac76.2%
*-commutative76.2%
exp-to-pow76.2%
*-commutative76.2%
exp-to-pow76.9%
sub-neg76.9%
metadata-eval76.9%
Simplified76.9%
Taylor expanded in y around 0 74.9%
associate-/l*79.9%
exp-to-pow80.5%
sub-neg80.5%
metadata-eval80.5%
Simplified80.5%
Taylor expanded in t around 0 80.5%
if 2.12000000000000004e36 < t Initial program 100.0%
associate-/l*100.0%
exp-diff80.7%
associate-/l/80.7%
exp-sum63.2%
times-frac63.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 77.2%
associate-/l*77.2%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in b around 0 91.4%
remove-double-neg91.4%
log-rec91.4%
distribute-lft-neg-in91.4%
mul-1-neg91.4%
mul-1-neg91.4%
distribute-lft-neg-in91.4%
log-rec91.4%
remove-double-neg91.4%
associate-/l*91.4%
Simplified91.4%
Final simplification83.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -7.5e-14)
(* x (/ (pow a t) (* y a)))
(if (<= t 1.25e-294)
(/ x (* a (* y (exp b))))
(if (<= t 2.8e+36)
(* (/ (pow z y) a) (/ x y))
(* x (/ (pow a (+ t -1.0)) y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -7.5e-14) {
tmp = x * (pow(a, t) / (y * a));
} else if (t <= 1.25e-294) {
tmp = x / (a * (y * exp(b)));
} else if (t <= 2.8e+36) {
tmp = (pow(z, y) / a) * (x / y);
} else {
tmp = x * (pow(a, (t + -1.0)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-7.5d-14)) then
tmp = x * ((a ** t) / (y * a))
else if (t <= 1.25d-294) then
tmp = x / (a * (y * exp(b)))
else if (t <= 2.8d+36) then
tmp = ((z ** y) / a) * (x / y)
else
tmp = x * ((a ** (t + (-1.0d0))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -7.5e-14) {
tmp = x * (Math.pow(a, t) / (y * a));
} else if (t <= 1.25e-294) {
tmp = x / (a * (y * Math.exp(b)));
} else if (t <= 2.8e+36) {
tmp = (Math.pow(z, y) / a) * (x / y);
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -7.5e-14: tmp = x * (math.pow(a, t) / (y * a)) elif t <= 1.25e-294: tmp = x / (a * (y * math.exp(b))) elif t <= 2.8e+36: tmp = (math.pow(z, y) / a) * (x / y) else: tmp = x * (math.pow(a, (t + -1.0)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -7.5e-14) tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); elseif (t <= 1.25e-294) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); elseif (t <= 2.8e+36) tmp = Float64(Float64((z ^ y) / a) * Float64(x / y)); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -7.5e-14) tmp = x * ((a ^ t) / (y * a)); elseif (t <= 1.25e-294) tmp = x / (a * (y * exp(b))); elseif (t <= 2.8e+36) tmp = ((z ^ y) / a) * (x / y); else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -7.5e-14], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e-294], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.8e+36], N[(N[(N[Power[z, y], $MachinePrecision] / a), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.5 \cdot 10^{-14}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{-294}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{+36}:\\
\;\;\;\;\frac{{z}^{y}}{a} \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if t < -7.4999999999999996e-14Initial program 99.8%
associate-/l*99.8%
exp-diff79.8%
associate-/l/79.8%
exp-sum61.3%
times-frac61.3%
*-commutative61.3%
exp-to-pow61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 61.5%
associate-/l*61.5%
exp-to-pow61.5%
sub-neg61.5%
metadata-eval61.5%
Simplified61.5%
unpow-prod-up61.7%
times-frac61.7%
unpow-161.7%
Applied egg-rr61.7%
associate-/l/61.7%
*-commutative61.7%
associate-*r/61.7%
Simplified61.7%
Taylor expanded in b around 0 70.5%
if -7.4999999999999996e-14 < t < 1.2500000000000001e-294Initial program 95.9%
associate-/l*97.7%
exp-diff77.4%
associate-/l/77.4%
exp-sum77.5%
times-frac77.5%
*-commutative77.5%
exp-to-pow77.5%
*-commutative77.5%
exp-to-pow78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Taylor expanded in y around 0 74.9%
associate-/l*79.6%
exp-to-pow80.3%
sub-neg80.3%
metadata-eval80.3%
Simplified80.3%
Taylor expanded in t around 0 80.2%
if 1.2500000000000001e-294 < t < 2.8000000000000001e36Initial program 97.6%
Taylor expanded in t around 0 96.0%
+-commutative96.0%
mul-1-neg96.0%
unsub-neg96.0%
Simplified96.0%
Taylor expanded in b around 0 79.8%
div-exp79.8%
*-commutative79.8%
exp-to-pow79.8%
rem-exp-log80.6%
Simplified80.6%
Taylor expanded in x around 0 69.0%
*-commutative69.0%
times-frac77.2%
Simplified77.2%
if 2.8000000000000001e36 < t Initial program 100.0%
associate-/l*100.0%
exp-diff80.7%
associate-/l/80.7%
exp-sum63.2%
times-frac63.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 77.2%
associate-/l*77.2%
exp-to-pow77.2%
sub-neg77.2%
metadata-eval77.2%
Simplified77.2%
Taylor expanded in b around 0 91.4%
remove-double-neg91.4%
log-rec91.4%
distribute-lft-neg-in91.4%
mul-1-neg91.4%
mul-1-neg91.4%
distribute-lft-neg-in91.4%
log-rec91.4%
remove-double-neg91.4%
associate-/l*91.4%
Simplified91.4%
Final simplification79.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -2.1e+85) (not (<= b 6000.0))) (/ x (* a (* y (exp b)))) (* x (/ (pow a t) (* y a)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -2.1e+85) || !(b <= 6000.0)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * (pow(a, t) / (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 ((b <= (-2.1d+85)) .or. (.not. (b <= 6000.0d0))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * ((a ** t) / (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 ((b <= -2.1e+85) || !(b <= 6000.0)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * (Math.pow(a, t) / (y * a));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -2.1e+85) or not (b <= 6000.0): tmp = x / (a * (y * math.exp(b))) else: tmp = x * (math.pow(a, t) / (y * a)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -2.1e+85) || !(b <= 6000.0)) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -2.1e+85) || ~((b <= 6000.0))) tmp = x / (a * (y * exp(b))); else tmp = x * ((a ^ t) / (y * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -2.1e+85], N[Not[LessEqual[b, 6000.0]], $MachinePrecision]], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+85} \lor \neg \left(b \leq 6000\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\end{array}
\end{array}
if b < -2.1000000000000001e85 or 6e3 < b Initial program 100.0%
associate-/l*100.0%
exp-diff63.5%
associate-/l/63.5%
exp-sum55.7%
times-frac55.7%
*-commutative55.7%
exp-to-pow55.7%
*-commutative55.7%
exp-to-pow55.7%
sub-neg55.7%
metadata-eval55.7%
Simplified55.7%
Taylor expanded in y around 0 61.0%
associate-/l*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 83.7%
if -2.1000000000000001e85 < b < 6e3Initial program 96.9%
associate-/l*97.8%
exp-diff92.1%
associate-/l/92.1%
exp-sum79.3%
times-frac79.3%
*-commutative79.3%
exp-to-pow79.4%
*-commutative79.4%
exp-to-pow80.1%
sub-neg80.1%
metadata-eval80.1%
Simplified80.1%
Taylor expanded in y around 0 68.2%
associate-/l*68.4%
exp-to-pow69.0%
sub-neg69.0%
metadata-eval69.0%
Simplified69.0%
unpow-prod-up69.0%
times-frac69.0%
unpow-169.0%
Applied egg-rr69.0%
associate-/l/69.0%
*-commutative69.0%
associate-*r/69.1%
Simplified69.1%
Taylor expanded in b around 0 64.1%
Final simplification72.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -7.8e-14)
(* x (/ (pow a t) (* y a)))
(if (<= t 4.2e+83)
(/ x (* a (* y (exp b))))
(* x (/ (pow a (+ t -1.0)) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -7.8e-14) {
tmp = x * (pow(a, t) / (y * a));
} else if (t <= 4.2e+83) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * (pow(a, (t + -1.0)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-7.8d-14)) then
tmp = x * ((a ** t) / (y * a))
else if (t <= 4.2d+83) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * ((a ** (t + (-1.0d0))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -7.8e-14) {
tmp = x * (Math.pow(a, t) / (y * a));
} else if (t <= 4.2e+83) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -7.8e-14: tmp = x * (math.pow(a, t) / (y * a)) elif t <= 4.2e+83: tmp = x / (a * (y * math.exp(b))) else: tmp = x * (math.pow(a, (t + -1.0)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -7.8e-14) tmp = Float64(x * Float64((a ^ t) / Float64(y * a))); elseif (t <= 4.2e+83) tmp = Float64(x / Float64(a * Float64(y * exp(b)))); else tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -7.8e-14) tmp = x * ((a ^ t) / (y * a)); elseif (t <= 4.2e+83) tmp = x / (a * (y * exp(b))); else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -7.8e-14], N[(x * N[(N[Power[a, t], $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e+83], N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{-14}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y \cdot a}\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+83}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if t < -7.7999999999999996e-14Initial program 99.8%
associate-/l*99.8%
exp-diff79.8%
associate-/l/79.8%
exp-sum61.3%
times-frac61.3%
*-commutative61.3%
exp-to-pow61.3%
*-commutative61.3%
exp-to-pow61.3%
sub-neg61.3%
metadata-eval61.3%
Simplified61.3%
Taylor expanded in y around 0 61.5%
associate-/l*61.5%
exp-to-pow61.5%
sub-neg61.5%
metadata-eval61.5%
Simplified61.5%
unpow-prod-up61.7%
times-frac61.7%
unpow-161.7%
Applied egg-rr61.7%
associate-/l/61.7%
*-commutative61.7%
associate-*r/61.7%
Simplified61.7%
Taylor expanded in b around 0 70.5%
if -7.7999999999999996e-14 < t < 4.20000000000000005e83Initial program 96.8%
associate-/l*97.8%
exp-diff77.8%
associate-/l/77.8%
exp-sum73.3%
times-frac73.3%
*-commutative73.3%
exp-to-pow73.3%
*-commutative73.3%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in y around 0 60.9%
associate-/l*64.9%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 70.8%
if 4.20000000000000005e83 < t Initial program 100.0%
associate-/l*100.0%
exp-diff82.4%
associate-/l/82.4%
exp-sum66.7%
times-frac66.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 80.4%
associate-/l*80.4%
exp-to-pow80.4%
sub-neg80.4%
metadata-eval80.4%
Simplified80.4%
Taylor expanded in b around 0 94.2%
remove-double-neg94.2%
log-rec94.2%
distribute-lft-neg-in94.2%
mul-1-neg94.2%
mul-1-neg94.2%
distribute-lft-neg-in94.2%
log-rec94.2%
remove-double-neg94.2%
associate-/l*94.2%
Simplified94.2%
Final simplification75.4%
(FPCore (x y z t a b) :precision binary64 (/ x (* a (* y (exp b)))))
double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * exp(b)));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x / (a * (y * exp(b)))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x / (a * (y * Math.exp(b)));
}
def code(x, y, z, t, a, b): return x / (a * (y * math.exp(b)))
function code(x, y, z, t, a, b) return Float64(x / Float64(a * Float64(y * exp(b)))) end
function tmp = code(x, y, z, t, a, b) tmp = x / (a * (y * exp(b))); end
code[x_, y_, z_, t_, a_, b_] := N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{a \cdot \left(y \cdot e^{b}\right)}
\end{array}
Initial program 98.3%
associate-/l*98.8%
exp-diff79.2%
associate-/l/79.2%
exp-sum68.7%
times-frac68.7%
*-commutative68.7%
exp-to-pow68.7%
*-commutative68.7%
exp-to-pow69.1%
sub-neg69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in y around 0 65.0%
associate-/l*67.0%
exp-to-pow67.3%
sub-neg67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in t around 0 56.8%
Final simplification56.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -3e-197)
(- (/ x (* y a)) (* (/ x y) (/ b a)))
(if (<= b 7.5e-217)
(/ (- (* x (* y a)) (* (* y a) (* x b))) (* (* y a) (* y a)))
(if (or (<= b 2.9e-157) (not (<= b 5e+115)))
(/ x (* a (* y b)))
(/ (/ x a) y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3e-197) {
tmp = (x / (y * a)) - ((x / y) * (b / a));
} else if (b <= 7.5e-217) {
tmp = ((x * (y * a)) - ((y * a) * (x * b))) / ((y * a) * (y * a));
} else if ((b <= 2.9e-157) || !(b <= 5e+115)) {
tmp = x / (a * (y * b));
} else {
tmp = (x / a) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-3d-197)) then
tmp = (x / (y * a)) - ((x / y) * (b / a))
else if (b <= 7.5d-217) then
tmp = ((x * (y * a)) - ((y * a) * (x * b))) / ((y * a) * (y * a))
else if ((b <= 2.9d-157) .or. (.not. (b <= 5d+115))) then
tmp = x / (a * (y * b))
else
tmp = (x / a) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -3e-197) {
tmp = (x / (y * a)) - ((x / y) * (b / a));
} else if (b <= 7.5e-217) {
tmp = ((x * (y * a)) - ((y * a) * (x * b))) / ((y * a) * (y * a));
} else if ((b <= 2.9e-157) || !(b <= 5e+115)) {
tmp = x / (a * (y * b));
} else {
tmp = (x / a) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3e-197: tmp = (x / (y * a)) - ((x / y) * (b / a)) elif b <= 7.5e-217: tmp = ((x * (y * a)) - ((y * a) * (x * b))) / ((y * a) * (y * a)) elif (b <= 2.9e-157) or not (b <= 5e+115): tmp = x / (a * (y * b)) else: tmp = (x / a) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3e-197) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x / y) * Float64(b / a))); elseif (b <= 7.5e-217) tmp = Float64(Float64(Float64(x * Float64(y * a)) - Float64(Float64(y * a) * Float64(x * b))) / Float64(Float64(y * a) * Float64(y * a))); elseif ((b <= 2.9e-157) || !(b <= 5e+115)) tmp = Float64(x / Float64(a * Float64(y * b))); else tmp = Float64(Float64(x / a) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -3e-197) tmp = (x / (y * a)) - ((x / y) * (b / a)); elseif (b <= 7.5e-217) tmp = ((x * (y * a)) - ((y * a) * (x * b))) / ((y * a) * (y * a)); elseif ((b <= 2.9e-157) || ~((b <= 5e+115))) tmp = x / (a * (y * b)); else tmp = (x / a) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3e-197], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / y), $MachinePrecision] * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.5e-217], N[(N[(N[(x * N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(y * a), $MachinePrecision] * N[(x * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * a), $MachinePrecision] * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 2.9e-157], N[Not[LessEqual[b, 5e+115]], $MachinePrecision]], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{-197}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x}{y} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \leq 7.5 \cdot 10^{-217}:\\
\;\;\;\;\frac{x \cdot \left(y \cdot a\right) - \left(y \cdot a\right) \cdot \left(x \cdot b\right)}{\left(y \cdot a\right) \cdot \left(y \cdot a\right)}\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-157} \lor \neg \left(b \leq 5 \cdot 10^{+115}\right):\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\end{array}
\end{array}
if b < -3.00000000000000026e-197Initial program 97.4%
associate-/l*99.4%
exp-diff75.2%
associate-/l/75.2%
exp-sum67.4%
times-frac67.4%
*-commutative67.4%
exp-to-pow67.4%
*-commutative67.4%
exp-to-pow67.9%
sub-neg67.9%
metadata-eval67.9%
Simplified67.9%
Taylor expanded in y around 0 60.1%
associate-/l*63.1%
exp-to-pow63.5%
sub-neg63.5%
metadata-eval63.5%
Simplified63.5%
Taylor expanded in t around 0 66.8%
Taylor expanded in b around 0 44.5%
+-commutative44.5%
mul-1-neg44.5%
unsub-neg44.5%
*-commutative44.5%
*-commutative44.5%
times-frac48.0%
Simplified48.0%
if -3.00000000000000026e-197 < b < 7.50000000000000031e-217Initial program 96.9%
associate-/l*96.9%
exp-diff96.9%
associate-/l/96.9%
exp-sum79.1%
times-frac79.1%
*-commutative79.1%
exp-to-pow79.1%
*-commutative79.1%
exp-to-pow79.7%
sub-neg79.7%
metadata-eval79.7%
Simplified79.7%
Taylor expanded in y around 0 78.2%
associate-/l*76.0%
exp-to-pow76.7%
sub-neg76.7%
metadata-eval76.7%
Simplified76.7%
Taylor expanded in t around 0 31.7%
Taylor expanded in b around 0 27.2%
associate-*r/27.2%
frac-2neg27.2%
frac-add40.0%
neg-mul-140.0%
distribute-rgt-neg-in40.0%
*-commutative40.0%
distribute-rgt-neg-in40.0%
*-commutative40.0%
*-commutative40.0%
*-commutative40.0%
distribute-rgt-neg-in40.0%
Applied egg-rr40.0%
if 7.50000000000000031e-217 < b < 2.89999999999999988e-157 or 5.00000000000000008e115 < b Initial program 100.0%
associate-/l*100.0%
exp-diff72.0%
associate-/l/72.0%
exp-sum64.0%
times-frac64.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 70.1%
associate-/l*74.1%
exp-to-pow74.1%
sub-neg74.1%
metadata-eval74.1%
Simplified74.1%
Taylor expanded in t around 0 72.6%
Taylor expanded in b around 0 51.4%
distribute-lft-out51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in b around inf 57.2%
*-commutative57.2%
Simplified57.2%
if 2.89999999999999988e-157 < b < 5.00000000000000008e115Initial program 99.5%
Taylor expanded in t around 0 86.0%
+-commutative86.0%
mul-1-neg86.0%
unsub-neg86.0%
Simplified86.0%
Taylor expanded in b around 0 67.5%
div-exp67.5%
*-commutative67.5%
exp-to-pow67.5%
rem-exp-log67.9%
Simplified67.9%
Taylor expanded in y around 0 26.3%
Final simplification43.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.25e-107) (- (/ x (* y a)) (* (/ x y) (/ b a))) (if (<= b 4e+114) (/ 1.0 (* y (/ a x))) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.25e-107) {
tmp = (x / (y * a)) - ((x / y) * (b / a));
} else if (b <= 4e+114) {
tmp = 1.0 / (y * (a / x));
} 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 <= (-2.25d-107)) then
tmp = (x / (y * a)) - ((x / y) * (b / a))
else if (b <= 4d+114) then
tmp = 1.0d0 / (y * (a / x))
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 <= -2.25e-107) {
tmp = (x / (y * a)) - ((x / y) * (b / a));
} else if (b <= 4e+114) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.25e-107: tmp = (x / (y * a)) - ((x / y) * (b / a)) elif b <= 4e+114: tmp = 1.0 / (y * (a / x)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.25e-107) tmp = Float64(Float64(x / Float64(y * a)) - Float64(Float64(x / y) * Float64(b / a))); elseif (b <= 4e+114) tmp = Float64(1.0 / Float64(y * Float64(a / x))); 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 <= -2.25e-107) tmp = (x / (y * a)) - ((x / y) * (b / a)); elseif (b <= 4e+114) tmp = 1.0 / (y * (a / x)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.25e-107], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(x / y), $MachinePrecision] * N[(b / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4e+114], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.25 \cdot 10^{-107}:\\
\;\;\;\;\frac{x}{y \cdot a} - \frac{x}{y} \cdot \frac{b}{a}\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+114}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.25000000000000008e-107Initial program 97.0%
associate-/l*99.4%
exp-diff71.0%
associate-/l/71.0%
exp-sum63.1%
times-frac63.1%
*-commutative63.1%
exp-to-pow63.1%
*-commutative63.1%
exp-to-pow63.6%
sub-neg63.6%
metadata-eval63.6%
Simplified63.6%
Taylor expanded in y around 0 61.1%
associate-/l*64.6%
exp-to-pow65.0%
sub-neg65.0%
metadata-eval65.0%
Simplified65.0%
Taylor expanded in t around 0 72.1%
Taylor expanded in b around 0 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
*-commutative46.1%
*-commutative46.1%
times-frac50.2%
Simplified50.2%
if -2.25000000000000008e-107 < b < 4e114Initial program 98.6%
associate-/l*98.0%
exp-diff89.5%
associate-/l/89.5%
exp-sum75.7%
times-frac75.7%
*-commutative75.7%
exp-to-pow75.7%
*-commutative75.7%
exp-to-pow76.1%
sub-neg76.1%
metadata-eval76.1%
Simplified76.1%
Taylor expanded in b around 0 75.0%
associate-/l*74.3%
*-commutative74.3%
exp-to-pow74.7%
sub-neg74.7%
metadata-eval74.7%
associate-/l*70.9%
Simplified70.9%
Taylor expanded in t around 0 54.6%
associate-/r*56.2%
Simplified56.2%
Taylor expanded in y around 0 23.3%
div-inv23.4%
*-commutative23.4%
clear-num23.7%
associate-/l*29.6%
Applied egg-rr29.6%
if 4e114 < b Initial program 100.0%
associate-/l*100.0%
exp-diff63.2%
associate-/l/63.2%
exp-sum57.9%
times-frac57.9%
*-commutative57.9%
exp-to-pow57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
Simplified57.9%
Taylor expanded in y around 0 65.8%
associate-/l*71.1%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around 0 89.6%
Taylor expanded in b around 0 61.8%
distribute-lft-out61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in b around inf 61.8%
*-commutative61.8%
Simplified61.8%
Final simplification41.5%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.6e+94) (* x (/ b (* y (- a)))) (if (<= b 4.3e+114) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.6e+94) {
tmp = x * (b / (y * -a));
} else if (b <= 4.3e+114) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-2.6d+94)) then
tmp = x * (b / (y * -a))
else if (b <= 4.3d+114) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.6e+94) {
tmp = x * (b / (y * -a));
} else if (b <= 4.3e+114) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.6e+94: tmp = x * (b / (y * -a)) elif b <= 4.3e+114: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.6e+94) tmp = Float64(x * Float64(b / Float64(y * Float64(-a)))); elseif (b <= 4.3e+114) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.6e+94) tmp = x * (b / (y * -a)); elseif (b <= 4.3e+114) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.6e+94], N[(x * N[(b / N[(y * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.3e+114], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.6 \cdot 10^{+94}:\\
\;\;\;\;x \cdot \frac{b}{y \cdot \left(-a\right)}\\
\mathbf{elif}\;b \leq 4.3 \cdot 10^{+114}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.5999999999999999e94Initial program 100.0%
associate-/l*100.0%
exp-diff60.9%
associate-/l/60.9%
exp-sum50.0%
times-frac50.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 58.9%
associate-/l*61.1%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
Simplified61.1%
Taylor expanded in t around 0 87.2%
Taylor expanded in b around 0 47.4%
Taylor expanded in b around inf 47.4%
*-commutative47.4%
*-commutative47.4%
associate-*r/53.7%
neg-mul-153.7%
distribute-rgt-neg-in53.7%
distribute-frac-neg53.7%
Simplified53.7%
if -2.5999999999999999e94 < b < 4.3000000000000001e114Initial program 97.4%
associate-/l*98.2%
exp-diff87.7%
associate-/l/87.7%
exp-sum76.1%
times-frac76.1%
*-commutative76.1%
exp-to-pow76.1%
*-commutative76.1%
exp-to-pow76.7%
sub-neg76.7%
metadata-eval76.7%
Simplified76.7%
Taylor expanded in y around 0 66.4%
associate-/l*67.7%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
Simplified68.2%
Taylor expanded in t around 0 41.4%
Taylor expanded in b around 0 28.0%
*-commutative28.0%
Simplified28.0%
*-rgt-identity28.0%
times-frac32.6%
Applied egg-rr32.6%
if 4.3000000000000001e114 < b Initial program 100.0%
associate-/l*100.0%
exp-diff63.2%
associate-/l/63.2%
exp-sum57.9%
times-frac57.9%
*-commutative57.9%
exp-to-pow57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
Simplified57.9%
Taylor expanded in y around 0 65.8%
associate-/l*71.1%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around 0 89.6%
Taylor expanded in b around 0 61.8%
distribute-lft-out61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in b around inf 61.8%
*-commutative61.8%
Simplified61.8%
Final simplification40.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -2.1e+14) (/ (* x (/ b (- y))) a) (if (<= b 5.2e+114) (/ 1.0 (* y (/ a x))) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.1e+14) {
tmp = (x * (b / -y)) / a;
} else if (b <= 5.2e+114) {
tmp = 1.0 / (y * (a / x));
} 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 <= (-2.1d+14)) then
tmp = (x * (b / -y)) / a
else if (b <= 5.2d+114) then
tmp = 1.0d0 / (y * (a / x))
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 <= -2.1e+14) {
tmp = (x * (b / -y)) / a;
} else if (b <= 5.2e+114) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.1e+14: tmp = (x * (b / -y)) / a elif b <= 5.2e+114: tmp = 1.0 / (y * (a / x)) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.1e+14) tmp = Float64(Float64(x * Float64(b / Float64(-y))) / a); elseif (b <= 5.2e+114) tmp = Float64(1.0 / Float64(y * Float64(a / x))); 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 <= -2.1e+14) tmp = (x * (b / -y)) / a; elseif (b <= 5.2e+114) tmp = 1.0 / (y * (a / x)); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.1e+14], N[(N[(x * N[(b / (-y)), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 5.2e+114], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+14}:\\
\;\;\;\;\frac{x \cdot \frac{b}{-y}}{a}\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+114}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -2.1e14Initial program 100.0%
associate-/l*100.0%
exp-diff60.7%
associate-/l/60.7%
exp-sum52.5%
times-frac52.5%
*-commutative52.5%
exp-to-pow52.5%
*-commutative52.5%
exp-to-pow52.5%
sub-neg52.5%
metadata-eval52.5%
Simplified52.5%
Taylor expanded in y around 0 59.2%
associate-/l*60.8%
exp-to-pow60.8%
sub-neg60.8%
metadata-eval60.8%
Simplified60.8%
Taylor expanded in t around 0 80.6%
Taylor expanded in b around 0 44.6%
Taylor expanded in b around inf 44.6%
mul-1-neg44.6%
times-frac53.6%
distribute-rgt-neg-out53.6%
associate-*l/49.1%
distribute-rgt-neg-in49.1%
associate-/l*50.8%
*-commutative50.8%
associate-/l*50.8%
distribute-rgt-neg-in50.8%
Simplified50.8%
if -2.1e14 < b < 5.2000000000000001e114Initial program 97.2%
associate-/l*98.0%
exp-diff90.4%
associate-/l/90.4%
exp-sum77.6%
times-frac77.6%
*-commutative77.6%
exp-to-pow77.6%
*-commutative77.6%
exp-to-pow78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Taylor expanded in b around 0 76.4%
associate-/l*77.1%
*-commutative77.1%
exp-to-pow77.8%
sub-neg77.8%
metadata-eval77.8%
associate-/l*72.7%
Simplified72.7%
Taylor expanded in t around 0 57.4%
associate-/r*58.7%
Simplified58.7%
Taylor expanded in y around 0 27.8%
div-inv27.8%
*-commutative27.8%
clear-num27.9%
associate-/l*32.2%
Applied egg-rr32.2%
if 5.2000000000000001e114 < b Initial program 100.0%
associate-/l*100.0%
exp-diff63.2%
associate-/l/63.2%
exp-sum57.9%
times-frac57.9%
*-commutative57.9%
exp-to-pow57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
Simplified57.9%
Taylor expanded in y around 0 65.8%
associate-/l*71.1%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around 0 89.6%
Taylor expanded in b around 0 61.8%
distribute-lft-out61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in b around inf 61.8%
*-commutative61.8%
Simplified61.8%
Final simplification41.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4e+97) (/ (* (/ x a) (+ b -1.0)) (- y)) (if (<= b 5.4e+116) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e+97) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else if (b <= 5.4e+116) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4d+97)) then
tmp = ((x / a) * (b + (-1.0d0))) / -y
else if (b <= 5.4d+116) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e+97) {
tmp = ((x / a) * (b + -1.0)) / -y;
} else if (b <= 5.4e+116) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4e+97: tmp = ((x / a) * (b + -1.0)) / -y elif b <= 5.4e+116: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4e+97) tmp = Float64(Float64(Float64(x / a) * Float64(b + -1.0)) / Float64(-y)); elseif (b <= 5.4e+116) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4e+97) tmp = ((x / a) * (b + -1.0)) / -y; elseif (b <= 5.4e+116) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4e+97], N[(N[(N[(x / a), $MachinePrecision] * N[(b + -1.0), $MachinePrecision]), $MachinePrecision] / (-y)), $MachinePrecision], If[LessEqual[b, 5.4e+116], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{+97}:\\
\;\;\;\;\frac{\frac{x}{a} \cdot \left(b + -1\right)}{-y}\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{+116}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < -4.0000000000000003e97Initial program 100.0%
associate-/l*100.0%
exp-diff60.9%
associate-/l/60.9%
exp-sum50.0%
times-frac50.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 58.9%
associate-/l*61.1%
exp-to-pow61.1%
sub-neg61.1%
metadata-eval61.1%
Simplified61.1%
Taylor expanded in t around 0 87.2%
Taylor expanded in b around 0 47.4%
Taylor expanded in y around 0 59.8%
remove-double-neg59.8%
neg-mul-159.8%
*-lft-identity59.8%
times-frac59.8%
metadata-eval59.8%
distribute-neg-frac59.8%
distribute-lft-in59.8%
+-commutative59.8%
neg-mul-159.8%
associate-*r/59.8%
mul-1-neg59.8%
distribute-neg-frac259.8%
neg-mul-159.8%
+-commutative59.8%
associate-/l*57.7%
neg-mul-157.7%
distribute-rgt-out57.7%
Simplified57.7%
if -4.0000000000000003e97 < b < 5.3999999999999999e116Initial program 97.4%
associate-/l*98.2%
exp-diff87.7%
associate-/l/87.7%
exp-sum76.1%
times-frac76.1%
*-commutative76.1%
exp-to-pow76.1%
*-commutative76.1%
exp-to-pow76.7%
sub-neg76.7%
metadata-eval76.7%
Simplified76.7%
Taylor expanded in y around 0 66.4%
associate-/l*67.7%
exp-to-pow68.2%
sub-neg68.2%
metadata-eval68.2%
Simplified68.2%
Taylor expanded in t around 0 41.4%
Taylor expanded in b around 0 28.0%
*-commutative28.0%
Simplified28.0%
*-rgt-identity28.0%
times-frac32.6%
Applied egg-rr32.6%
if 5.3999999999999999e116 < b Initial program 100.0%
associate-/l*100.0%
exp-diff63.2%
associate-/l/63.2%
exp-sum57.9%
times-frac57.9%
*-commutative57.9%
exp-to-pow57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
Simplified57.9%
Taylor expanded in y around 0 65.8%
associate-/l*71.1%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around 0 89.6%
Taylor expanded in b around 0 61.8%
distribute-lft-out61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in b around inf 61.8%
*-commutative61.8%
Simplified61.8%
Final simplification41.4%
(FPCore (x y z t a b) :precision binary64 (if (<= b 2e-256) (/ (- (/ x y) (/ (* x b) y)) a) (if (<= b 5.2e+117) (/ (/ x a) y) (/ x (* a (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 2e-256) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= 5.2e+117) {
tmp = (x / a) / 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 <= 2d-256) then
tmp = ((x / y) - ((x * b) / y)) / a
else if (b <= 5.2d+117) then
tmp = (x / a) / 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 <= 2e-256) {
tmp = ((x / y) - ((x * b) / y)) / a;
} else if (b <= 5.2e+117) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 2e-256: tmp = ((x / y) - ((x * b) / y)) / a elif b <= 5.2e+117: tmp = (x / a) / y else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 2e-256) tmp = Float64(Float64(Float64(x / y) - Float64(Float64(x * b) / y)) / a); elseif (b <= 5.2e+117) tmp = Float64(Float64(x / a) / 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 <= 2e-256) tmp = ((x / y) - ((x * b) / y)) / a; elseif (b <= 5.2e+117) tmp = (x / a) / y; else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 2e-256], N[(N[(N[(x / y), $MachinePrecision] - N[(N[(x * b), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 5.2e+117], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 2 \cdot 10^{-256}:\\
\;\;\;\;\frac{\frac{x}{y} - \frac{x \cdot b}{y}}{a}\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{+117}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.99999999999999995e-256Initial program 97.1%
associate-/l*98.6%
exp-diff80.2%
associate-/l/80.2%
exp-sum70.0%
times-frac70.0%
*-commutative70.0%
exp-to-pow70.0%
*-commutative70.0%
exp-to-pow70.6%
sub-neg70.6%
metadata-eval70.6%
Simplified70.6%
Taylor expanded in y around 0 64.8%
associate-/l*67.1%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 56.7%
Taylor expanded in b around 0 39.8%
Taylor expanded in a around 0 44.8%
if 1.99999999999999995e-256 < b < 5.1999999999999999e117Initial program 99.5%
Taylor expanded in t around 0 77.9%
+-commutative77.9%
mul-1-neg77.9%
unsub-neg77.9%
Simplified77.9%
Taylor expanded in b around 0 64.8%
div-exp64.8%
*-commutative64.8%
exp-to-pow64.8%
rem-exp-log65.1%
Simplified65.1%
Taylor expanded in y around 0 27.4%
if 5.1999999999999999e117 < b Initial program 100.0%
associate-/l*100.0%
exp-diff63.2%
associate-/l/63.2%
exp-sum57.9%
times-frac57.9%
*-commutative57.9%
exp-to-pow57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
Simplified57.9%
Taylor expanded in y around 0 65.8%
associate-/l*71.1%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around 0 89.6%
Taylor expanded in b around 0 61.8%
distribute-lft-out61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in b around inf 61.8%
*-commutative61.8%
Simplified61.8%
Final simplification41.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t -8.6e-23) (/ (/ x a) y) (* (/ x y) (/ 1.0 a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -8.6e-23) {
tmp = (x / a) / y;
} else {
tmp = (x / y) * (1.0 / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-8.6d-23)) then
tmp = (x / a) / y
else
tmp = (x / y) * (1.0d0 / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -8.6e-23) {
tmp = (x / a) / y;
} else {
tmp = (x / y) * (1.0 / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -8.6e-23: tmp = (x / a) / y else: tmp = (x / y) * (1.0 / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -8.6e-23) tmp = Float64(Float64(x / a) / y); else tmp = Float64(Float64(x / y) * Float64(1.0 / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -8.6e-23) tmp = (x / a) / y; else tmp = (x / y) * (1.0 / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -8.6e-23], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.6 \cdot 10^{-23}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\end{array}
\end{array}
if t < -8.60000000000000004e-23Initial program 99.8%
Taylor expanded in t around 0 80.8%
+-commutative80.8%
mul-1-neg80.8%
unsub-neg80.8%
Simplified80.8%
Taylor expanded in b around 0 71.5%
div-exp71.5%
*-commutative71.5%
exp-to-pow71.5%
rem-exp-log71.5%
Simplified71.5%
Taylor expanded in y around 0 35.2%
if -8.60000000000000004e-23 < t Initial program 97.7%
associate-/l*98.4%
exp-diff78.8%
associate-/l/78.8%
exp-sum71.2%
times-frac71.2%
*-commutative71.2%
exp-to-pow71.2%
*-commutative71.2%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
Simplified71.7%
Taylor expanded in y around 0 65.9%
associate-/l*68.8%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in t around 0 58.9%
Taylor expanded in b around 0 27.6%
*-commutative27.6%
Simplified27.6%
*-rgt-identity27.6%
times-frac30.6%
Applied egg-rr30.6%
Final simplification31.9%
(FPCore (x y z t a b) :precision binary64 (if (<= t -8.5e-23) (/ 1.0 (* y (/ a x))) (* (/ x y) (/ 1.0 a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -8.5e-23) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = (x / y) * (1.0 / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-8.5d-23)) then
tmp = 1.0d0 / (y * (a / x))
else
tmp = (x / y) * (1.0d0 / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -8.5e-23) {
tmp = 1.0 / (y * (a / x));
} else {
tmp = (x / y) * (1.0 / a);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -8.5e-23: tmp = 1.0 / (y * (a / x)) else: tmp = (x / y) * (1.0 / a) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -8.5e-23) tmp = Float64(1.0 / Float64(y * Float64(a / x))); else tmp = Float64(Float64(x / y) * Float64(1.0 / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -8.5e-23) tmp = 1.0 / (y * (a / x)); else tmp = (x / y) * (1.0 / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -8.5e-23], N[(1.0 / N[(y * N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8.5 \cdot 10^{-23}:\\
\;\;\;\;\frac{1}{y \cdot \frac{a}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\end{array}
\end{array}
if t < -8.4999999999999996e-23Initial program 99.8%
associate-/l*99.8%
exp-diff80.4%
associate-/l/80.4%
exp-sum62.3%
times-frac62.3%
*-commutative62.3%
exp-to-pow62.3%
*-commutative62.3%
exp-to-pow62.3%
sub-neg62.3%
metadata-eval62.3%
Simplified62.3%
Taylor expanded in b around 0 68.0%
associate-/l*68.0%
*-commutative68.0%
exp-to-pow68.0%
sub-neg68.0%
metadata-eval68.0%
associate-/l*68.0%
Simplified68.0%
Taylor expanded in t around 0 59.3%
associate-/r*62.1%
Simplified62.1%
Taylor expanded in y around 0 24.8%
div-inv24.8%
*-commutative24.8%
clear-num24.8%
associate-/l*36.5%
Applied egg-rr36.5%
if -8.4999999999999996e-23 < t Initial program 97.7%
associate-/l*98.4%
exp-diff78.8%
associate-/l/78.8%
exp-sum71.2%
times-frac71.2%
*-commutative71.2%
exp-to-pow71.2%
*-commutative71.2%
exp-to-pow71.7%
sub-neg71.7%
metadata-eval71.7%
Simplified71.7%
Taylor expanded in y around 0 65.9%
associate-/l*68.8%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in t around 0 58.9%
Taylor expanded in b around 0 27.6%
*-commutative27.6%
Simplified27.6%
*-rgt-identity27.6%
times-frac30.6%
Applied egg-rr30.6%
Final simplification32.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b 1.3e+115) (* (/ x y) (/ 1.0 a)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.3e+115) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= 1.3d+115) then
tmp = (x / y) * (1.0d0 / a)
else
tmp = x / (a * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 1.3e+115) {
tmp = (x / y) * (1.0 / a);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 1.3e+115: tmp = (x / y) * (1.0 / a) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 1.3e+115) tmp = Float64(Float64(x / y) * Float64(1.0 / a)); else tmp = Float64(x / Float64(a * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= 1.3e+115) tmp = (x / y) * (1.0 / a); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 1.3e+115], N[(N[(x / y), $MachinePrecision] * N[(1.0 / a), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 1.3 \cdot 10^{+115}:\\
\;\;\;\;\frac{x}{y} \cdot \frac{1}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 1.3e115Initial program 98.0%
associate-/l*98.6%
exp-diff82.0%
associate-/l/82.0%
exp-sum70.6%
times-frac70.6%
*-commutative70.6%
exp-to-pow70.6%
*-commutative70.6%
exp-to-pow71.0%
sub-neg71.0%
metadata-eval71.0%
Simplified71.0%
Taylor expanded in y around 0 64.8%
associate-/l*66.3%
exp-to-pow66.7%
sub-neg66.7%
metadata-eval66.7%
Simplified66.7%
Taylor expanded in t around 0 51.0%
Taylor expanded in b around 0 28.5%
*-commutative28.5%
Simplified28.5%
*-rgt-identity28.5%
times-frac31.3%
Applied egg-rr31.3%
if 1.3e115 < b Initial program 100.0%
associate-/l*100.0%
exp-diff63.2%
associate-/l/63.2%
exp-sum57.9%
times-frac57.9%
*-commutative57.9%
exp-to-pow57.9%
*-commutative57.9%
exp-to-pow57.9%
sub-neg57.9%
metadata-eval57.9%
Simplified57.9%
Taylor expanded in y around 0 65.8%
associate-/l*71.1%
exp-to-pow71.1%
sub-neg71.1%
metadata-eval71.1%
Simplified71.1%
Taylor expanded in t around 0 89.6%
Taylor expanded in b around 0 61.8%
distribute-lft-out61.8%
*-commutative61.8%
Simplified61.8%
Taylor expanded in b around inf 61.8%
*-commutative61.8%
Simplified61.8%
Final simplification35.8%
(FPCore (x y z t a b) :precision binary64 (if (<= t -1e-22) (/ (/ x a) y) (/ (/ x y) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1e-22) {
tmp = (x / a) / y;
} else {
tmp = (x / y) / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (t <= (-1d-22)) then
tmp = (x / a) / y
else
tmp = (x / y) / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -1e-22) {
tmp = (x / a) / y;
} else {
tmp = (x / y) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -1e-22: tmp = (x / a) / y else: tmp = (x / y) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -1e-22) tmp = Float64(Float64(x / a) / y); else tmp = Float64(Float64(x / y) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -1e-22) tmp = (x / a) / y; else tmp = (x / y) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -1e-22], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x / y), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-22}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x}{y}}{a}\\
\end{array}
\end{array}
if t < -1e-22Initial program 99.8%
Taylor expanded in t around 0 80.8%
+-commutative80.8%
mul-1-neg80.8%
unsub-neg80.8%
Simplified80.8%
Taylor expanded in b around 0 71.5%
div-exp71.5%
*-commutative71.5%
exp-to-pow71.5%
rem-exp-log71.5%
Simplified71.5%
Taylor expanded in y around 0 35.2%
if -1e-22 < t Initial program 97.7%
Taylor expanded in t around 0 83.3%
+-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
Simplified83.3%
Taylor expanded in b around 0 60.1%
div-exp60.1%
*-commutative60.1%
exp-to-pow60.2%
rem-exp-log60.7%
Simplified60.7%
Taylor expanded in x around 0 51.6%
*-commutative51.6%
times-frac57.9%
Simplified57.9%
Taylor expanded in y around 0 27.6%
associate-/l/30.6%
Simplified30.6%
Final simplification31.9%
(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.8%
exp-diff79.2%
associate-/l/79.2%
exp-sum68.7%
times-frac68.7%
*-commutative68.7%
exp-to-pow68.7%
*-commutative68.7%
exp-to-pow69.1%
sub-neg69.1%
metadata-eval69.1%
Simplified69.1%
Taylor expanded in y around 0 65.0%
associate-/l*67.0%
exp-to-pow67.3%
sub-neg67.3%
metadata-eval67.3%
Simplified67.3%
Taylor expanded in t around 0 56.8%
Taylor expanded in b around 0 26.8%
*-commutative26.8%
Simplified26.8%
Final simplification26.8%
(FPCore (x y z t a b) :precision binary64 (/ (/ x a) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / 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 / a) / y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return (x / a) / y;
}
def code(x, y, z, t, a, b): return (x / a) / y
function code(x, y, z, t, a, b) return Float64(Float64(x / a) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x / a) / y; end
code[x_, y_, z_, t_, a_, b_] := N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{a}}{y}
\end{array}
Initial program 98.3%
Taylor expanded in t around 0 82.6%
+-commutative82.6%
mul-1-neg82.6%
unsub-neg82.6%
Simplified82.6%
Taylor expanded in b around 0 63.3%
div-exp63.3%
*-commutative63.3%
exp-to-pow63.3%
rem-exp-log63.7%
Simplified63.7%
Taylor expanded in y around 0 28.5%
Final simplification28.5%
(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 2024039
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(if (< t -0.8845848504127471) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z)))) (if (< t 852031.2288374073) (/ (* (/ x y) (pow a (- t 1.0))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1.0)) y)) (- (+ b 1.0) (* y (log z))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))