
(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 28 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)) (- (* (log a) t) (log a))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + ((log(a) * t) - 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)) + ((log(a) * t) - 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)) + ((Math.log(a) * t) - Math.log(a))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + ((math.log(a) * t) - 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(log(a) * t) - log(a))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + ((log(a) * t) - 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[(N[Log[a], $MachinePrecision] * t), $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(\log a \cdot t - \log a\right)\right) - b}}{y}
\end{array}
Initial program 97.4%
sub-neg97.4%
metadata-eval97.4%
*-commutative97.4%
distribute-lft-in97.4%
Applied egg-rr97.4%
Final simplification97.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= (+ t -1.0) -1e+216) (not (<= (+ t -1.0) 400000000.0))) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y) (/ (* x (exp (- (- (* y (log z)) (log a)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+216) || !((t + -1.0) <= 400000000.0)) {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (((t + (-1.0d0)) <= (-1d+216)) .or. (.not. ((t + (-1.0d0)) <= 400000000.0d0))) then
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
else
tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((t + -1.0) <= -1e+216) || !((t + -1.0) <= 400000000.0)) {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * Math.exp((((y * Math.log(z)) - Math.log(a)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if ((t + -1.0) <= -1e+216) or not ((t + -1.0) <= 400000000.0): tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y else: tmp = (x * math.exp((((y * math.log(z)) - math.log(a)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((Float64(t + -1.0) <= -1e+216) || !(Float64(t + -1.0) <= 400000000.0)) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) - log(a)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (((t + -1.0) <= -1e+216) || ~(((t + -1.0) <= 400000000.0))) tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; else tmp = (x * exp((((y * log(z)) - log(a)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[N[(t + -1.0), $MachinePrecision], -1e+216], N[Not[LessEqual[N[(t + -1.0), $MachinePrecision], 400000000.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[(y * N[Log[z], $MachinePrecision]), $MachinePrecision] - N[Log[a], $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t + -1 \leq -1 \cdot 10^{+216} \lor \neg \left(t + -1 \leq 400000000\right):\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\left(y \cdot \log z - \log a\right) - b}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -1e216 or 4e8 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
Taylor expanded in y around 0 98.8%
if -1e216 < (-.f64 t #s(literal 1 binary64)) < 4e8Initial program 96.2%
Taylor expanded in t around 0 93.4%
+-commutative93.4%
mul-1-neg93.4%
unsub-neg93.4%
Simplified93.4%
Final simplification95.2%
(FPCore (x y z t a b) :precision binary64 (/ (* x (exp (- (+ (* y (log z)) (* (log a) (+ t -1.0))) b))) y))
double code(double x, double y, double z, double t, double a, double b) {
return (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - 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)) + (log(a) * (t + (-1.0d0)))) - 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)) + (Math.log(a) * (t + -1.0))) - b))) / y;
}
def code(x, y, z, t, a, b): return (x * math.exp((((y * math.log(z)) + (math.log(a) * (t + -1.0))) - b))) / y
function code(x, y, z, t, a, b) return Float64(Float64(x * exp(Float64(Float64(Float64(y * log(z)) + Float64(log(a) * Float64(t + -1.0))) - b))) / y) end
function tmp = code(x, y, z, t, a, b) tmp = (x * exp((((y * log(z)) + (log(a) * (t + -1.0))) - 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[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot e^{\left(y \cdot \log z + \log a \cdot \left(t + -1\right)\right) - b}}{y}
\end{array}
Initial program 97.4%
Final simplification97.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= (+ t -1.0) -2e+170)
(* x (/ (pow a t) y))
(if (<= (+ t -1.0) -0.9999999998)
(/ (* x (pow z y)) (* 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 + -1.0) <= -2e+170) {
tmp = x * (pow(a, t) / y);
} else if ((t + -1.0) <= -0.9999999998) {
tmp = (x * pow(z, y)) / (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 + (-1.0d0)) <= (-2d+170)) then
tmp = x * ((a ** t) / y)
else if ((t + (-1.0d0)) <= (-0.9999999998d0)) then
tmp = (x * (z ** y)) / (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 + -1.0) <= -2e+170) {
tmp = x * (Math.pow(a, t) / y);
} else if ((t + -1.0) <= -0.9999999998) {
tmp = (x * Math.pow(z, y)) / (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 + -1.0) <= -2e+170: tmp = x * (math.pow(a, t) / y) elif (t + -1.0) <= -0.9999999998: tmp = (x * math.pow(z, y)) / (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 (Float64(t + -1.0) <= -2e+170) tmp = Float64(x * Float64((a ^ t) / y)); elseif (Float64(t + -1.0) <= -0.9999999998) tmp = Float64(Float64(x * (z ^ y)) / 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 + -1.0) <= -2e+170) tmp = x * ((a ^ t) / y); elseif ((t + -1.0) <= -0.9999999998) tmp = (x * (z ^ y)) / (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[N[(t + -1.0), $MachinePrecision], -2e+170], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(t + -1.0), $MachinePrecision], -0.9999999998], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / 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 + -1 \leq -2 \cdot 10^{+170}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{elif}\;t + -1 \leq -0.9999999998:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if (-.f64 t #s(literal 1 binary64)) < -2.00000000000000007e170Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum84.4%
associate-/l*84.4%
*-commutative84.4%
exp-to-pow84.4%
exp-diff56.3%
*-commutative56.3%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
Simplified56.3%
Taylor expanded in y around 0 62.5%
associate-/l*62.5%
associate-/r*62.5%
exp-to-pow62.5%
sub-neg62.5%
metadata-eval62.5%
Simplified62.5%
Taylor expanded in b around 0 87.7%
exp-to-pow87.7%
sub-neg87.7%
metadata-eval87.7%
+-commutative87.7%
Simplified87.7%
Taylor expanded in t around inf 87.7%
if -2.00000000000000007e170 < (-.f64 t #s(literal 1 binary64)) < -0.9999999998Initial program 95.9%
associate-/l*96.4%
associate--l+96.4%
exp-sum80.6%
associate-/l*79.4%
*-commutative79.4%
exp-to-pow79.4%
exp-diff74.4%
*-commutative74.4%
exp-to-pow75.5%
sub-neg75.5%
metadata-eval75.5%
Simplified75.5%
Taylor expanded in t around 0 81.8%
if -0.9999999998 < (-.f64 t #s(literal 1 binary64)) Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum80.0%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff64.6%
*-commutative64.6%
exp-to-pow64.6%
sub-neg64.6%
metadata-eval64.6%
Simplified64.6%
Taylor expanded in y around 0 78.5%
associate-/l*78.5%
associate-/r*78.5%
exp-to-pow78.5%
sub-neg78.5%
metadata-eval78.5%
Simplified78.5%
Taylor expanded in b around 0 87.9%
exp-to-pow87.9%
sub-neg87.9%
metadata-eval87.9%
+-commutative87.9%
Simplified87.9%
Final simplification84.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.38e-14) (not (<= b 5500000000000.0))) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y) (/ (* x (* (pow z y) (/ (pow a t) a))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.38e-14) || !(b <= 5500000000000.0)) {
tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * (pow(z, y) * (pow(a, t) / 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 <= (-1.38d-14)) .or. (.not. (b <= 5500000000000.0d0))) then
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - b))) / y
else
tmp = (x * ((z ** y) * ((a ** t) / 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 <= -1.38e-14) || !(b <= 5500000000000.0)) {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
} else {
tmp = (x * (Math.pow(z, y) * (Math.pow(a, t) / a))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.38e-14) or not (b <= 5500000000000.0): tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y else: tmp = (x * (math.pow(z, y) * (math.pow(a, t) / a))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.38e-14) || !(b <= 5500000000000.0)) tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); else tmp = Float64(Float64(x * Float64((z ^ y) * Float64((a ^ t) / a))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((b <= -1.38e-14) || ~((b <= 5500000000000.0))) tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; else tmp = (x * ((z ^ y) * ((a ^ t) / a))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.38e-14], N[Not[LessEqual[b, 5500000000000.0]], $MachinePrecision]], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] * N[(N[Power[a, t], $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.38 \cdot 10^{-14} \lor \neg \left(b \leq 5500000000000\right):\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot \left({z}^{y} \cdot \frac{{a}^{t}}{a}\right)}{y}\\
\end{array}
\end{array}
if b < -1.38000000000000002e-14 or 5.5e12 < b Initial program 99.8%
Taylor expanded in y around 0 91.2%
if -1.38000000000000002e-14 < b < 5.5e12Initial program 94.7%
Taylor expanded in b around 0 94.5%
exp-sum89.4%
*-commutative89.4%
exp-to-pow89.4%
exp-to-pow90.6%
sub-neg90.6%
metadata-eval90.6%
Simplified90.6%
unpow-prod-up90.7%
unpow-190.7%
Applied egg-rr90.7%
associate-*r/90.7%
*-rgt-identity90.7%
Simplified90.7%
Final simplification91.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -5.7e+229) (not (<= y 6e+139))) (/ (/ (* x (pow z y)) a) y) (/ (* x (exp (- (* (log a) (+ t -1.0)) b))) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -5.7e+229) || !(y <= 6e+139)) {
tmp = ((x * pow(z, y)) / a) / y;
} else {
tmp = (x * exp(((log(a) * (t + -1.0)) - 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 <= (-5.7d+229)) .or. (.not. (y <= 6d+139))) then
tmp = ((x * (z ** y)) / a) / y
else
tmp = (x * exp(((log(a) * (t + (-1.0d0))) - 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 <= -5.7e+229) || !(y <= 6e+139)) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else {
tmp = (x * Math.exp(((Math.log(a) * (t + -1.0)) - b))) / y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -5.7e+229) or not (y <= 6e+139): tmp = ((x * math.pow(z, y)) / a) / y else: tmp = (x * math.exp(((math.log(a) * (t + -1.0)) - b))) / y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -5.7e+229) || !(y <= 6e+139)) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); else tmp = Float64(Float64(x * exp(Float64(Float64(log(a) * Float64(t + -1.0)) - b))) / y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -5.7e+229) || ~((y <= 6e+139))) tmp = ((x * (z ^ y)) / a) / y; else tmp = (x * exp(((log(a) * (t + -1.0)) - b))) / y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -5.7e+229], N[Not[LessEqual[y, 6e+139]], $MachinePrecision]], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], N[(N[(x * N[Exp[N[(N[(N[Log[a], $MachinePrecision] * N[(t + -1.0), $MachinePrecision]), $MachinePrecision] - b), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.7 \cdot 10^{+229} \lor \neg \left(y \leq 6 \cdot 10^{+139}\right):\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot e^{\log a \cdot \left(t + -1\right) - b}}{y}\\
\end{array}
\end{array}
if y < -5.69999999999999947e229 or 5.9999999999999999e139 < y Initial program 100.0%
Taylor expanded in b around 0 92.0%
exp-sum79.7%
*-commutative79.7%
exp-to-pow79.7%
exp-to-pow79.7%
sub-neg79.7%
metadata-eval79.7%
Simplified79.7%
Taylor expanded in t around 0 92.0%
if -5.69999999999999947e229 < y < 5.9999999999999999e139Initial program 96.8%
Taylor expanded in y around 0 90.7%
Final simplification91.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= t -8.1e+164)
(* x (/ (pow a t) y))
(if (<= t 2.9e-10)
(/ (* x (/ (pow z y) (* y (exp b)))) a)
(* 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 <= -8.1e+164) {
tmp = x * (pow(a, t) / y);
} else if (t <= 2.9e-10) {
tmp = (x * (pow(z, y) / (y * exp(b)))) / a;
} 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 <= (-8.1d+164)) then
tmp = x * ((a ** t) / y)
else if (t <= 2.9d-10) then
tmp = (x * ((z ** y) / (y * exp(b)))) / a
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 <= -8.1e+164) {
tmp = x * (Math.pow(a, t) / y);
} else if (t <= 2.9e-10) {
tmp = (x * (Math.pow(z, y) / (y * Math.exp(b)))) / a;
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -8.1e+164: tmp = x * (math.pow(a, t) / y) elif t <= 2.9e-10: tmp = (x * (math.pow(z, y) / (y * math.exp(b)))) / a 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 <= -8.1e+164) tmp = Float64(x * Float64((a ^ t) / y)); elseif (t <= 2.9e-10) tmp = Float64(Float64(x * Float64((z ^ y) / Float64(y * exp(b)))) / a); 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 <= -8.1e+164) tmp = x * ((a ^ t) / y); elseif (t <= 2.9e-10) tmp = (x * ((z ^ y) / (y * exp(b)))) / a; else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -8.1e+164], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.9e-10], N[(N[(x * N[(N[Power[z, y], $MachinePrecision] / N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $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 -8.1 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-10}:\\
\;\;\;\;\frac{x \cdot \frac{{z}^{y}}{y \cdot e^{b}}}{a}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\end{array}
\end{array}
if t < -8.09999999999999966e164Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum84.4%
associate-/l*84.4%
*-commutative84.4%
exp-to-pow84.4%
exp-diff56.3%
*-commutative56.3%
exp-to-pow56.3%
sub-neg56.3%
metadata-eval56.3%
Simplified56.3%
Taylor expanded in y around 0 62.5%
associate-/l*62.5%
associate-/r*62.5%
exp-to-pow62.5%
sub-neg62.5%
metadata-eval62.5%
Simplified62.5%
Taylor expanded in b around 0 87.7%
exp-to-pow87.7%
sub-neg87.7%
metadata-eval87.7%
+-commutative87.7%
Simplified87.7%
Taylor expanded in t around inf 87.7%
if -8.09999999999999966e164 < t < 2.89999999999999981e-10Initial program 95.9%
associate-/l*96.4%
associate--l+96.4%
exp-sum80.6%
associate-/l*79.4%
*-commutative79.4%
exp-to-pow79.4%
exp-diff74.4%
*-commutative74.4%
exp-to-pow75.5%
sub-neg75.5%
metadata-eval75.5%
Simplified75.5%
Taylor expanded in t around 0 81.8%
*-commutative81.8%
*-commutative81.8%
times-frac75.0%
Simplified75.0%
associate-*r/83.7%
Applied egg-rr83.7%
if 2.89999999999999981e-10 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum80.0%
associate-/l*80.0%
*-commutative80.0%
exp-to-pow80.0%
exp-diff64.6%
*-commutative64.6%
exp-to-pow64.6%
sub-neg64.6%
metadata-eval64.6%
Simplified64.6%
Taylor expanded in y around 0 78.5%
associate-/l*78.5%
associate-/r*78.5%
exp-to-pow78.5%
sub-neg78.5%
metadata-eval78.5%
Simplified78.5%
Taylor expanded in b around 0 87.9%
exp-to-pow87.9%
sub-neg87.9%
metadata-eval87.9%
+-commutative87.9%
Simplified87.9%
Final simplification85.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* x (/ (pow a (+ t -1.0)) y))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -8.2e+85)
t_2
(if (<= b -8.4e-229)
t_1
(if (<= b 1.4e-83)
(/ (/ (* x (pow z y)) a) y)
(if (<= b 2.7e+28) 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);
double t_2 = x / (a * (y * exp(b)));
double tmp;
if (b <= -8.2e+85) {
tmp = t_2;
} else if (b <= -8.4e-229) {
tmp = t_1;
} else if (b <= 1.4e-83) {
tmp = ((x * pow(z, y)) / a) / y;
} else if (b <= 2.7e+28) {
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)
t_2 = x / (a * (y * exp(b)))
if (b <= (-8.2d+85)) then
tmp = t_2
else if (b <= (-8.4d-229)) then
tmp = t_1
else if (b <= 1.4d-83) then
tmp = ((x * (z ** y)) / a) / y
else if (b <= 2.7d+28) 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);
double t_2 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -8.2e+85) {
tmp = t_2;
} else if (b <= -8.4e-229) {
tmp = t_1;
} else if (b <= 1.4e-83) {
tmp = ((x * Math.pow(z, y)) / a) / y;
} else if (b <= 2.7e+28) {
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) t_2 = x / (a * (y * math.exp(b))) tmp = 0 if b <= -8.2e+85: tmp = t_2 elif b <= -8.4e-229: tmp = t_1 elif b <= 1.4e-83: tmp = ((x * math.pow(z, y)) / a) / y elif b <= 2.7e+28: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)) t_2 = Float64(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -8.2e+85) tmp = t_2; elseif (b <= -8.4e-229) tmp = t_1; elseif (b <= 1.4e-83) tmp = Float64(Float64(Float64(x * (z ^ y)) / a) / y); elseif (b <= 2.7e+28) 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); t_2 = x / (a * (y * exp(b))); tmp = 0.0; if (b <= -8.2e+85) tmp = t_2; elseif (b <= -8.4e-229) tmp = t_1; elseif (b <= 1.4e-83) tmp = ((x * (z ^ y)) / a) / y; elseif (b <= 2.7e+28) 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[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.2e+85], t$95$2, If[LessEqual[b, -8.4e-229], t$95$1, If[LessEqual[b, 1.4e-83], N[(N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.7e+28], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -8.2 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8.4 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-83}:\\
\;\;\;\;\frac{\frac{x \cdot {z}^{y}}{a}}{y}\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -8.19999999999999957e85 or 2.7000000000000002e28 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff56.6%
*-commutative56.6%
exp-to-pow56.6%
sub-neg56.6%
metadata-eval56.6%
Simplified56.6%
Taylor expanded in y around 0 67.3%
associate-/l*72.6%
associate-/r*65.6%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 88.7%
if -8.19999999999999957e85 < b < -8.39999999999999934e-229 or 1.4e-83 < b < 2.7000000000000002e28Initial program 93.8%
associate-/l*96.6%
associate--l+96.6%
exp-sum85.3%
associate-/l*84.2%
*-commutative84.2%
exp-to-pow84.2%
exp-diff78.6%
*-commutative78.6%
exp-to-pow79.9%
sub-neg79.9%
metadata-eval79.9%
Simplified79.9%
Taylor expanded in y around 0 69.6%
associate-/l*71.2%
associate-/r*70.1%
exp-to-pow71.3%
sub-neg71.3%
metadata-eval71.3%
Simplified71.3%
Taylor expanded in b around 0 78.2%
exp-to-pow79.3%
sub-neg79.3%
metadata-eval79.3%
+-commutative79.3%
Simplified79.3%
if -8.39999999999999934e-229 < b < 1.4e-83Initial program 98.1%
Taylor expanded in b around 0 98.1%
exp-sum87.0%
*-commutative87.0%
exp-to-pow87.0%
exp-to-pow88.5%
sub-neg88.5%
metadata-eval88.5%
Simplified88.5%
Taylor expanded in t around 0 90.5%
Final simplification85.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ x (* a (* y (exp b))))))
(if (<= b -2.4e+85)
t_1
(if (<= b -8.3e-162)
(/ (/ (* x (pow a t)) a) y)
(if (<= b 2.9e-84)
(/ (* x (pow z y)) (* y a))
(if (<= b 1.06e+27) (* x (/ (pow a (+ t -1.0)) y)) 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 <= -2.4e+85) {
tmp = t_1;
} else if (b <= -8.3e-162) {
tmp = ((x * pow(a, t)) / a) / y;
} else if (b <= 2.9e-84) {
tmp = (x * pow(z, y)) / (y * a);
} else if (b <= 1.06e+27) {
tmp = x * (pow(a, (t + -1.0)) / y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x / (a * (y * exp(b)))
if (b <= (-2.4d+85)) then
tmp = t_1
else if (b <= (-8.3d-162)) then
tmp = ((x * (a ** t)) / a) / y
else if (b <= 2.9d-84) then
tmp = (x * (z ** y)) / (y * a)
else if (b <= 1.06d+27) then
tmp = x * ((a ** (t + (-1.0d0))) / y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x / (a * (y * Math.exp(b)));
double tmp;
if (b <= -2.4e+85) {
tmp = t_1;
} else if (b <= -8.3e-162) {
tmp = ((x * Math.pow(a, t)) / a) / y;
} else if (b <= 2.9e-84) {
tmp = (x * Math.pow(z, y)) / (y * a);
} else if (b <= 1.06e+27) {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
} 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 <= -2.4e+85: tmp = t_1 elif b <= -8.3e-162: tmp = ((x * math.pow(a, t)) / a) / y elif b <= 2.9e-84: tmp = (x * math.pow(z, y)) / (y * a) elif b <= 1.06e+27: tmp = x * (math.pow(a, (t + -1.0)) / y) 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 <= -2.4e+85) tmp = t_1; elseif (b <= -8.3e-162) tmp = Float64(Float64(Float64(x * (a ^ t)) / a) / y); elseif (b <= 2.9e-84) tmp = Float64(Float64(x * (z ^ y)) / Float64(y * a)); elseif (b <= 1.06e+27) tmp = Float64(x * Float64((a ^ Float64(t + -1.0)) / y)); 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 <= -2.4e+85) tmp = t_1; elseif (b <= -8.3e-162) tmp = ((x * (a ^ t)) / a) / y; elseif (b <= 2.9e-84) tmp = (x * (z ^ y)) / (y * a); elseif (b <= 1.06e+27) tmp = x * ((a ^ (t + -1.0)) / y); 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, -2.4e+85], t$95$1, If[LessEqual[b, -8.3e-162], N[(N[(N[(x * N[Power[a, t], $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 2.9e-84], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.06e+27], N[(x * N[(N[Power[a, N[(t + -1.0), $MachinePrecision]], $MachinePrecision] / y), $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 -2.4 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8.3 \cdot 10^{-162}:\\
\;\;\;\;\frac{\frac{x \cdot {a}^{t}}{a}}{y}\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-84}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{y \cdot a}\\
\mathbf{elif}\;b \leq 1.06 \cdot 10^{+27}:\\
\;\;\;\;x \cdot \frac{{a}^{\left(t + -1\right)}}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.39999999999999997e85 or 1.05999999999999994e27 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff56.6%
*-commutative56.6%
exp-to-pow56.6%
sub-neg56.6%
metadata-eval56.6%
Simplified56.6%
Taylor expanded in y around 0 67.3%
associate-/l*72.6%
associate-/r*65.6%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 88.7%
if -2.39999999999999997e85 < b < -8.2999999999999998e-162Initial program 97.0%
Taylor expanded in b around 0 91.9%
exp-sum84.2%
*-commutative84.2%
exp-to-pow84.2%
exp-to-pow84.9%
sub-neg84.9%
metadata-eval84.9%
Simplified84.9%
unpow-prod-up84.9%
unpow-184.9%
Applied egg-rr84.9%
associate-*r/84.9%
*-rgt-identity84.9%
Simplified84.9%
Taylor expanded in y around 0 79.6%
if -8.2999999999999998e-162 < b < 2.90000000000000019e-84Initial program 94.6%
associate-/l*95.6%
associate--l+95.6%
exp-sum87.2%
associate-/l*85.7%
*-commutative85.7%
exp-to-pow85.7%
exp-diff85.7%
*-commutative85.7%
exp-to-pow87.4%
sub-neg87.4%
metadata-eval87.4%
Simplified87.4%
Taylor expanded in t around 0 79.3%
*-commutative79.3%
*-commutative79.3%
times-frac73.8%
Simplified73.8%
Taylor expanded in b around 0 79.3%
if 2.90000000000000019e-84 < b < 1.05999999999999994e27Initial program 94.3%
associate-/l*98.6%
associate--l+98.6%
exp-sum78.6%
associate-/l*78.6%
*-commutative78.6%
exp-to-pow78.6%
exp-diff73.8%
*-commutative73.8%
exp-to-pow75.0%
sub-neg75.0%
metadata-eval75.0%
Simplified75.0%
Taylor expanded in y around 0 64.8%
associate-/l*69.0%
associate-/r*69.0%
exp-to-pow70.2%
sub-neg70.2%
metadata-eval70.2%
Simplified70.2%
Taylor expanded in b around 0 82.5%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
+-commutative83.4%
Simplified83.4%
Final simplification83.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (pow a (+ t -1.0))) (t_2 (/ x (* a (* y (exp b))))))
(if (<= b -2.1e+85)
t_2
(if (<= b -1.02e-156)
(/ (* x t_1) y)
(if (<= b 1e-84)
(/ (* x (pow z y)) (* y a))
(if (<= b 5.6e+26) (* x (/ t_1 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 / (a * (y * exp(b)));
double tmp;
if (b <= -2.1e+85) {
tmp = t_2;
} else if (b <= -1.02e-156) {
tmp = (x * t_1) / y;
} else if (b <= 1e-84) {
tmp = (x * pow(z, y)) / (y * a);
} else if (b <= 5.6e+26) {
tmp = x * (t_1 / 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 / (a * (y * exp(b)))
if (b <= (-2.1d+85)) then
tmp = t_2
else if (b <= (-1.02d-156)) then
tmp = (x * t_1) / y
else if (b <= 1d-84) then
tmp = (x * (z ** y)) / (y * a)
else if (b <= 5.6d+26) then
tmp = x * (t_1 / 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 / (a * (y * Math.exp(b)));
double tmp;
if (b <= -2.1e+85) {
tmp = t_2;
} else if (b <= -1.02e-156) {
tmp = (x * t_1) / y;
} else if (b <= 1e-84) {
tmp = (x * Math.pow(z, y)) / (y * a);
} else if (b <= 5.6e+26) {
tmp = x * (t_1 / 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 / (a * (y * math.exp(b))) tmp = 0 if b <= -2.1e+85: tmp = t_2 elif b <= -1.02e-156: tmp = (x * t_1) / y elif b <= 1e-84: tmp = (x * math.pow(z, y)) / (y * a) elif b <= 5.6e+26: tmp = x * (t_1 / 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(x / Float64(a * Float64(y * exp(b)))) tmp = 0.0 if (b <= -2.1e+85) tmp = t_2; elseif (b <= -1.02e-156) tmp = Float64(Float64(x * t_1) / y); elseif (b <= 1e-84) tmp = Float64(Float64(x * (z ^ y)) / Float64(y * a)); elseif (b <= 5.6e+26) tmp = Float64(x * Float64(t_1 / 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 / (a * (y * exp(b))); tmp = 0.0; if (b <= -2.1e+85) tmp = t_2; elseif (b <= -1.02e-156) tmp = (x * t_1) / y; elseif (b <= 1e-84) tmp = (x * (z ^ y)) / (y * a); elseif (b <= 5.6e+26) tmp = x * (t_1 / 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[(x / N[(a * N[(y * N[Exp[b], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.1e+85], t$95$2, If[LessEqual[b, -1.02e-156], N[(N[(x * t$95$1), $MachinePrecision] / y), $MachinePrecision], If[LessEqual[b, 1e-84], N[(N[(x * N[Power[z, y], $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e+26], N[(x * N[(t$95$1 / y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := {a}^{\left(t + -1\right)}\\
t_2 := \frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\mathbf{if}\;b \leq -2.1 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.02 \cdot 10^{-156}:\\
\;\;\;\;\frac{x \cdot t\_1}{y}\\
\mathbf{elif}\;b \leq 10^{-84}:\\
\;\;\;\;\frac{x \cdot {z}^{y}}{y \cdot a}\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{+26}:\\
\;\;\;\;x \cdot \frac{t\_1}{y}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -2.1000000000000001e85 or 5.59999999999999999e26 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff56.6%
*-commutative56.6%
exp-to-pow56.6%
sub-neg56.6%
metadata-eval56.6%
Simplified56.6%
Taylor expanded in y around 0 67.3%
associate-/l*72.6%
associate-/r*65.6%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 88.7%
if -2.1000000000000001e85 < b < -1.02e-156Initial program 97.0%
Taylor expanded in b around 0 91.9%
exp-sum84.2%
*-commutative84.2%
exp-to-pow84.2%
exp-to-pow84.9%
sub-neg84.9%
metadata-eval84.9%
Simplified84.9%
Taylor expanded in y around 0 78.9%
exp-to-pow79.6%
sub-neg79.6%
metadata-eval79.6%
+-commutative79.6%
Simplified79.6%
if -1.02e-156 < b < 1e-84Initial program 94.6%
associate-/l*95.6%
associate--l+95.6%
exp-sum87.2%
associate-/l*85.7%
*-commutative85.7%
exp-to-pow85.7%
exp-diff85.7%
*-commutative85.7%
exp-to-pow87.4%
sub-neg87.4%
metadata-eval87.4%
Simplified87.4%
Taylor expanded in t around 0 79.3%
*-commutative79.3%
*-commutative79.3%
times-frac73.8%
Simplified73.8%
Taylor expanded in b around 0 79.3%
if 1e-84 < b < 5.59999999999999999e26Initial program 94.3%
associate-/l*98.6%
associate--l+98.6%
exp-sum78.6%
associate-/l*78.6%
*-commutative78.6%
exp-to-pow78.6%
exp-diff73.8%
*-commutative73.8%
exp-to-pow75.0%
sub-neg75.0%
metadata-eval75.0%
Simplified75.0%
Taylor expanded in y around 0 64.8%
associate-/l*69.0%
associate-/r*69.0%
exp-to-pow70.2%
sub-neg70.2%
metadata-eval70.2%
Simplified70.2%
Taylor expanded in b around 0 82.5%
exp-to-pow83.4%
sub-neg83.4%
metadata-eval83.4%
+-commutative83.4%
Simplified83.4%
Final simplification83.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.46e+84) (not (<= b 5.8e+26))) (/ x (* a (* y (exp b)))) (* x (/ (pow a (+ t -1.0)) y))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.46e+84) || !(b <= 5.8e+26)) {
tmp = x / (a * (y * exp(b)));
} else {
tmp = x * (pow(a, (t + -1.0)) / y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((b <= (-1.46d+84)) .or. (.not. (b <= 5.8d+26))) then
tmp = x / (a * (y * exp(b)))
else
tmp = x * ((a ** (t + (-1.0d0))) / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.46e+84) || !(b <= 5.8e+26)) {
tmp = x / (a * (y * Math.exp(b)));
} else {
tmp = x * (Math.pow(a, (t + -1.0)) / y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (b <= -1.46e+84) or not (b <= 5.8e+26): tmp = x / (a * (y * math.exp(b))) else: tmp = x * (math.pow(a, (t + -1.0)) / y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.46e+84) || !(b <= 5.8e+26)) 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 ((b <= -1.46e+84) || ~((b <= 5.8e+26))) tmp = x / (a * (y * exp(b))); else tmp = x * ((a ^ (t + -1.0)) / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.46e+84], N[Not[LessEqual[b, 5.8e+26]], $MachinePrecision]], 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}\;b \leq -1.46 \cdot 10^{+84} \lor \neg \left(b \leq 5.8 \cdot 10^{+26}\right):\\
\;\;\;\;\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 b < -1.46e84 or 5.8e26 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum76.1%
associate-/l*76.1%
*-commutative76.1%
exp-to-pow76.1%
exp-diff56.6%
*-commutative56.6%
exp-to-pow56.6%
sub-neg56.6%
metadata-eval56.6%
Simplified56.6%
Taylor expanded in y around 0 67.3%
associate-/l*72.6%
associate-/r*65.6%
exp-to-pow65.6%
sub-neg65.6%
metadata-eval65.6%
Simplified65.6%
Taylor expanded in t around 0 88.7%
if -1.46e84 < b < 5.8e26Initial program 95.4%
associate-/l*96.0%
associate--l+96.0%
exp-sum84.8%
associate-/l*83.4%
*-commutative83.4%
exp-to-pow83.4%
exp-diff79.9%
*-commutative79.9%
exp-to-pow81.2%
sub-neg81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 68.8%
associate-/l*68.6%
associate-/r*67.9%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in b around 0 73.0%
exp-to-pow74.2%
sub-neg74.2%
metadata-eval74.2%
+-commutative74.2%
Simplified74.2%
Final simplification80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -1.6e+67) (not (<= t 1.48e+32))) (* x (/ (pow a t) y)) (/ (/ (/ x (exp b)) y) a)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.6e+67) || !(t <= 1.48e+32)) {
tmp = x * (pow(a, t) / y);
} else {
tmp = ((x / exp(b)) / 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 <= (-1.6d+67)) .or. (.not. (t <= 1.48d+32))) then
tmp = x * ((a ** t) / y)
else
tmp = ((x / exp(b)) / 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 <= -1.6e+67) || !(t <= 1.48e+32)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = ((x / Math.exp(b)) / y) / a;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.6e+67) or not (t <= 1.48e+32): tmp = x * (math.pow(a, t) / y) else: tmp = ((x / math.exp(b)) / y) / a return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.6e+67) || !(t <= 1.48e+32)) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(Float64(Float64(x / exp(b)) / y) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.6e+67) || ~((t <= 1.48e+32))) tmp = x * ((a ^ t) / y); else tmp = ((x / exp(b)) / y) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.6e+67], N[Not[LessEqual[t, 1.48e+32]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x / N[Exp[b], $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] / a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.6 \cdot 10^{+67} \lor \neg \left(t \leq 1.48 \cdot 10^{+32}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{\frac{x}{e^{b}}}{y}}{a}\\
\end{array}
\end{array}
if t < -1.59999999999999991e67 or 1.4799999999999999e32 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.9%
associate-/l*82.9%
*-commutative82.9%
exp-to-pow82.9%
exp-diff64.8%
*-commutative64.8%
exp-to-pow64.8%
sub-neg64.8%
metadata-eval64.8%
Simplified64.8%
Taylor expanded in y around 0 74.3%
associate-/l*74.3%
associate-/r*74.3%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in b around 0 87.8%
exp-to-pow87.8%
sub-neg87.8%
metadata-eval87.8%
+-commutative87.8%
Simplified87.8%
Taylor expanded in t around inf 87.8%
if -1.59999999999999991e67 < t < 1.4799999999999999e32Initial program 95.7%
associate-/l*96.2%
associate--l+96.2%
exp-sum79.6%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff73.0%
*-commutative73.0%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in t around 0 80.1%
*-commutative80.1%
*-commutative80.1%
times-frac73.0%
Simplified73.0%
associate-*r/82.1%
Applied egg-rr82.1%
Taylor expanded in y around 0 73.5%
*-commutative73.5%
associate-/r*73.6%
Simplified73.6%
Final simplification79.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.9e+66) (not (<= t 1.75e+33))) (* x (/ (pow a t) y)) (/ x (* a (* y (exp b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.9e+66) || !(t <= 1.75e+33)) {
tmp = x * (pow(a, t) / 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 <= (-2.9d+66)) .or. (.not. (t <= 1.75d+33))) then
tmp = x * ((a ** t) / 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 <= -2.9e+66) || !(t <= 1.75e+33)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = x / (a * (y * Math.exp(b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -2.9e+66) or not (t <= 1.75e+33): tmp = x * (math.pow(a, t) / y) else: tmp = x / (a * (y * math.exp(b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.9e+66) || !(t <= 1.75e+33)) tmp = Float64(x * Float64((a ^ t) / 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 <= -2.9e+66) || ~((t <= 1.75e+33))) tmp = x * ((a ^ t) / y); else tmp = x / (a * (y * exp(b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.9e+66], N[Not[LessEqual[t, 1.75e+33]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $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 -2.9 \cdot 10^{+66} \lor \neg \left(t \leq 1.75 \cdot 10^{+33}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot e^{b}\right)}\\
\end{array}
\end{array}
if t < -2.89999999999999986e66 or 1.75000000000000005e33 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum82.9%
associate-/l*82.9%
*-commutative82.9%
exp-to-pow82.9%
exp-diff64.8%
*-commutative64.8%
exp-to-pow64.8%
sub-neg64.8%
metadata-eval64.8%
Simplified64.8%
Taylor expanded in y around 0 74.3%
associate-/l*74.3%
associate-/r*74.3%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in b around 0 87.8%
exp-to-pow87.8%
sub-neg87.8%
metadata-eval87.8%
+-commutative87.8%
Simplified87.8%
Taylor expanded in t around inf 87.8%
if -2.89999999999999986e66 < t < 1.75000000000000005e33Initial program 95.7%
associate-/l*96.2%
associate--l+96.2%
exp-sum79.6%
associate-/l*78.3%
*-commutative78.3%
exp-to-pow78.3%
exp-diff73.0%
*-commutative73.0%
exp-to-pow74.3%
sub-neg74.3%
metadata-eval74.3%
Simplified74.3%
Taylor expanded in y around 0 63.8%
associate-/l*67.7%
associate-/r*61.7%
exp-to-pow62.9%
sub-neg62.9%
metadata-eval62.9%
Simplified62.9%
Taylor expanded in t around 0 72.9%
Final simplification79.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= t -1.5e+23) (not (<= t 3.9e-13)))
(* x (/ (pow a t) y))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -1.5e+23) || !(t <= 3.9e-13)) {
tmp = x * (pow(a, t) / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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.5d+23)) .or. (.not. (t <= 3.9d-13))) then
tmp = x * ((a ** t) / y)
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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.5e+23) || !(t <= 3.9e-13)) {
tmp = x * (Math.pow(a, t) / y);
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -1.5e+23) or not (t <= 3.9e-13): tmp = x * (math.pow(a, t) / y) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -1.5e+23) || !(t <= 3.9e-13)) tmp = Float64(x * Float64((a ^ t) / y)); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -1.5e+23) || ~((t <= 3.9e-13))) tmp = x * ((a ^ t) / y); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -1.5e+23], N[Not[LessEqual[t, 3.9e-13]], $MachinePrecision]], N[(x * N[(N[Power[a, t], $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.5 \cdot 10^{+23} \lor \neg \left(t \leq 3.9 \cdot 10^{-13}\right):\\
\;\;\;\;x \cdot \frac{{a}^{t}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if t < -1.5e23 or 3.90000000000000004e-13 < t Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum81.6%
associate-/l*81.6%
*-commutative81.6%
exp-to-pow81.6%
exp-diff61.6%
*-commutative61.6%
exp-to-pow61.6%
sub-neg61.6%
metadata-eval61.6%
Simplified61.6%
Taylor expanded in y around 0 70.5%
associate-/l*71.3%
associate-/r*70.5%
exp-to-pow70.5%
sub-neg70.5%
metadata-eval70.5%
Simplified70.5%
Taylor expanded in b around 0 82.7%
exp-to-pow82.7%
sub-neg82.7%
metadata-eval82.7%
+-commutative82.7%
Simplified82.7%
Taylor expanded in t around inf 82.7%
if -1.5e23 < t < 3.90000000000000004e-13Initial program 95.0%
associate-/l*95.6%
associate--l+95.6%
exp-sum80.3%
associate-/l*78.8%
*-commutative78.8%
exp-to-pow78.8%
exp-diff77.3%
*-commutative77.3%
exp-to-pow78.7%
sub-neg78.7%
metadata-eval78.7%
Simplified78.7%
Taylor expanded in y around 0 65.9%
associate-/l*69.6%
associate-/r*63.5%
exp-to-pow64.9%
sub-neg64.9%
metadata-eval64.9%
Simplified64.9%
Taylor expanded in t around 0 72.5%
Taylor expanded in b around 0 55.1%
*-commutative55.1%
Simplified55.1%
Final simplification68.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5e-26)
(/
(*
x
(+
(/ 1.0 y)
(*
b
(+
(* b (+ (* -0.16666666666666666 (/ b y)) (* 0.5 (/ 1.0 y))))
(/ -1.0 y)))))
a)
(if (<= b 62000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-26) {
tmp = (x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y))))) / a;
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 <= (-5d-26)) then
tmp = (x * ((1.0d0 / y) + (b * ((b * (((-0.16666666666666666d0) * (b / y)) + (0.5d0 * (1.0d0 / y)))) + ((-1.0d0) / y))))) / a
else if (b <= 62000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 <= -5e-26) {
tmp = (x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y))))) / a;
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5e-26: tmp = (x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y))))) / a elif b <= 62000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5e-26) tmp = Float64(Float64(x * Float64(Float64(1.0 / y) + Float64(b * Float64(Float64(b * Float64(Float64(-0.16666666666666666 * Float64(b / y)) + Float64(0.5 * Float64(1.0 / y)))) + Float64(-1.0 / y))))) / a); elseif (b <= 62000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5e-26) tmp = (x * ((1.0 / y) + (b * ((b * ((-0.16666666666666666 * (b / y)) + (0.5 * (1.0 / y)))) + (-1.0 / y))))) / a; elseif (b <= 62000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5e-26], N[(N[(x * N[(N[(1.0 / y), $MachinePrecision] + N[(b * N[(N[(b * N[(N[(-0.16666666666666666 * N[(b / y), $MachinePrecision]), $MachinePrecision] + N[(0.5 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[b, 62000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-26}:\\
\;\;\;\;\frac{x \cdot \left(\frac{1}{y} + b \cdot \left(b \cdot \left(-0.16666666666666666 \cdot \frac{b}{y} + 0.5 \cdot \frac{1}{y}\right) + \frac{-1}{y}\right)\right)}{a}\\
\mathbf{elif}\;b \leq 62000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -5.00000000000000019e-26Initial program 99.6%
associate-/l*98.5%
associate--l+98.5%
exp-sum73.1%
associate-/l*73.1%
*-commutative73.1%
exp-to-pow73.1%
exp-diff47.7%
*-commutative47.7%
exp-to-pow47.9%
sub-neg47.9%
metadata-eval47.9%
Simplified47.9%
Taylor expanded in t around 0 64.4%
*-commutative64.4%
*-commutative64.4%
times-frac55.3%
Simplified55.3%
Taylor expanded in y around 0 64.5%
Taylor expanded in b around 0 60.2%
Taylor expanded in x around 0 69.2%
if -5.00000000000000019e-26 < b < 62000Initial program 94.6%
associate-/l*95.9%
associate--l+95.9%
exp-sum90.8%
associate-/l*89.1%
*-commutative89.1%
exp-to-pow89.1%
exp-diff88.3%
*-commutative88.3%
exp-to-pow89.8%
sub-neg89.8%
metadata-eval89.8%
Simplified89.8%
Taylor expanded in y around 0 73.1%
associate-/l*72.7%
associate-/r*72.7%
exp-to-pow74.2%
sub-neg74.2%
metadata-eval74.2%
Simplified74.2%
Taylor expanded in t around 0 48.5%
Taylor expanded in b around 0 48.5%
Taylor expanded in b around inf 44.8%
associate-/l*55.7%
distribute-lft-out59.1%
Simplified59.1%
if 62000 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
associate-/l*75.1%
associate-/r*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification65.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5e-63)
(*
(+
(/ 1.0 y)
(* b (+ (* b (/ (+ 0.5 (* b -0.16666666666666666)) y)) (/ -1.0 y))))
(/ x a))
(if (<= b 300000000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-63) {
tmp = ((1.0 / y) + (b * ((b * ((0.5 + (b * -0.16666666666666666)) / y)) + (-1.0 / y)))) * (x / a);
} else if (b <= 300000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 <= (-5d-63)) then
tmp = ((1.0d0 / y) + (b * ((b * ((0.5d0 + (b * (-0.16666666666666666d0))) / y)) + ((-1.0d0) / y)))) * (x / a)
else if (b <= 300000000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 <= -5e-63) {
tmp = ((1.0 / y) + (b * ((b * ((0.5 + (b * -0.16666666666666666)) / y)) + (-1.0 / y)))) * (x / a);
} else if (b <= 300000000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5e-63: tmp = ((1.0 / y) + (b * ((b * ((0.5 + (b * -0.16666666666666666)) / y)) + (-1.0 / y)))) * (x / a) elif b <= 300000000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5e-63) tmp = Float64(Float64(Float64(1.0 / y) + Float64(b * Float64(Float64(b * Float64(Float64(0.5 + Float64(b * -0.16666666666666666)) / y)) + Float64(-1.0 / y)))) * Float64(x / a)); elseif (b <= 300000000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5e-63) tmp = ((1.0 / y) + (b * ((b * ((0.5 + (b * -0.16666666666666666)) / y)) + (-1.0 / y)))) * (x / a); elseif (b <= 300000000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5e-63], N[(N[(N[(1.0 / y), $MachinePrecision] + N[(b * N[(N[(b * N[(N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + N[(-1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 300000000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-63}:\\
\;\;\;\;\left(\frac{1}{y} + b \cdot \left(b \cdot \frac{0.5 + b \cdot -0.16666666666666666}{y} + \frac{-1}{y}\right)\right) \cdot \frac{x}{a}\\
\mathbf{elif}\;b \leq 300000000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -5.0000000000000002e-63Initial program 99.6%
associate-/l*98.6%
associate--l+98.6%
exp-sum76.8%
associate-/l*76.8%
*-commutative76.8%
exp-to-pow76.8%
exp-diff55.0%
*-commutative55.0%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 68.2%
*-commutative68.2%
*-commutative68.2%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 65.8%
Taylor expanded in b around 0 62.1%
Taylor expanded in y around 0 62.1%
associate-/l*62.1%
*-commutative62.1%
Simplified62.1%
if -5.0000000000000002e-63 < b < 3e8Initial program 94.1%
associate-/l*95.6%
associate--l+95.6%
exp-sum89.9%
associate-/l*88.0%
*-commutative88.0%
exp-to-pow88.0%
exp-diff87.1%
*-commutative87.1%
exp-to-pow88.7%
sub-neg88.7%
metadata-eval88.7%
Simplified88.7%
Taylor expanded in y around 0 71.3%
associate-/l*73.6%
associate-/r*73.6%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in t around 0 48.6%
Taylor expanded in b around 0 48.6%
Taylor expanded in b around inf 45.5%
associate-/l*55.7%
distribute-lft-out58.5%
Simplified58.5%
if 3e8 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
associate-/l*75.1%
associate-/r*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification63.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -7.4e-66)
(*
(/ x a)
(+
(/ 1.0 y)
(/ (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666))))) y)))
(if (<= b 250000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.4e-66) {
tmp = (x / a) * ((1.0 / y) + ((b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))) / y));
} else if (b <= 250000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-7.4d-66)) then
tmp = (x / a) * ((1.0d0 / y) + ((b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))) / y))
else if (b <= 250000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -7.4e-66) {
tmp = (x / a) * ((1.0 / y) + ((b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))) / y));
} else if (b <= 250000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -7.4e-66: tmp = (x / a) * ((1.0 / y) + ((b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))) / y)) elif b <= 250000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -7.4e-66) tmp = Float64(Float64(x / a) * Float64(Float64(1.0 / y) + Float64(Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))) / y))); elseif (b <= 250000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -7.4e-66) tmp = (x / a) * ((1.0 / y) + ((b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))) / y)); elseif (b <= 250000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -7.4e-66], N[(N[(x / a), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] + N[(N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 250000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -7.4 \cdot 10^{-66}:\\
\;\;\;\;\frac{x}{a} \cdot \left(\frac{1}{y} + \frac{b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)}{y}\right)\\
\mathbf{elif}\;b \leq 250000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -7.4000000000000004e-66Initial program 99.6%
associate-/l*98.6%
associate--l+98.6%
exp-sum76.8%
associate-/l*76.8%
*-commutative76.8%
exp-to-pow76.8%
exp-diff55.0%
*-commutative55.0%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 68.2%
*-commutative68.2%
*-commutative68.2%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 65.8%
Taylor expanded in b around 0 62.1%
Taylor expanded in y around 0 62.1%
if -7.4000000000000004e-66 < b < 2.5e5Initial program 94.1%
associate-/l*95.6%
associate--l+95.6%
exp-sum89.9%
associate-/l*88.0%
*-commutative88.0%
exp-to-pow88.0%
exp-diff87.1%
*-commutative87.1%
exp-to-pow88.7%
sub-neg88.7%
metadata-eval88.7%
Simplified88.7%
Taylor expanded in y around 0 71.3%
associate-/l*73.6%
associate-/r*73.6%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in t around 0 48.6%
Taylor expanded in b around 0 48.6%
Taylor expanded in b around inf 45.5%
associate-/l*55.7%
distribute-lft-out58.5%
Simplified58.5%
if 2.5e5 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
associate-/l*75.1%
associate-/r*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification63.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1e-8)
(/
(* x (+ 1.0 (* b (+ -1.0 (* b (+ 0.5 (* b -0.16666666666666666)))))))
(* y a))
(if (<= b 520000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1e-8) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / (y * a);
} else if (b <= 520000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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 <= (-1d-8)) then
tmp = (x * (1.0d0 + (b * ((-1.0d0) + (b * (0.5d0 + (b * (-0.16666666666666666d0)))))))) / (y * a)
else if (b <= 520000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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 <= -1e-8) {
tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / (y * a);
} else if (b <= 520000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -1e-8: tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / (y * a) elif b <= 520000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1e-8) tmp = Float64(Float64(x * Float64(1.0 + Float64(b * Float64(-1.0 + Float64(b * Float64(0.5 + Float64(b * -0.16666666666666666))))))) / Float64(y * a)); elseif (b <= 520000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -1e-8) tmp = (x * (1.0 + (b * (-1.0 + (b * (0.5 + (b * -0.16666666666666666))))))) / (y * a); elseif (b <= 520000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1e-8], N[(N[(x * N[(1.0 + N[(b * N[(-1.0 + N[(b * N[(0.5 + N[(b * -0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(y * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 520000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{-8}:\\
\;\;\;\;\frac{x \cdot \left(1 + b \cdot \left(-1 + b \cdot \left(0.5 + b \cdot -0.16666666666666666\right)\right)\right)}{y \cdot a}\\
\mathbf{elif}\;b \leq 520000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -1e-8Initial program 99.8%
associate-/l*99.8%
associate--l+99.8%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.5%
sub-neg48.5%
metadata-eval48.5%
Simplified48.5%
Taylor expanded in t around 0 65.2%
*-commutative65.2%
*-commutative65.2%
times-frac54.6%
Simplified54.6%
Taylor expanded in y around 0 64.0%
Taylor expanded in b around 0 59.7%
Taylor expanded in y around 0 59.6%
if -1e-8 < b < 5.2e5Initial program 94.6%
associate-/l*95.2%
associate--l+95.2%
exp-sum90.1%
associate-/l*88.4%
*-commutative88.4%
exp-to-pow88.4%
exp-diff87.6%
*-commutative87.6%
exp-to-pow89.1%
sub-neg89.1%
metadata-eval89.1%
Simplified89.1%
Taylor expanded in y around 0 73.2%
associate-/l*72.2%
associate-/r*72.2%
exp-to-pow73.7%
sub-neg73.7%
metadata-eval73.7%
Simplified73.7%
Taylor expanded in t around 0 48.2%
Taylor expanded in b around 0 48.2%
Taylor expanded in b around inf 44.6%
associate-/l*55.3%
distribute-lft-out58.7%
Simplified58.7%
if 5.2e5 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
associate-/l*75.1%
associate-/r*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification62.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -2.65e-68)
(* (/ x a) (+ (/ 1.0 y) (* b (- (* 0.5 (/ b y)) (/ 1.0 y)))))
(if (<= b 1100000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/
x
(*
a
(* y (+ 1.0 (* b (+ 1.0 (* b (+ 0.5 (* b 0.16666666666666666))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -2.65e-68) {
tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y))));
} else if (b <= 1100000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
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.65d-68)) then
tmp = (x / a) * ((1.0d0 / y) + (b * ((0.5d0 * (b / y)) - (1.0d0 / y))))
else if (b <= 1100000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * (0.5d0 + (b * 0.16666666666666666d0))))))))
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.65e-68) {
tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y))));
} else if (b <= 1100000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -2.65e-68: tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y)))) elif b <= 1100000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -2.65e-68) tmp = Float64(Float64(x / a) * Float64(Float64(1.0 / y) + Float64(b * Float64(Float64(0.5 * Float64(b / y)) - Float64(1.0 / y))))); elseif (b <= 1100000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * Float64(0.5 + Float64(b * 0.16666666666666666))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -2.65e-68) tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y)))); elseif (b <= 1100000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * (0.5 + (b * 0.16666666666666666)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -2.65e-68], N[(N[(x / a), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] + N[(b * N[(N[(0.5 * N[(b / y), $MachinePrecision]), $MachinePrecision] - N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1100000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * N[(0.5 + N[(b * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.65 \cdot 10^{-68}:\\
\;\;\;\;\frac{x}{a} \cdot \left(\frac{1}{y} + b \cdot \left(0.5 \cdot \frac{b}{y} - \frac{1}{y}\right)\right)\\
\mathbf{elif}\;b \leq 1100000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot \left(0.5 + b \cdot 0.16666666666666666\right)\right)\right)\right)}\\
\end{array}
\end{array}
if b < -2.65e-68Initial program 99.6%
associate-/l*98.6%
associate--l+98.6%
exp-sum76.8%
associate-/l*76.8%
*-commutative76.8%
exp-to-pow76.8%
exp-diff55.0%
*-commutative55.0%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 68.2%
*-commutative68.2%
*-commutative68.2%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 65.8%
Taylor expanded in b around 0 58.5%
if -2.65e-68 < b < 1.1e6Initial program 94.1%
associate-/l*95.6%
associate--l+95.6%
exp-sum89.9%
associate-/l*88.0%
*-commutative88.0%
exp-to-pow88.0%
exp-diff87.1%
*-commutative87.1%
exp-to-pow88.7%
sub-neg88.7%
metadata-eval88.7%
Simplified88.7%
Taylor expanded in y around 0 71.3%
associate-/l*73.6%
associate-/r*73.6%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in t around 0 48.6%
Taylor expanded in b around 0 48.6%
Taylor expanded in b around inf 45.5%
associate-/l*55.7%
distribute-lft-out58.5%
Simplified58.5%
if 1.1e6 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
associate-/l*75.1%
associate-/r*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification62.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -4.4e-68)
(* (/ x a) (+ (/ 1.0 y) (* b (- (* 0.5 (/ b y)) (/ 1.0 y)))))
(if (<= b 62000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.4e-68) {
tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y))));
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4.4d-68)) then
tmp = (x / a) * ((1.0d0 / y) + (b * ((0.5d0 * (b / y)) - (1.0d0 / y))))
else if (b <= 62000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.4e-68) {
tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y))));
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.4e-68: tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y)))) elif b <= 62000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.4e-68) tmp = Float64(Float64(x / a) * Float64(Float64(1.0 / y) + Float64(b * Float64(Float64(0.5 * Float64(b / y)) - Float64(1.0 / y))))); elseif (b <= 62000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.4e-68) tmp = (x / a) * ((1.0 / y) + (b * ((0.5 * (b / y)) - (1.0 / y)))); elseif (b <= 62000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.4e-68], N[(N[(x / a), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] + N[(b * N[(N[(0.5 * N[(b / y), $MachinePrecision]), $MachinePrecision] - N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 62000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.4 \cdot 10^{-68}:\\
\;\;\;\;\frac{x}{a} \cdot \left(\frac{1}{y} + b \cdot \left(0.5 \cdot \frac{b}{y} - \frac{1}{y}\right)\right)\\
\mathbf{elif}\;b \leq 62000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -4.40000000000000005e-68Initial program 99.6%
associate-/l*98.6%
associate--l+98.6%
exp-sum76.8%
associate-/l*76.8%
*-commutative76.8%
exp-to-pow76.8%
exp-diff55.0%
*-commutative55.0%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 68.2%
*-commutative68.2%
*-commutative68.2%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 65.8%
Taylor expanded in b around 0 58.5%
if -4.40000000000000005e-68 < b < 62000Initial program 94.1%
associate-/l*95.6%
associate--l+95.6%
exp-sum89.9%
associate-/l*88.0%
*-commutative88.0%
exp-to-pow88.0%
exp-diff87.1%
*-commutative87.1%
exp-to-pow88.7%
sub-neg88.7%
metadata-eval88.7%
Simplified88.7%
Taylor expanded in y around 0 71.3%
associate-/l*73.6%
associate-/r*73.6%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in t around 0 48.6%
Taylor expanded in b around 0 48.6%
Taylor expanded in b around inf 45.5%
associate-/l*55.7%
distribute-lft-out58.5%
Simplified58.5%
if 62000 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
associate-/l*75.1%
associate-/r*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 69.0%
*-commutative69.0%
Simplified69.0%
Final simplification61.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -5e-68)
(* (/ x a) (- (/ 1.0 y) (/ b y)))
(if (<= b 62000.0)
(/ x (* b (* a (+ y (/ y b)))))
(/ x (* a (* y (+ 1.0 (* b (+ 1.0 (* b 0.5))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-68) {
tmp = (x / a) * ((1.0 / y) - (b / y));
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-5d-68)) then
tmp = (x / a) * ((1.0d0 / y) - (b / y))
else if (b <= 62000.0d0) then
tmp = x / (b * (a * (y + (y / b))))
else
tmp = x / (a * (y * (1.0d0 + (b * (1.0d0 + (b * 0.5d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -5e-68) {
tmp = (x / a) * ((1.0 / y) - (b / y));
} else if (b <= 62000.0) {
tmp = x / (b * (a * (y + (y / b))));
} else {
tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -5e-68: tmp = (x / a) * ((1.0 / y) - (b / y)) elif b <= 62000.0: tmp = x / (b * (a * (y + (y / b)))) else: tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -5e-68) tmp = Float64(Float64(x / a) * Float64(Float64(1.0 / y) - Float64(b / y))); elseif (b <= 62000.0) tmp = Float64(x / Float64(b * Float64(a * Float64(y + Float64(y / b))))); else tmp = Float64(x / Float64(a * Float64(y * Float64(1.0 + Float64(b * Float64(1.0 + Float64(b * 0.5))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -5e-68) tmp = (x / a) * ((1.0 / y) - (b / y)); elseif (b <= 62000.0) tmp = x / (b * (a * (y + (y / b)))); else tmp = x / (a * (y * (1.0 + (b * (1.0 + (b * 0.5)))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -5e-68], N[(N[(x / a), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] - N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 62000.0], N[(x / N[(b * N[(a * N[(y + N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(1.0 + N[(b * N[(1.0 + N[(b * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5 \cdot 10^{-68}:\\
\;\;\;\;\frac{x}{a} \cdot \left(\frac{1}{y} - \frac{b}{y}\right)\\
\mathbf{elif}\;b \leq 62000:\\
\;\;\;\;\frac{x}{b \cdot \left(a \cdot \left(y + \frac{y}{b}\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(1 + b \cdot \left(1 + b \cdot 0.5\right)\right)\right)}\\
\end{array}
\end{array}
if b < -4.99999999999999971e-68Initial program 99.6%
associate-/l*98.6%
associate--l+98.6%
exp-sum76.8%
associate-/l*76.8%
*-commutative76.8%
exp-to-pow76.8%
exp-diff55.0%
*-commutative55.0%
exp-to-pow55.2%
sub-neg55.2%
metadata-eval55.2%
Simplified55.2%
Taylor expanded in t around 0 68.2%
*-commutative68.2%
*-commutative68.2%
times-frac60.3%
Simplified60.3%
Taylor expanded in y around 0 65.8%
Taylor expanded in b around 0 43.7%
+-commutative43.7%
mul-1-neg43.7%
unsub-neg43.7%
Simplified43.7%
if -4.99999999999999971e-68 < b < 62000Initial program 94.1%
associate-/l*95.6%
associate--l+95.6%
exp-sum89.9%
associate-/l*88.0%
*-commutative88.0%
exp-to-pow88.0%
exp-diff87.1%
*-commutative87.1%
exp-to-pow88.7%
sub-neg88.7%
metadata-eval88.7%
Simplified88.7%
Taylor expanded in y around 0 71.3%
associate-/l*73.6%
associate-/r*73.6%
exp-to-pow75.2%
sub-neg75.2%
metadata-eval75.2%
Simplified75.2%
Taylor expanded in t around 0 48.6%
Taylor expanded in b around 0 48.6%
Taylor expanded in b around inf 45.5%
associate-/l*55.7%
distribute-lft-out58.5%
Simplified58.5%
if 62000 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum72.2%
associate-/l*72.2%
*-commutative72.2%
exp-to-pow72.2%
exp-diff59.7%
*-commutative59.7%
exp-to-pow59.7%
sub-neg59.7%
metadata-eval59.7%
Simplified59.7%
Taylor expanded in y around 0 68.2%
associate-/l*75.1%
associate-/r*65.4%
exp-to-pow65.4%
sub-neg65.4%
metadata-eval65.4%
Simplified65.4%
Taylor expanded in t around 0 86.3%
Taylor expanded in b around 0 69.0%
*-commutative69.0%
Simplified69.0%
Final simplification57.0%
(FPCore (x y z t a b) :precision binary64 (if (<= b -320000000.0) (* (/ x (* y a)) (- (- -1.0) b)) (if (<= b -1.5e-146) (/ (/ x a) y) (/ x (* a (* y (+ b 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -320000000.0) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} else if (b <= -1.5e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-320000000.0d0)) then
tmp = (x / (y * a)) * (-(-1.0d0) - b)
else if (b <= (-1.5d-146)) then
tmp = (x / a) / y
else
tmp = x / (a * (y * (b + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -320000000.0) {
tmp = (x / (y * a)) * (-(-1.0) - b);
} else if (b <= -1.5e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -320000000.0: tmp = (x / (y * a)) * (-(-1.0) - b) elif b <= -1.5e-146: tmp = (x / a) / y else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -320000000.0) tmp = Float64(Float64(x / Float64(y * a)) * Float64(Float64(-(-1.0)) - b)); elseif (b <= -1.5e-146) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -320000000.0) tmp = (x / (y * a)) * (-(-1.0) - b); elseif (b <= -1.5e-146) tmp = (x / a) / y; else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -320000000.0], N[(N[(x / N[(y * a), $MachinePrecision]), $MachinePrecision] * N[((--1.0) - b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.5e-146], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -320000000:\\
\;\;\;\;\frac{x}{y \cdot a} \cdot \left(\left(--1\right) - b\right)\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-146}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -3.2e8Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum75.4%
associate-/l*75.4%
*-commutative75.4%
exp-to-pow75.4%
exp-diff49.2%
*-commutative49.2%
exp-to-pow49.2%
sub-neg49.2%
metadata-eval49.2%
Simplified49.2%
Taylor expanded in y around 0 57.5%
associate-/l*60.8%
associate-/r*57.4%
exp-to-pow57.4%
sub-neg57.4%
metadata-eval57.4%
Simplified57.4%
Taylor expanded in t around 0 79.0%
Taylor expanded in b around 0 17.4%
Taylor expanded in b around 0 36.6%
mul-1-neg36.6%
remove-double-neg36.6%
distribute-neg-out36.6%
associate-/l*35.4%
mul-1-neg35.4%
distribute-rgt-out35.4%
Simplified35.4%
if -3.2e8 < b < -1.50000000000000009e-146Initial program 95.5%
associate-/l*93.2%
associate--l+93.2%
exp-sum87.5%
associate-/l*84.7%
*-commutative84.7%
exp-to-pow84.7%
exp-diff81.8%
*-commutative81.8%
exp-to-pow83.1%
sub-neg83.1%
metadata-eval83.1%
Simplified83.1%
Taylor expanded in y around 0 87.1%
associate-/l*76.6%
associate-/r*76.6%
exp-to-pow77.9%
sub-neg77.9%
metadata-eval77.9%
Simplified77.9%
Taylor expanded in t around 0 49.9%
Taylor expanded in b around 0 48.1%
associate-/r*61.0%
Simplified61.0%
if -1.50000000000000009e-146 < b Initial program 96.9%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.8%
*-commutative74.8%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in y around 0 68.1%
associate-/l*72.7%
associate-/r*68.4%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 43.1%
distribute-rgt1-in43.1%
Simplified43.1%
Final simplification43.7%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4e+29) (* x (/ 1.0 (* y a))) (if (<= b -1.55e-146) (/ (/ x a) y) (/ x (* a (* y (+ b 1.0)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e+29) {
tmp = x * (1.0 / (y * a));
} else if (b <= -1.55e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4d+29)) then
tmp = x * (1.0d0 / (y * a))
else if (b <= (-1.55d-146)) then
tmp = (x / a) / y
else
tmp = x / (a * (y * (b + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4e+29) {
tmp = x * (1.0 / (y * a));
} else if (b <= -1.55e-146) {
tmp = (x / a) / y;
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4e+29: tmp = x * (1.0 / (y * a)) elif b <= -1.55e-146: tmp = (x / a) / y else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4e+29) tmp = Float64(x * Float64(1.0 / Float64(y * a))); elseif (b <= -1.55e-146) tmp = Float64(Float64(x / a) / y); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4e+29) tmp = x * (1.0 / (y * a)); elseif (b <= -1.55e-146) tmp = (x / a) / y; else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4e+29], N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.55e-146], N[(N[(x / a), $MachinePrecision] / y), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{+29}:\\
\;\;\;\;x \cdot \frac{1}{y \cdot a}\\
\mathbf{elif}\;b \leq -1.55 \cdot 10^{-146}:\\
\;\;\;\;\frac{\frac{x}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -3.99999999999999966e29Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum74.1%
associate-/l*74.1%
*-commutative74.1%
exp-to-pow74.1%
exp-diff48.3%
*-commutative48.3%
exp-to-pow48.3%
sub-neg48.3%
metadata-eval48.3%
Simplified48.3%
Taylor expanded in y around 0 57.0%
associate-/l*60.5%
associate-/r*56.9%
exp-to-pow56.9%
sub-neg56.9%
metadata-eval56.9%
Simplified56.9%
Taylor expanded in b around 0 54.6%
exp-to-pow54.6%
sub-neg54.6%
metadata-eval54.6%
+-commutative54.6%
Simplified54.6%
Taylor expanded in t around 0 28.1%
if -3.99999999999999966e29 < b < -1.5499999999999999e-146Initial program 95.8%
associate-/l*93.8%
associate--l+93.8%
exp-sum88.5%
associate-/l*85.9%
*-commutative85.9%
exp-to-pow85.9%
exp-diff80.6%
*-commutative80.6%
exp-to-pow81.8%
sub-neg81.8%
metadata-eval81.8%
Simplified81.8%
Taylor expanded in y around 0 85.5%
associate-/l*75.8%
associate-/r*75.8%
exp-to-pow77.0%
sub-neg77.0%
metadata-eval77.0%
Simplified77.0%
Taylor expanded in t around 0 51.3%
Taylor expanded in b around 0 47.3%
associate-/r*59.2%
Simplified59.2%
if -1.5499999999999999e-146 < b Initial program 96.9%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.8%
*-commutative74.8%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in y around 0 68.1%
associate-/l*72.7%
associate-/r*68.4%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 43.1%
distribute-rgt1-in43.1%
Simplified43.1%
Final simplification42.1%
(FPCore (x y z t a b) :precision binary64 (if (<= b -3.1e-146) (* (/ x a) (- (/ 1.0 y) (/ b 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 <= -3.1e-146) {
tmp = (x / a) * ((1.0 / y) - (b / 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 <= (-3.1d-146)) then
tmp = (x / a) * ((1.0d0 / y) - (b / 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 <= -3.1e-146) {
tmp = (x / a) * ((1.0 / y) - (b / y));
} else {
tmp = x / (a * (b * (y + (y / b))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -3.1e-146: tmp = (x / a) * ((1.0 / y) - (b / y)) else: tmp = x / (a * (b * (y + (y / b)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -3.1e-146) tmp = Float64(Float64(x / a) * Float64(Float64(1.0 / y) - Float64(b / 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 <= -3.1e-146) tmp = (x / a) * ((1.0 / y) - (b / y)); else tmp = x / (a * (b * (y + (y / b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -3.1e-146], N[(N[(x / a), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] - N[(b / 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 -3.1 \cdot 10^{-146}:\\
\;\;\;\;\frac{x}{a} \cdot \left(\frac{1}{y} - \frac{b}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(b \cdot \left(y + \frac{y}{b}\right)\right)}\\
\end{array}
\end{array}
if b < -3.0999999999999998e-146Initial program 98.4%
associate-/l*97.5%
associate--l+97.5%
exp-sum79.8%
associate-/l*78.8%
*-commutative78.8%
exp-to-pow78.8%
exp-diff61.1%
*-commutative61.1%
exp-to-pow61.5%
sub-neg61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in t around 0 66.9%
*-commutative66.9%
*-commutative66.9%
times-frac61.6%
Simplified61.6%
Taylor expanded in y around 0 65.0%
Taylor expanded in b around 0 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
Simplified47.0%
if -3.0999999999999998e-146 < b Initial program 96.9%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.8%
*-commutative74.8%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in y around 0 68.1%
associate-/l*72.7%
associate-/r*68.4%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 43.1%
Taylor expanded in b around inf 49.1%
Final simplification48.3%
(FPCore (x y z t a b) :precision binary64 (if (<= b -4.3e-146) (* (/ x a) (- (/ 1.0 y) (/ b y))) (/ x (* a (* y (+ b 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.3e-146) {
tmp = (x / a) * ((1.0 / y) - (b / y));
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (b <= (-4.3d-146)) then
tmp = (x / a) * ((1.0d0 / y) - (b / y))
else
tmp = x / (a * (y * (b + 1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -4.3e-146) {
tmp = (x / a) * ((1.0 / y) - (b / y));
} else {
tmp = x / (a * (y * (b + 1.0)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -4.3e-146: tmp = (x / a) * ((1.0 / y) - (b / y)) else: tmp = x / (a * (y * (b + 1.0))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -4.3e-146) tmp = Float64(Float64(x / a) * Float64(Float64(1.0 / y) - Float64(b / y))); else tmp = Float64(x / Float64(a * Float64(y * Float64(b + 1.0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -4.3e-146) tmp = (x / a) * ((1.0 / y) - (b / y)); else tmp = x / (a * (y * (b + 1.0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -4.3e-146], N[(N[(x / a), $MachinePrecision] * N[(N[(1.0 / y), $MachinePrecision] - N[(b / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * N[(b + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.3 \cdot 10^{-146}:\\
\;\;\;\;\frac{x}{a} \cdot \left(\frac{1}{y} - \frac{b}{y}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot \left(b + 1\right)\right)}\\
\end{array}
\end{array}
if b < -4.2999999999999999e-146Initial program 98.4%
associate-/l*97.5%
associate--l+97.5%
exp-sum79.8%
associate-/l*78.8%
*-commutative78.8%
exp-to-pow78.8%
exp-diff61.1%
*-commutative61.1%
exp-to-pow61.5%
sub-neg61.5%
metadata-eval61.5%
Simplified61.5%
Taylor expanded in t around 0 66.9%
*-commutative66.9%
*-commutative66.9%
times-frac61.6%
Simplified61.6%
Taylor expanded in y around 0 65.0%
Taylor expanded in b around 0 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
Simplified47.0%
if -4.2999999999999999e-146 < b Initial program 96.9%
associate-/l*97.9%
associate--l+97.9%
exp-sum81.6%
associate-/l*81.0%
*-commutative81.0%
exp-to-pow81.0%
exp-diff74.8%
*-commutative74.8%
exp-to-pow75.6%
sub-neg75.6%
metadata-eval75.6%
Simplified75.6%
Taylor expanded in y around 0 68.1%
associate-/l*72.7%
associate-/r*68.4%
exp-to-pow69.2%
sub-neg69.2%
metadata-eval69.2%
Simplified69.2%
Taylor expanded in t around 0 64.1%
Taylor expanded in b around 0 43.1%
distribute-rgt1-in43.1%
Simplified43.1%
Final simplification44.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b 4.2e-9) (* x (/ (/ 1.0 a) y)) (/ x (* a (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= 4.2e-9) {
tmp = x * ((1.0 / 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 <= 4.2d-9) then
tmp = x * ((1.0d0 / 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 <= 4.2e-9) {
tmp = x * ((1.0 / a) / y);
} else {
tmp = x / (a * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= 4.2e-9: tmp = x * ((1.0 / a) / y) else: tmp = x / (a * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= 4.2e-9) tmp = Float64(x * Float64(Float64(1.0 / 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 <= 4.2e-9) tmp = x * ((1.0 / a) / y); else tmp = x / (a * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, 4.2e-9], N[(x * N[(N[(1.0 / a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(x / N[(a * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.2 \cdot 10^{-9}:\\
\;\;\;\;x \cdot \frac{\frac{1}{a}}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{a \cdot \left(y \cdot b\right)}\\
\end{array}
\end{array}
if b < 4.20000000000000039e-9Initial program 96.4%
associate-/l*96.8%
associate--l+96.8%
exp-sum84.1%
associate-/l*83.0%
*-commutative83.0%
exp-to-pow83.0%
exp-diff73.6%
*-commutative73.6%
exp-to-pow74.7%
sub-neg74.7%
metadata-eval74.7%
Simplified74.7%
Taylor expanded in y around 0 68.1%
associate-/l*68.6%
associate-/r*67.5%
exp-to-pow68.5%
sub-neg68.5%
metadata-eval68.5%
Simplified68.5%
Taylor expanded in b around 0 66.8%
exp-to-pow67.7%
sub-neg67.7%
metadata-eval67.7%
+-commutative67.7%
Simplified67.7%
Taylor expanded in t around 0 40.6%
if 4.20000000000000039e-9 < b Initial program 100.0%
associate-/l*100.0%
associate--l+100.0%
exp-sum73.3%
associate-/l*73.3%
*-commutative73.3%
exp-to-pow73.3%
exp-diff60.0%
*-commutative60.0%
exp-to-pow60.0%
sub-neg60.0%
metadata-eval60.0%
Simplified60.0%
Taylor expanded in y around 0 68.1%
associate-/l*74.8%
associate-/r*65.5%
exp-to-pow65.5%
sub-neg65.5%
metadata-eval65.5%
Simplified65.5%
Taylor expanded in t around 0 83.0%
Taylor expanded in b around 0 38.2%
Taylor expanded in b around inf 38.2%
*-commutative38.2%
Simplified38.2%
(FPCore (x y z t a b) :precision binary64 (* x (/ 1.0 (* y a))))
double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (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 * (1.0d0 / (y * a))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x * (1.0 / (y * a));
}
def code(x, y, z, t, a, b): return x * (1.0 / (y * a))
function code(x, y, z, t, a, b) return Float64(x * Float64(1.0 / Float64(y * a))) end
function tmp = code(x, y, z, t, a, b) tmp = x * (1.0 / (y * a)); end
code[x_, y_, z_, t_, a_, b_] := N[(x * N[(1.0 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \frac{1}{y \cdot a}
\end{array}
Initial program 97.4%
associate-/l*97.7%
associate--l+97.7%
exp-sum80.9%
associate-/l*80.2%
*-commutative80.2%
exp-to-pow80.2%
exp-diff69.6%
*-commutative69.6%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in y around 0 68.1%
associate-/l*70.4%
associate-/r*66.9%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in b around 0 63.5%
exp-to-pow64.2%
sub-neg64.2%
metadata-eval64.2%
+-commutative64.2%
Simplified64.2%
Taylor expanded in t around 0 35.6%
Final simplification35.6%
(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 97.4%
associate-/l*97.7%
associate--l+97.7%
exp-sum80.9%
associate-/l*80.2%
*-commutative80.2%
exp-to-pow80.2%
exp-diff69.6%
*-commutative69.6%
exp-to-pow70.4%
sub-neg70.4%
metadata-eval70.4%
Simplified70.4%
Taylor expanded in y around 0 68.1%
associate-/l*70.4%
associate-/r*66.9%
exp-to-pow67.6%
sub-neg67.6%
metadata-eval67.6%
Simplified67.6%
Taylor expanded in t around 0 65.7%
Taylor expanded in b around 0 35.5%
*-commutative35.5%
Simplified35.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 2024137
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:incompleteBetaWorker from math-functions-0.1.5.2, A"
:precision binary64
:alt
(! :herbie-platform default (if (< t -8845848504127471/10000000000000000) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))) (if (< t 8520312288374073/10000000000) (/ (* (/ x y) (pow a (- t 1))) (exp (- b (* (log z) y)))) (/ (* x (/ (pow a (- t 1)) y)) (- (+ b 1) (* y (log z)))))))
(/ (* x (exp (- (+ (* y (log z)) (* (- t 1.0) (log a))) b))) y))