
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
(* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z)
0.083333333333333)
x)))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((((((y + 0.0007936500793651d0) * z) - 0.0027777777777778d0) * z) + 0.083333333333333d0) / x)
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x);
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(Float64(Float64(Float64(Float64(y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x)) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((((((y + 0.0007936500793651) * z) - 0.0027777777777778) * z) + 0.083333333333333) / x); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(N[(N[(N[(N[(y + 0.0007936500793651), $MachinePrecision] * z), $MachinePrecision] - 0.0027777777777778), $MachinePrecision] * z), $MachinePrecision] + 0.083333333333333), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{\left(\left(y + 0.0007936500793651\right) \cdot z - 0.0027777777777778\right) \cdot z + 0.083333333333333}{x}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<= x 4e+16)
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(*
(/ 1.0 x)
(+
0.083333333333333
(* z (+ -0.0027777777777778 (* z (+ y 0.0007936500793651)))))))
(+
(* x (+ (log x) -1.0))
(+ (/ 0.083333333333333 x) (* z (* (/ z x) (+ y 0.0007936500793651)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 4e+16) {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((1.0 / x) * (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))));
} else {
tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 4d+16) then
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((1.0d0 / x) * (0.083333333333333d0 + (z * ((-0.0027777777777778d0) + (z * (y + 0.0007936500793651d0))))))
else
tmp = (x * (log(x) + (-1.0d0))) + ((0.083333333333333d0 / x) + (z * ((z / x) * (y + 0.0007936500793651d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 4e+16) {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((1.0 / x) * (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))));
} else {
tmp = (x * (Math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 4e+16: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((1.0 / x) * (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651)))))) else: tmp = (x * (math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 4e+16) tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(1.0 / x) * Float64(0.083333333333333 + Float64(z * Float64(-0.0027777777777778 + Float64(z * Float64(y + 0.0007936500793651))))))); else tmp = Float64(Float64(x * Float64(log(x) + -1.0)) + Float64(Float64(0.083333333333333 / x) + Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 4e+16) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((1.0 / x) * (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651)))))); else tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 4e+16], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(1.0 / x), $MachinePrecision] * N[(0.083333333333333 + N[(z * N[(-0.0027777777777778 + N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 4 \cdot 10^{+16}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{1}{x} \cdot \left(0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right) + \left(\frac{0.083333333333333}{x} + z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\right)\\
\end{array}
\end{array}
if x < 4e16Initial program 99.7%
clear-numN/A
associate-/r/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
metadata-eval99.8%
Applied egg-rr99.8%
if 4e16 < x Initial program 86.0%
Taylor expanded in y around 0
Simplified99.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.6%
Simplified99.6%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6499.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<= x 1e+16)
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x))
(+
(* x (+ (log x) -1.0))
(+ (/ 0.083333333333333 x) (* z (* (/ z x) (+ y 0.0007936500793651)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 1e+16) {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 1d+16) then
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x)
else
tmp = (x * (log(x) + (-1.0d0))) + ((0.083333333333333d0 / x) + (z * ((z / x) * (y + 0.0007936500793651d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 1e+16) {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x);
} else {
tmp = (x * (Math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 1e+16: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) else: tmp = (x * (math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 1e+16) tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x)); else tmp = Float64(Float64(x * Float64(log(x) + -1.0)) + Float64(Float64(0.083333333333333 / x) + Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 1e+16) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x); else tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 1e+16], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 10^{+16}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right) + \left(\frac{0.083333333333333}{x} + z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\right)\\
\end{array}
\end{array}
if x < 1e16Initial program 99.7%
if 1e16 < x Initial program 86.0%
Taylor expanded in y around 0
Simplified99.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.6%
Simplified99.6%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6499.7%
Simplified99.7%
Final simplification99.7%
(FPCore (x y z)
:precision binary64
(if (<= z -400.0)
(*
z
(*
z
(+
(/ y x)
(* (/ 1.0 x) (- 0.0007936500793651 (/ 0.0027777777777778 z))))))
(if (<= z 1.1e+92)
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/ 1.0 (* x 12.000000000000048)))
(* z (/ (+ y 0.0007936500793651) (/ x z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -400.0) {
tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z)))));
} else if (z <= 1.1e+92) {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (1.0 / (x * 12.000000000000048));
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-400.0d0)) then
tmp = z * (z * ((y / x) + ((1.0d0 / x) * (0.0007936500793651d0 - (0.0027777777777778d0 / z)))))
else if (z <= 1.1d+92) then
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + (1.0d0 / (x * 12.000000000000048d0))
else
tmp = z * ((y + 0.0007936500793651d0) / (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -400.0) {
tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z)))));
} else if (z <= 1.1e+92) {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + (1.0 / (x * 12.000000000000048));
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -400.0: tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z))))) elif z <= 1.1e+92: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + (1.0 / (x * 12.000000000000048)) else: tmp = z * ((y + 0.0007936500793651) / (x / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -400.0) tmp = Float64(z * Float64(z * Float64(Float64(y / x) + Float64(Float64(1.0 / x) * Float64(0.0007936500793651 - Float64(0.0027777777777778 / z)))))); elseif (z <= 1.1e+92) tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(1.0 / Float64(x * 12.000000000000048))); else tmp = Float64(z * Float64(Float64(y + 0.0007936500793651) / Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -400.0) tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z))))); elseif (z <= 1.1e+92) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (1.0 / (x * 12.000000000000048)); else tmp = z * ((y + 0.0007936500793651) / (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -400.0], N[(z * N[(z * N[(N[(y / x), $MachinePrecision] + N[(N[(1.0 / x), $MachinePrecision] * N[(0.0007936500793651 - N[(0.0027777777777778 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+92], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(1.0 / N[(x * 12.000000000000048), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -400:\\
\;\;\;\;z \cdot \left(z \cdot \left(\frac{y}{x} + \frac{1}{x} \cdot \left(0.0007936500793651 - \frac{0.0027777777777778}{z}\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+92}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{1}{x \cdot 12.000000000000048}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y + 0.0007936500793651}{\frac{x}{z}}\\
\end{array}
\end{array}
if z < -400Initial program 87.4%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
Simplified84.2%
if -400 < z < 1.09999999999999996e92Initial program 98.9%
clear-numN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
metadata-eval98.8%
Applied egg-rr98.8%
Taylor expanded in z around 0
*-commutativeN/A
*-lowering-*.f6486.2%
Simplified86.2%
if 1.09999999999999996e92 < z Initial program 86.2%
Taylor expanded in y around 0
Simplified99.8%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
associate-*r*N/A
*-commutativeN/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6486.9%
Applied egg-rr86.9%
Final simplification85.7%
(FPCore (x y z)
:precision binary64
(if (<= x 0.07)
(+
(/
(+
0.083333333333333
(* z (- (* z (+ y 0.0007936500793651)) 0.0027777777777778)))
x)
(+ 0.91893853320467 (* (log x) -0.5)))
(+
(* x (+ (log x) -1.0))
(+ (/ 0.083333333333333 x) (* z (* (/ z x) (+ y 0.0007936500793651)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 0.07) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + (log(x) * -0.5));
} else {
tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 0.07d0) then
tmp = ((0.083333333333333d0 + (z * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))) / x) + (0.91893853320467d0 + (log(x) * (-0.5d0)))
else
tmp = (x * (log(x) + (-1.0d0))) + ((0.083333333333333d0 / x) + (z * ((z / x) * (y + 0.0007936500793651d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 0.07) {
tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + (Math.log(x) * -0.5));
} else {
tmp = (x * (Math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 0.07: tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + (math.log(x) * -0.5)) else: tmp = (x * (math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 0.07) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) / x) + Float64(0.91893853320467 + Float64(log(x) * -0.5))); else tmp = Float64(Float64(x * Float64(log(x) + -1.0)) + Float64(Float64(0.083333333333333 / x) + Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 0.07) tmp = ((0.083333333333333 + (z * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))) / x) + (0.91893853320467 + (log(x) * -0.5)); else tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 0.07], N[(N[(N[(0.083333333333333 + N[(z * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] + N[(0.91893853320467 + N[(N[Log[x], $MachinePrecision] * -0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 0.07:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)}{x} + \left(0.91893853320467 + \log x \cdot -0.5\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right) + \left(\frac{0.083333333333333}{x} + z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\right)\\
\end{array}
\end{array}
if x < 0.070000000000000007Initial program 99.7%
Taylor expanded in x around 0
remove-double-negN/A
log-recN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6498.6%
Simplified98.6%
if 0.070000000000000007 < x Initial program 87.2%
Taylor expanded in y around 0
Simplified99.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.3%
Simplified99.3%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6499.3%
Simplified99.3%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(if (<= z -980000.0)
(*
z
(*
z
(+
(/ y x)
(* (/ 1.0 x) (- 0.0007936500793651 (/ 0.0027777777777778 z))))))
(if (<= z 1.55e+90)
(+
(+ (- (* (- x 0.5) (log x)) x) 0.91893853320467)
(/ 0.083333333333333 x))
(* z (/ (+ y 0.0007936500793651) (/ x z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -980000.0) {
tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z)))));
} else if (z <= 1.55e+90) {
tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (0.083333333333333 / x);
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-980000.0d0)) then
tmp = z * (z * ((y / x) + ((1.0d0 / x) * (0.0007936500793651d0 - (0.0027777777777778d0 / z)))))
else if (z <= 1.55d+90) then
tmp = ((((x - 0.5d0) * log(x)) - x) + 0.91893853320467d0) + (0.083333333333333d0 / x)
else
tmp = z * ((y + 0.0007936500793651d0) / (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -980000.0) {
tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z)))));
} else if (z <= 1.55e+90) {
tmp = ((((x - 0.5) * Math.log(x)) - x) + 0.91893853320467) + (0.083333333333333 / x);
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -980000.0: tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z))))) elif z <= 1.55e+90: tmp = ((((x - 0.5) * math.log(x)) - x) + 0.91893853320467) + (0.083333333333333 / x) else: tmp = z * ((y + 0.0007936500793651) / (x / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -980000.0) tmp = Float64(z * Float64(z * Float64(Float64(y / x) + Float64(Float64(1.0 / x) * Float64(0.0007936500793651 - Float64(0.0027777777777778 / z)))))); elseif (z <= 1.55e+90) tmp = Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) - x) + 0.91893853320467) + Float64(0.083333333333333 / x)); else tmp = Float64(z * Float64(Float64(y + 0.0007936500793651) / Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -980000.0) tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z))))); elseif (z <= 1.55e+90) tmp = ((((x - 0.5) * log(x)) - x) + 0.91893853320467) + (0.083333333333333 / x); else tmp = z * ((y + 0.0007936500793651) / (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -980000.0], N[(z * N[(z * N[(N[(y / x), $MachinePrecision] + N[(N[(1.0 / x), $MachinePrecision] * N[(0.0007936500793651 - N[(0.0027777777777778 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+90], N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision] + 0.91893853320467), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -980000:\\
\;\;\;\;z \cdot \left(z \cdot \left(\frac{y}{x} + \frac{1}{x} \cdot \left(0.0007936500793651 - \frac{0.0027777777777778}{z}\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+90}:\\
\;\;\;\;\left(\left(\left(x - 0.5\right) \cdot \log x - x\right) + 0.91893853320467\right) + \frac{0.083333333333333}{x}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y + 0.0007936500793651}{\frac{x}{z}}\\
\end{array}
\end{array}
if z < -9.8e5Initial program 87.4%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
Simplified84.2%
if -9.8e5 < z < 1.54999999999999994e90Initial program 98.9%
Taylor expanded in z around 0
/-lowering-/.f6486.1%
Simplified86.1%
if 1.54999999999999994e90 < z Initial program 86.2%
Taylor expanded in y around 0
Simplified99.8%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
associate-*r*N/A
*-commutativeN/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6486.9%
Applied egg-rr86.9%
Final simplification85.7%
(FPCore (x y z)
:precision binary64
(if (<= x 10200000000.0)
(/
(+
(+ 0.083333333333333 (* z (* z (+ y 0.0007936500793651))))
(* z -0.0027777777777778))
x)
(+ (* x (+ (log x) -1.0)) (+ (/ 0.083333333333333 x) (* z (/ (* z y) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= 10200000000.0) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else {
tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z * y) / x)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 10200000000.0d0) then
tmp = ((0.083333333333333d0 + (z * (z * (y + 0.0007936500793651d0)))) + (z * (-0.0027777777777778d0))) / x
else
tmp = (x * (log(x) + (-1.0d0))) + ((0.083333333333333d0 / x) + (z * ((z * y) / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 10200000000.0) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else {
tmp = (x * (Math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z * y) / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 10200000000.0: tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x else: tmp = (x * (math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z * y) / x))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 10200000000.0) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(z * Float64(y + 0.0007936500793651)))) + Float64(z * -0.0027777777777778)) / x); else tmp = Float64(Float64(x * Float64(log(x) + -1.0)) + Float64(Float64(0.083333333333333 / x) + Float64(z * Float64(Float64(z * y) / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 10200000000.0) tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x; else tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z * y) / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 10200000000.0], N[(N[(N[(0.083333333333333 + N[(z * N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(z * N[(N[(z * y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 10200000000:\\
\;\;\;\;\frac{\left(0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right)\right)\right) + z \cdot -0.0027777777777778}{x}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\log x + -1\right) + \left(\frac{0.083333333333333}{x} + z \cdot \frac{z \cdot y}{x}\right)\\
\end{array}
\end{array}
if x < 1.02e10Initial program 99.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6497.6%
Simplified97.6%
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6497.6%
Applied egg-rr97.6%
if 1.02e10 < x Initial program 86.7%
Taylor expanded in y around 0
Simplified99.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.3%
Simplified99.3%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6499.3%
Simplified99.3%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f6483.6%
Simplified83.6%
Final simplification90.5%
(FPCore (x y z)
:precision binary64
(if (<= z -23.0)
(*
z
(*
z
(+
(/ y x)
(* (/ 1.0 x) (- 0.0007936500793651 (/ 0.0027777777777778 z))))))
(if (<= z 2.55e+90)
(+ (/ 0.083333333333333 x) (+ 0.91893853320467 (- (* x (log x)) x)))
(* z (/ (+ y 0.0007936500793651) (/ x z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -23.0) {
tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z)))));
} else if (z <= 2.55e+90) {
tmp = (0.083333333333333 / x) + (0.91893853320467 + ((x * log(x)) - x));
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-23.0d0)) then
tmp = z * (z * ((y / x) + ((1.0d0 / x) * (0.0007936500793651d0 - (0.0027777777777778d0 / z)))))
else if (z <= 2.55d+90) then
tmp = (0.083333333333333d0 / x) + (0.91893853320467d0 + ((x * log(x)) - x))
else
tmp = z * ((y + 0.0007936500793651d0) / (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -23.0) {
tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z)))));
} else if (z <= 2.55e+90) {
tmp = (0.083333333333333 / x) + (0.91893853320467 + ((x * Math.log(x)) - x));
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -23.0: tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z))))) elif z <= 2.55e+90: tmp = (0.083333333333333 / x) + (0.91893853320467 + ((x * math.log(x)) - x)) else: tmp = z * ((y + 0.0007936500793651) / (x / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -23.0) tmp = Float64(z * Float64(z * Float64(Float64(y / x) + Float64(Float64(1.0 / x) * Float64(0.0007936500793651 - Float64(0.0027777777777778 / z)))))); elseif (z <= 2.55e+90) tmp = Float64(Float64(0.083333333333333 / x) + Float64(0.91893853320467 + Float64(Float64(x * log(x)) - x))); else tmp = Float64(z * Float64(Float64(y + 0.0007936500793651) / Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -23.0) tmp = z * (z * ((y / x) + ((1.0 / x) * (0.0007936500793651 - (0.0027777777777778 / z))))); elseif (z <= 2.55e+90) tmp = (0.083333333333333 / x) + (0.91893853320467 + ((x * log(x)) - x)); else tmp = z * ((y + 0.0007936500793651) / (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -23.0], N[(z * N[(z * N[(N[(y / x), $MachinePrecision] + N[(N[(1.0 / x), $MachinePrecision] * N[(0.0007936500793651 - N[(0.0027777777777778 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.55e+90], N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(0.91893853320467 + N[(N[(x * N[Log[x], $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -23:\\
\;\;\;\;z \cdot \left(z \cdot \left(\frac{y}{x} + \frac{1}{x} \cdot \left(0.0007936500793651 - \frac{0.0027777777777778}{z}\right)\right)\right)\\
\mathbf{elif}\;z \leq 2.55 \cdot 10^{+90}:\\
\;\;\;\;\frac{0.083333333333333}{x} + \left(0.91893853320467 + \left(x \cdot \log x - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y + 0.0007936500793651}{\frac{x}{z}}\\
\end{array}
\end{array}
if z < -23Initial program 87.4%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
associate-*r/N/A
metadata-evalN/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
distribute-lft-out--N/A
*-lowering-*.f64N/A
Simplified84.2%
if -23 < z < 2.5499999999999998e90Initial program 98.9%
Taylor expanded in z around 0
/-lowering-/.f6486.1%
Simplified86.1%
Taylor expanded in x around inf
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-lowering-*.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6483.9%
Simplified83.9%
if 2.5499999999999998e90 < z Initial program 86.2%
Taylor expanded in y around 0
Simplified99.8%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6480.3%
Simplified80.3%
associate-*r*N/A
*-commutativeN/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6486.9%
Applied egg-rr86.9%
Final simplification84.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ (log x) -1.0)))
(if (<= x 280000000000.0)
(/
(+
(+ 0.083333333333333 (* z (* z (+ y 0.0007936500793651))))
(* z -0.0027777777777778))
x)
(if (<= x 2.95e+25)
(* y (* x (* t_0 (/ 1.0 y))))
(if (<= x 3.7e+99)
(* z (/ (+ y 0.0007936500793651) (/ x z)))
(* x t_0))))))
double code(double x, double y, double z) {
double t_0 = log(x) + -1.0;
double tmp;
if (x <= 280000000000.0) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else if (x <= 2.95e+25) {
tmp = y * (x * (t_0 * (1.0 / y)));
} else if (x <= 3.7e+99) {
tmp = z * ((y + 0.0007936500793651) / (x / z));
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = log(x) + (-1.0d0)
if (x <= 280000000000.0d0) then
tmp = ((0.083333333333333d0 + (z * (z * (y + 0.0007936500793651d0)))) + (z * (-0.0027777777777778d0))) / x
else if (x <= 2.95d+25) then
tmp = y * (x * (t_0 * (1.0d0 / y)))
else if (x <= 3.7d+99) then
tmp = z * ((y + 0.0007936500793651d0) / (x / z))
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = Math.log(x) + -1.0;
double tmp;
if (x <= 280000000000.0) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else if (x <= 2.95e+25) {
tmp = y * (x * (t_0 * (1.0 / y)));
} else if (x <= 3.7e+99) {
tmp = z * ((y + 0.0007936500793651) / (x / z));
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = math.log(x) + -1.0 tmp = 0 if x <= 280000000000.0: tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x elif x <= 2.95e+25: tmp = y * (x * (t_0 * (1.0 / y))) elif x <= 3.7e+99: tmp = z * ((y + 0.0007936500793651) / (x / z)) else: tmp = x * t_0 return tmp
function code(x, y, z) t_0 = Float64(log(x) + -1.0) tmp = 0.0 if (x <= 280000000000.0) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(z * Float64(y + 0.0007936500793651)))) + Float64(z * -0.0027777777777778)) / x); elseif (x <= 2.95e+25) tmp = Float64(y * Float64(x * Float64(t_0 * Float64(1.0 / y)))); elseif (x <= 3.7e+99) tmp = Float64(z * Float64(Float64(y + 0.0007936500793651) / Float64(x / z))); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = log(x) + -1.0; tmp = 0.0; if (x <= 280000000000.0) tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x; elseif (x <= 2.95e+25) tmp = y * (x * (t_0 * (1.0 / y))); elseif (x <= 3.7e+99) tmp = z * ((y + 0.0007936500793651) / (x / z)); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]}, If[LessEqual[x, 280000000000.0], N[(N[(N[(0.083333333333333 + N[(z * N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[x, 2.95e+25], N[(y * N[(x * N[(t$95$0 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e+99], N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log x + -1\\
\mathbf{if}\;x \leq 280000000000:\\
\;\;\;\;\frac{\left(0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right)\right)\right) + z \cdot -0.0027777777777778}{x}\\
\mathbf{elif}\;x \leq 2.95 \cdot 10^{+25}:\\
\;\;\;\;y \cdot \left(x \cdot \left(t\_0 \cdot \frac{1}{y}\right)\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{+99}:\\
\;\;\;\;z \cdot \frac{y + 0.0007936500793651}{\frac{x}{z}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < 2.8e11Initial program 99.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6497.6%
Simplified97.6%
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6497.7%
Applied egg-rr97.7%
if 2.8e11 < x < 2.95e25Initial program 99.7%
Taylor expanded in y around -inf
Simplified99.7%
Taylor expanded in x around inf
associate-*r*N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
/-lowering-/.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f64N/A
distribute-neg-fracN/A
metadata-evalN/A
/-lowering-/.f6492.1%
Simplified92.1%
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-evalN/A
+-lowering-+.f64N/A
log-lowering-log.f6492.6%
Applied egg-rr92.6%
if 2.95e25 < x < 3.7000000000000001e99Initial program 86.7%
Taylor expanded in y around 0
Simplified99.7%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6462.4%
Simplified62.4%
associate-*r*N/A
*-commutativeN/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6469.1%
Applied egg-rr69.1%
if 3.7000000000000001e99 < x Initial program 85.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6473.0%
Simplified73.0%
Final simplification85.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (+ (log x) -1.0))))
(if (<= x 280000000000.0)
(/
(+
(+ 0.083333333333333 (* z (* z (+ y 0.0007936500793651))))
(* z -0.0027777777777778))
x)
(if (<= x 5.1e+21)
t_0
(if (<= x 1.5e+99) (* z (/ (+ y 0.0007936500793651) (/ x z))) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (log(x) + -1.0);
double tmp;
if (x <= 280000000000.0) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else if (x <= 5.1e+21) {
tmp = t_0;
} else if (x <= 1.5e+99) {
tmp = z * ((y + 0.0007936500793651) / (x / z));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (log(x) + (-1.0d0))
if (x <= 280000000000.0d0) then
tmp = ((0.083333333333333d0 + (z * (z * (y + 0.0007936500793651d0)))) + (z * (-0.0027777777777778d0))) / x
else if (x <= 5.1d+21) then
tmp = t_0
else if (x <= 1.5d+99) then
tmp = z * ((y + 0.0007936500793651d0) / (x / z))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (Math.log(x) + -1.0);
double tmp;
if (x <= 280000000000.0) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else if (x <= 5.1e+21) {
tmp = t_0;
} else if (x <= 1.5e+99) {
tmp = z * ((y + 0.0007936500793651) / (x / z));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (math.log(x) + -1.0) tmp = 0 if x <= 280000000000.0: tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x elif x <= 5.1e+21: tmp = t_0 elif x <= 1.5e+99: tmp = z * ((y + 0.0007936500793651) / (x / z)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(log(x) + -1.0)) tmp = 0.0 if (x <= 280000000000.0) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(z * Float64(y + 0.0007936500793651)))) + Float64(z * -0.0027777777777778)) / x); elseif (x <= 5.1e+21) tmp = t_0; elseif (x <= 1.5e+99) tmp = Float64(z * Float64(Float64(y + 0.0007936500793651) / Float64(x / z))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (log(x) + -1.0); tmp = 0.0; if (x <= 280000000000.0) tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x; elseif (x <= 5.1e+21) tmp = t_0; elseif (x <= 1.5e+99) tmp = z * ((y + 0.0007936500793651) / (x / z)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, 280000000000.0], N[(N[(N[(0.083333333333333 + N[(z * N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[x, 5.1e+21], t$95$0, If[LessEqual[x, 1.5e+99], N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(\log x + -1\right)\\
\mathbf{if}\;x \leq 280000000000:\\
\;\;\;\;\frac{\left(0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right)\right)\right) + z \cdot -0.0027777777777778}{x}\\
\mathbf{elif}\;x \leq 5.1 \cdot 10^{+21}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+99}:\\
\;\;\;\;z \cdot \frac{y + 0.0007936500793651}{\frac{x}{z}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < 2.8e11Initial program 99.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6497.6%
Simplified97.6%
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6497.7%
Applied egg-rr97.7%
if 2.8e11 < x < 5.1e21 or 1.50000000000000007e99 < x Initial program 86.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6474.2%
Simplified74.2%
if 5.1e21 < x < 1.50000000000000007e99Initial program 86.7%
Taylor expanded in y around 0
Simplified99.7%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6462.4%
Simplified62.4%
associate-*r*N/A
*-commutativeN/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6469.1%
Applied egg-rr69.1%
Final simplification85.4%
(FPCore (x y z) :precision binary64 (+ (* x (+ (log x) -1.0)) (+ (/ 0.083333333333333 x) (* z (* (/ z x) (+ y 0.0007936500793651))))))
double code(double x, double y, double z) {
return (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * (log(x) + (-1.0d0))) + ((0.083333333333333d0 / x) + (z * ((z / x) * (y + 0.0007936500793651d0))))
end function
public static double code(double x, double y, double z) {
return (x * (Math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))));
}
def code(x, y, z): return (x * (math.log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651))))
function code(x, y, z) return Float64(Float64(x * Float64(log(x) + -1.0)) + Float64(Float64(0.083333333333333 / x) + Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))))) end
function tmp = code(x, y, z) tmp = (x * (log(x) + -1.0)) + ((0.083333333333333 / x) + (z * ((z / x) * (y + 0.0007936500793651)))); end
code[x_, y_, z_] := N[(N[(x * N[(N[Log[x], $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision] + N[(N[(0.083333333333333 / x), $MachinePrecision] + N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(\log x + -1\right) + \left(\frac{0.083333333333333}{x} + z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\right)
\end{array}
Initial program 93.1%
Taylor expanded in y around 0
Simplified96.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6495.6%
Simplified95.6%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6497.0%
Simplified97.0%
Final simplification97.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (/ x (* z z)))))
(if (<= z -3.1e+32)
t_0
(if (<= z 2.8e-110)
(/ (+ 0.083333333333333 (* z -0.0027777777777778)) x)
(if (<= z 8e+205) t_0 (/ (* 0.0007936500793651 (* z z)) x))))))
double code(double x, double y, double z) {
double t_0 = y / (x / (z * z));
double tmp;
if (z <= -3.1e+32) {
tmp = t_0;
} else if (z <= 2.8e-110) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else if (z <= 8e+205) {
tmp = t_0;
} else {
tmp = (0.0007936500793651 * (z * z)) / x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x / (z * z))
if (z <= (-3.1d+32)) then
tmp = t_0
else if (z <= 2.8d-110) then
tmp = (0.083333333333333d0 + (z * (-0.0027777777777778d0))) / x
else if (z <= 8d+205) then
tmp = t_0
else
tmp = (0.0007936500793651d0 * (z * z)) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x / (z * z));
double tmp;
if (z <= -3.1e+32) {
tmp = t_0;
} else if (z <= 2.8e-110) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else if (z <= 8e+205) {
tmp = t_0;
} else {
tmp = (0.0007936500793651 * (z * z)) / x;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x / (z * z)) tmp = 0 if z <= -3.1e+32: tmp = t_0 elif z <= 2.8e-110: tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x elif z <= 8e+205: tmp = t_0 else: tmp = (0.0007936500793651 * (z * z)) / x return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x / Float64(z * z))) tmp = 0.0 if (z <= -3.1e+32) tmp = t_0; elseif (z <= 2.8e-110) tmp = Float64(Float64(0.083333333333333 + Float64(z * -0.0027777777777778)) / x); elseif (z <= 8e+205) tmp = t_0; else tmp = Float64(Float64(0.0007936500793651 * Float64(z * z)) / x); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x / (z * z)); tmp = 0.0; if (z <= -3.1e+32) tmp = t_0; elseif (z <= 2.8e-110) tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x; elseif (z <= 8e+205) tmp = t_0; else tmp = (0.0007936500793651 * (z * z)) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.1e+32], t$95$0, If[LessEqual[z, 2.8e-110], N[(N[(0.083333333333333 + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], If[LessEqual[z, 8e+205], t$95$0, N[(N[(0.0007936500793651 * N[(z * z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{if}\;z \leq -3.1 \cdot 10^{+32}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-110}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+205}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{0.0007936500793651 \cdot \left(z \cdot z\right)}{x}\\
\end{array}
\end{array}
if z < -3.09999999999999993e32 or 2.8e-110 < z < 8.00000000000000013e205Initial program 88.3%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.5%
Simplified44.5%
associate-*r*N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6449.9%
Applied egg-rr49.9%
if -3.09999999999999993e32 < z < 2.8e-110Initial program 99.5%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6449.2%
Simplified49.2%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6444.5%
Simplified44.5%
if 8.00000000000000013e205 < z Initial program 95.0%
Taylor expanded in y around 0
Simplified99.9%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6495.0%
Simplified95.0%
Taylor expanded in y around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.8%
Simplified83.8%
Final simplification50.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (/ x (* z z)))))
(if (<= z -1.45e+29)
t_0
(if (<= z 2.8e-110)
(/ 0.083333333333333 x)
(if (<= z 2.15e+205) t_0 (/ (* 0.0007936500793651 (* z z)) x))))))
double code(double x, double y, double z) {
double t_0 = y / (x / (z * z));
double tmp;
if (z <= -1.45e+29) {
tmp = t_0;
} else if (z <= 2.8e-110) {
tmp = 0.083333333333333 / x;
} else if (z <= 2.15e+205) {
tmp = t_0;
} else {
tmp = (0.0007936500793651 * (z * z)) / x;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x / (z * z))
if (z <= (-1.45d+29)) then
tmp = t_0
else if (z <= 2.8d-110) then
tmp = 0.083333333333333d0 / x
else if (z <= 2.15d+205) then
tmp = t_0
else
tmp = (0.0007936500793651d0 * (z * z)) / x
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x / (z * z));
double tmp;
if (z <= -1.45e+29) {
tmp = t_0;
} else if (z <= 2.8e-110) {
tmp = 0.083333333333333 / x;
} else if (z <= 2.15e+205) {
tmp = t_0;
} else {
tmp = (0.0007936500793651 * (z * z)) / x;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x / (z * z)) tmp = 0 if z <= -1.45e+29: tmp = t_0 elif z <= 2.8e-110: tmp = 0.083333333333333 / x elif z <= 2.15e+205: tmp = t_0 else: tmp = (0.0007936500793651 * (z * z)) / x return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x / Float64(z * z))) tmp = 0.0 if (z <= -1.45e+29) tmp = t_0; elseif (z <= 2.8e-110) tmp = Float64(0.083333333333333 / x); elseif (z <= 2.15e+205) tmp = t_0; else tmp = Float64(Float64(0.0007936500793651 * Float64(z * z)) / x); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x / (z * z)); tmp = 0.0; if (z <= -1.45e+29) tmp = t_0; elseif (z <= 2.8e-110) tmp = 0.083333333333333 / x; elseif (z <= 2.15e+205) tmp = t_0; else tmp = (0.0007936500793651 * (z * z)) / x; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+29], t$95$0, If[LessEqual[z, 2.8e-110], N[(0.083333333333333 / x), $MachinePrecision], If[LessEqual[z, 2.15e+205], t$95$0, N[(N[(0.0007936500793651 * N[(z * z), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-110}:\\
\;\;\;\;\frac{0.083333333333333}{x}\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{+205}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{0.0007936500793651 \cdot \left(z \cdot z\right)}{x}\\
\end{array}
\end{array}
if z < -1.45e29 or 2.8e-110 < z < 2.1499999999999999e205Initial program 88.3%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.5%
Simplified44.5%
associate-*r*N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6449.9%
Applied egg-rr49.9%
if -1.45e29 < z < 2.8e-110Initial program 99.5%
Taylor expanded in z around 0
/-lowering-/.f6494.1%
Simplified94.1%
Taylor expanded in x around 0
/-lowering-/.f6444.5%
Simplified44.5%
if 2.1499999999999999e205 < z Initial program 95.0%
Taylor expanded in y around 0
Simplified99.9%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6495.0%
Simplified95.0%
Taylor expanded in y around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6483.8%
Simplified83.8%
Final simplification50.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (/ x (* z z)))))
(if (<= z -1.45e+29)
t_0
(if (<= z 2.8e-110)
(/ 0.083333333333333 x)
(if (<= z 4e+205) t_0 (* (/ 0.0007936500793651 x) (* z z)))))))
double code(double x, double y, double z) {
double t_0 = y / (x / (z * z));
double tmp;
if (z <= -1.45e+29) {
tmp = t_0;
} else if (z <= 2.8e-110) {
tmp = 0.083333333333333 / x;
} else if (z <= 4e+205) {
tmp = t_0;
} else {
tmp = (0.0007936500793651 / x) * (z * z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x / (z * z))
if (z <= (-1.45d+29)) then
tmp = t_0
else if (z <= 2.8d-110) then
tmp = 0.083333333333333d0 / x
else if (z <= 4d+205) then
tmp = t_0
else
tmp = (0.0007936500793651d0 / x) * (z * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x / (z * z));
double tmp;
if (z <= -1.45e+29) {
tmp = t_0;
} else if (z <= 2.8e-110) {
tmp = 0.083333333333333 / x;
} else if (z <= 4e+205) {
tmp = t_0;
} else {
tmp = (0.0007936500793651 / x) * (z * z);
}
return tmp;
}
def code(x, y, z): t_0 = y / (x / (z * z)) tmp = 0 if z <= -1.45e+29: tmp = t_0 elif z <= 2.8e-110: tmp = 0.083333333333333 / x elif z <= 4e+205: tmp = t_0 else: tmp = (0.0007936500793651 / x) * (z * z) return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x / Float64(z * z))) tmp = 0.0 if (z <= -1.45e+29) tmp = t_0; elseif (z <= 2.8e-110) tmp = Float64(0.083333333333333 / x); elseif (z <= 4e+205) tmp = t_0; else tmp = Float64(Float64(0.0007936500793651 / x) * Float64(z * z)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x / (z * z)); tmp = 0.0; if (z <= -1.45e+29) tmp = t_0; elseif (z <= 2.8e-110) tmp = 0.083333333333333 / x; elseif (z <= 4e+205) tmp = t_0; else tmp = (0.0007936500793651 / x) * (z * z); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+29], t$95$0, If[LessEqual[z, 2.8e-110], N[(0.083333333333333 / x), $MachinePrecision], If[LessEqual[z, 4e+205], t$95$0, N[(N[(0.0007936500793651 / x), $MachinePrecision] * N[(z * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{\frac{x}{z \cdot z}}\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-110}:\\
\;\;\;\;\frac{0.083333333333333}{x}\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+205}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{0.0007936500793651}{x} \cdot \left(z \cdot z\right)\\
\end{array}
\end{array}
if z < -1.45e29 or 2.8e-110 < z < 4.00000000000000007e205Initial program 88.3%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.5%
Simplified44.5%
associate-*r*N/A
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6449.9%
Applied egg-rr49.9%
if -1.45e29 < z < 2.8e-110Initial program 99.5%
Taylor expanded in z around 0
/-lowering-/.f6494.1%
Simplified94.1%
Taylor expanded in x around 0
/-lowering-/.f6444.5%
Simplified44.5%
if 4.00000000000000007e205 < z Initial program 95.0%
Taylor expanded in y around 0
Simplified99.9%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6495.0%
Simplified95.0%
Taylor expanded in y around 0
/-lowering-/.f6483.8%
Simplified83.8%
(FPCore (x y z)
:precision binary64
(if (<= z -1.45e+29)
(* y (/ (* z z) x))
(if (<= z 1e-33)
(/ 0.083333333333333 x)
(if (<= z 1.8e+205)
(* z (* y (/ z x)))
(* (/ 0.0007936500793651 x) (* z z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.45e+29) {
tmp = y * ((z * z) / x);
} else if (z <= 1e-33) {
tmp = 0.083333333333333 / x;
} else if (z <= 1.8e+205) {
tmp = z * (y * (z / x));
} else {
tmp = (0.0007936500793651 / x) * (z * z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-1.45d+29)) then
tmp = y * ((z * z) / x)
else if (z <= 1d-33) then
tmp = 0.083333333333333d0 / x
else if (z <= 1.8d+205) then
tmp = z * (y * (z / x))
else
tmp = (0.0007936500793651d0 / x) * (z * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.45e+29) {
tmp = y * ((z * z) / x);
} else if (z <= 1e-33) {
tmp = 0.083333333333333 / x;
} else if (z <= 1.8e+205) {
tmp = z * (y * (z / x));
} else {
tmp = (0.0007936500793651 / x) * (z * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.45e+29: tmp = y * ((z * z) / x) elif z <= 1e-33: tmp = 0.083333333333333 / x elif z <= 1.8e+205: tmp = z * (y * (z / x)) else: tmp = (0.0007936500793651 / x) * (z * z) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.45e+29) tmp = Float64(y * Float64(Float64(z * z) / x)); elseif (z <= 1e-33) tmp = Float64(0.083333333333333 / x); elseif (z <= 1.8e+205) tmp = Float64(z * Float64(y * Float64(z / x))); else tmp = Float64(Float64(0.0007936500793651 / x) * Float64(z * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.45e+29) tmp = y * ((z * z) / x); elseif (z <= 1e-33) tmp = 0.083333333333333 / x; elseif (z <= 1.8e+205) tmp = z * (y * (z / x)); else tmp = (0.0007936500793651 / x) * (z * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.45e+29], N[(y * N[(N[(z * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1e-33], N[(0.083333333333333 / x), $MachinePrecision], If[LessEqual[z, 1.8e+205], N[(z * N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.0007936500793651 / x), $MachinePrecision] * N[(z * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;y \cdot \frac{z \cdot z}{x}\\
\mathbf{elif}\;z \leq 10^{-33}:\\
\;\;\;\;\frac{0.083333333333333}{x}\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+205}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{z}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.0007936500793651}{x} \cdot \left(z \cdot z\right)\\
\end{array}
\end{array}
if z < -1.45e29Initial program 86.6%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.0%
Simplified50.0%
associate-*r*N/A
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
*-lowering-*.f6457.8%
Applied egg-rr57.8%
if -1.45e29 < z < 1.0000000000000001e-33Initial program 99.5%
Taylor expanded in z around 0
/-lowering-/.f6492.0%
Simplified92.0%
Taylor expanded in x around 0
/-lowering-/.f6442.5%
Simplified42.5%
if 1.0000000000000001e-33 < z < 1.80000000000000001e205Initial program 88.0%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.5%
Simplified41.5%
associate-*r*N/A
associate-*l/N/A
associate-/l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6444.9%
Applied egg-rr44.9%
if 1.80000000000000001e205 < z Initial program 95.0%
Taylor expanded in y around 0
Simplified99.9%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6495.0%
Simplified95.0%
Taylor expanded in y around 0
/-lowering-/.f6483.8%
Simplified83.8%
Final simplification50.1%
(FPCore (x y z)
:precision binary64
(if (<= z -1.45e+29)
(* (/ y x) (* z z))
(if (<= z 5.2e-34)
(/ 0.083333333333333 x)
(if (<= z 3.25e+205)
(* z (* y (/ z x)))
(* (/ 0.0007936500793651 x) (* z z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.45e+29) {
tmp = (y / x) * (z * z);
} else if (z <= 5.2e-34) {
tmp = 0.083333333333333 / x;
} else if (z <= 3.25e+205) {
tmp = z * (y * (z / x));
} else {
tmp = (0.0007936500793651 / x) * (z * z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-1.45d+29)) then
tmp = (y / x) * (z * z)
else if (z <= 5.2d-34) then
tmp = 0.083333333333333d0 / x
else if (z <= 3.25d+205) then
tmp = z * (y * (z / x))
else
tmp = (0.0007936500793651d0 / x) * (z * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.45e+29) {
tmp = (y / x) * (z * z);
} else if (z <= 5.2e-34) {
tmp = 0.083333333333333 / x;
} else if (z <= 3.25e+205) {
tmp = z * (y * (z / x));
} else {
tmp = (0.0007936500793651 / x) * (z * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.45e+29: tmp = (y / x) * (z * z) elif z <= 5.2e-34: tmp = 0.083333333333333 / x elif z <= 3.25e+205: tmp = z * (y * (z / x)) else: tmp = (0.0007936500793651 / x) * (z * z) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.45e+29) tmp = Float64(Float64(y / x) * Float64(z * z)); elseif (z <= 5.2e-34) tmp = Float64(0.083333333333333 / x); elseif (z <= 3.25e+205) tmp = Float64(z * Float64(y * Float64(z / x))); else tmp = Float64(Float64(0.0007936500793651 / x) * Float64(z * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.45e+29) tmp = (y / x) * (z * z); elseif (z <= 5.2e-34) tmp = 0.083333333333333 / x; elseif (z <= 3.25e+205) tmp = z * (y * (z / x)); else tmp = (0.0007936500793651 / x) * (z * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.45e+29], N[(N[(y / x), $MachinePrecision] * N[(z * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e-34], N[(0.083333333333333 / x), $MachinePrecision], If[LessEqual[z, 3.25e+205], N[(z * N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(0.0007936500793651 / x), $MachinePrecision] * N[(z * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;\frac{y}{x} \cdot \left(z \cdot z\right)\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-34}:\\
\;\;\;\;\frac{0.083333333333333}{x}\\
\mathbf{elif}\;z \leq 3.25 \cdot 10^{+205}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{z}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{0.0007936500793651}{x} \cdot \left(z \cdot z\right)\\
\end{array}
\end{array}
if z < -1.45e29Initial program 86.6%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.0%
Simplified50.0%
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.9%
Applied egg-rr54.9%
if -1.45e29 < z < 5.1999999999999999e-34Initial program 99.5%
Taylor expanded in z around 0
/-lowering-/.f6492.0%
Simplified92.0%
Taylor expanded in x around 0
/-lowering-/.f6442.5%
Simplified42.5%
if 5.1999999999999999e-34 < z < 3.24999999999999986e205Initial program 88.0%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6441.5%
Simplified41.5%
associate-*r*N/A
associate-*l/N/A
associate-/l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6444.9%
Applied egg-rr44.9%
if 3.24999999999999986e205 < z Initial program 95.0%
Taylor expanded in y around 0
Simplified99.9%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6495.0%
Simplified95.0%
Taylor expanded in y around 0
/-lowering-/.f6483.8%
Simplified83.8%
Final simplification49.4%
(FPCore (x y z)
:precision binary64
(if (<= z -0.000195)
(* z (* (/ z x) (+ y 0.0007936500793651)))
(if (<= z 5.6e-34)
(/ (+ 0.083333333333333 (* z -0.0027777777777778)) x)
(* z (* z (+ (/ y x) (/ 0.0007936500793651 x)))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -0.000195) {
tmp = z * ((z / x) * (y + 0.0007936500793651));
} else if (z <= 5.6e-34) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else {
tmp = z * (z * ((y / x) + (0.0007936500793651 / x)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-0.000195d0)) then
tmp = z * ((z / x) * (y + 0.0007936500793651d0))
else if (z <= 5.6d-34) then
tmp = (0.083333333333333d0 + (z * (-0.0027777777777778d0))) / x
else
tmp = z * (z * ((y / x) + (0.0007936500793651d0 / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -0.000195) {
tmp = z * ((z / x) * (y + 0.0007936500793651));
} else if (z <= 5.6e-34) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else {
tmp = z * (z * ((y / x) + (0.0007936500793651 / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -0.000195: tmp = z * ((z / x) * (y + 0.0007936500793651)) elif z <= 5.6e-34: tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x else: tmp = z * (z * ((y / x) + (0.0007936500793651 / x))) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -0.000195) tmp = Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))); elseif (z <= 5.6e-34) tmp = Float64(Float64(0.083333333333333 + Float64(z * -0.0027777777777778)) / x); else tmp = Float64(z * Float64(z * Float64(Float64(y / x) + Float64(0.0007936500793651 / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -0.000195) tmp = z * ((z / x) * (y + 0.0007936500793651)); elseif (z <= 5.6e-34) tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x; else tmp = z * (z * ((y / x) + (0.0007936500793651 / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -0.000195], N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-34], N[(N[(0.083333333333333 + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(z * N[(z * N[(N[(y / x), $MachinePrecision] + N[(0.0007936500793651 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.000195:\\
\;\;\;\;z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-34}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(z \cdot \left(\frac{y}{x} + \frac{0.0007936500793651}{x}\right)\right)\\
\end{array}
\end{array}
if z < -1.94999999999999996e-4Initial program 87.4%
Taylor expanded in y around 0
Simplified99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6483.7%
Simplified83.7%
if -1.94999999999999996e-4 < z < 5.59999999999999994e-34Initial program 99.6%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6448.9%
Simplified48.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6444.2%
Simplified44.2%
if 5.59999999999999994e-34 < z Initial program 89.7%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f6472.4%
Simplified72.4%
Final simplification63.9%
(FPCore (x y z)
:precision binary64
(if (<= x 1.18e+29)
(/
(+
(+ 0.083333333333333 (* z (* z (+ y 0.0007936500793651))))
(* z -0.0027777777777778))
x)
(* z (* (/ z x) (+ y 0.0007936500793651)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 1.18e+29) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else {
tmp = z * ((z / x) * (y + 0.0007936500793651));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 1.18d+29) then
tmp = ((0.083333333333333d0 + (z * (z * (y + 0.0007936500793651d0)))) + (z * (-0.0027777777777778d0))) / x
else
tmp = z * ((z / x) * (y + 0.0007936500793651d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 1.18e+29) {
tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x;
} else {
tmp = z * ((z / x) * (y + 0.0007936500793651));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 1.18e+29: tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x else: tmp = z * ((z / x) * (y + 0.0007936500793651)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 1.18e+29) tmp = Float64(Float64(Float64(0.083333333333333 + Float64(z * Float64(z * Float64(y + 0.0007936500793651)))) + Float64(z * -0.0027777777777778)) / x); else tmp = Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 1.18e+29) tmp = ((0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) + (z * -0.0027777777777778)) / x; else tmp = z * ((z / x) * (y + 0.0007936500793651)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 1.18e+29], N[(N[(N[(0.083333333333333 + N[(z * N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.18 \cdot 10^{+29}:\\
\;\;\;\;\frac{\left(0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right)\right)\right) + z \cdot -0.0027777777777778}{x}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\\
\end{array}
\end{array}
if x < 1.18e29Initial program 99.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6493.1%
Simplified93.1%
distribute-lft-inN/A
associate-+r+N/A
*-commutativeN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6493.1%
Applied egg-rr93.1%
if 1.18e29 < x Initial program 85.6%
Taylor expanded in y around 0
Simplified99.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.6%
Simplified99.6%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6436.6%
Simplified36.6%
Final simplification66.9%
(FPCore (x y z)
:precision binary64
(if (<= z -0.00085)
(* z (* (/ z x) (+ y 0.0007936500793651)))
(if (<= z 9e-34)
(/ (+ 0.083333333333333 (* z -0.0027777777777778)) x)
(* z (/ (+ y 0.0007936500793651) (/ x z))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -0.00085) {
tmp = z * ((z / x) * (y + 0.0007936500793651));
} else if (z <= 9e-34) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-0.00085d0)) then
tmp = z * ((z / x) * (y + 0.0007936500793651d0))
else if (z <= 9d-34) then
tmp = (0.083333333333333d0 + (z * (-0.0027777777777778d0))) / x
else
tmp = z * ((y + 0.0007936500793651d0) / (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -0.00085) {
tmp = z * ((z / x) * (y + 0.0007936500793651));
} else if (z <= 9e-34) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else {
tmp = z * ((y + 0.0007936500793651) / (x / z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -0.00085: tmp = z * ((z / x) * (y + 0.0007936500793651)) elif z <= 9e-34: tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x else: tmp = z * ((y + 0.0007936500793651) / (x / z)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -0.00085) tmp = Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))); elseif (z <= 9e-34) tmp = Float64(Float64(0.083333333333333 + Float64(z * -0.0027777777777778)) / x); else tmp = Float64(z * Float64(Float64(y + 0.0007936500793651) / Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -0.00085) tmp = z * ((z / x) * (y + 0.0007936500793651)); elseif (z <= 9e-34) tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x; else tmp = z * ((y + 0.0007936500793651) / (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -0.00085], N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e-34], N[(N[(0.083333333333333 + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(z * N[(N[(y + 0.0007936500793651), $MachinePrecision] / N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.00085:\\
\;\;\;\;z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-34}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y + 0.0007936500793651}{\frac{x}{z}}\\
\end{array}
\end{array}
if z < -8.49999999999999953e-4Initial program 87.4%
Taylor expanded in y around 0
Simplified99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.8%
Simplified99.8%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6483.7%
Simplified83.7%
if -8.49999999999999953e-4 < z < 9.00000000000000085e-34Initial program 99.6%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6448.9%
Simplified48.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6444.2%
Simplified44.2%
if 9.00000000000000085e-34 < z Initial program 89.7%
Taylor expanded in y around 0
Simplified99.8%
Taylor expanded in z around inf
*-commutativeN/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
unpow2N/A
*-lowering-*.f6468.2%
Simplified68.2%
associate-*r*N/A
*-commutativeN/A
div-invN/A
div-invN/A
distribute-rgt-outN/A
associate-*l*N/A
div-invN/A
*-lowering-*.f64N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f6472.4%
Applied egg-rr72.4%
Final simplification63.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* z (* (/ z x) (+ y 0.0007936500793651)))))
(if (<= z -0.00026)
t_0
(if (<= z 1.12e-33)
(/ (+ 0.083333333333333 (* z -0.0027777777777778)) x)
t_0))))
double code(double x, double y, double z) {
double t_0 = z * ((z / x) * (y + 0.0007936500793651));
double tmp;
if (z <= -0.00026) {
tmp = t_0;
} else if (z <= 1.12e-33) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z * ((z / x) * (y + 0.0007936500793651d0))
if (z <= (-0.00026d0)) then
tmp = t_0
else if (z <= 1.12d-33) then
tmp = (0.083333333333333d0 + (z * (-0.0027777777777778d0))) / x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * ((z / x) * (y + 0.0007936500793651));
double tmp;
if (z <= -0.00026) {
tmp = t_0;
} else if (z <= 1.12e-33) {
tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * ((z / x) * (y + 0.0007936500793651)) tmp = 0 if z <= -0.00026: tmp = t_0 elif z <= 1.12e-33: tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))) tmp = 0.0 if (z <= -0.00026) tmp = t_0; elseif (z <= 1.12e-33) tmp = Float64(Float64(0.083333333333333 + Float64(z * -0.0027777777777778)) / x); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * ((z / x) * (y + 0.0007936500793651)); tmp = 0.0; if (z <= -0.00026) tmp = t_0; elseif (z <= 1.12e-33) tmp = (0.083333333333333 + (z * -0.0027777777777778)) / x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.00026], t$95$0, If[LessEqual[z, 1.12e-33], N[(N[(0.083333333333333 + N[(z * -0.0027777777777778), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\\
\mathbf{if}\;z \leq -0.00026:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-33}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot -0.0027777777777778}{x}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -2.59999999999999977e-4 or 1.11999999999999999e-33 < z Initial program 88.5%
Taylor expanded in y around 0
Simplified99.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.6%
Simplified99.6%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6478.1%
Simplified78.1%
if -2.59999999999999977e-4 < z < 1.11999999999999999e-33Initial program 99.6%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6448.9%
Simplified48.9%
Taylor expanded in z around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6444.2%
Simplified44.2%
Final simplification63.9%
(FPCore (x y z)
:precision binary64
(if (<= x 3.75e+28)
(/
(+
0.083333333333333
(* z (+ -0.0027777777777778 (* z (+ y 0.0007936500793651)))))
x)
(* z (* (/ z x) (+ y 0.0007936500793651)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 3.75e+28) {
tmp = (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x;
} else {
tmp = z * ((z / x) * (y + 0.0007936500793651));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 3.75d+28) then
tmp = (0.083333333333333d0 + (z * ((-0.0027777777777778d0) + (z * (y + 0.0007936500793651d0))))) / x
else
tmp = z * ((z / x) * (y + 0.0007936500793651d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 3.75e+28) {
tmp = (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x;
} else {
tmp = z * ((z / x) * (y + 0.0007936500793651));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 3.75e+28: tmp = (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x else: tmp = z * ((z / x) * (y + 0.0007936500793651)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 3.75e+28) tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(-0.0027777777777778 + Float64(z * Float64(y + 0.0007936500793651))))) / x); else tmp = Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 3.75e+28) tmp = (0.083333333333333 + (z * (-0.0027777777777778 + (z * (y + 0.0007936500793651))))) / x; else tmp = z * ((z / x) * (y + 0.0007936500793651)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 3.75e+28], N[(N[(0.083333333333333 + N[(z * N[(-0.0027777777777778 + N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.75 \cdot 10^{+28}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(-0.0027777777777778 + z \cdot \left(y + 0.0007936500793651\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\\
\end{array}
\end{array}
if x < 3.7499999999999999e28Initial program 99.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6493.1%
Simplified93.1%
if 3.7499999999999999e28 < x Initial program 85.6%
Taylor expanded in y around 0
Simplified99.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.6%
Simplified99.6%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6436.6%
Simplified36.6%
Final simplification66.8%
(FPCore (x y z) :precision binary64 (if (<= z -1.45e+29) (* (/ y x) (* z z)) (if (<= z 3.25e-34) (/ 0.083333333333333 x) (* z (* y (/ z x))))))
double code(double x, double y, double z) {
double tmp;
if (z <= -1.45e+29) {
tmp = (y / x) * (z * z);
} else if (z <= 3.25e-34) {
tmp = 0.083333333333333 / x;
} else {
tmp = z * (y * (z / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-1.45d+29)) then
tmp = (y / x) * (z * z)
else if (z <= 3.25d-34) then
tmp = 0.083333333333333d0 / x
else
tmp = z * (y * (z / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -1.45e+29) {
tmp = (y / x) * (z * z);
} else if (z <= 3.25e-34) {
tmp = 0.083333333333333 / x;
} else {
tmp = z * (y * (z / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -1.45e+29: tmp = (y / x) * (z * z) elif z <= 3.25e-34: tmp = 0.083333333333333 / x else: tmp = z * (y * (z / x)) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -1.45e+29) tmp = Float64(Float64(y / x) * Float64(z * z)); elseif (z <= 3.25e-34) tmp = Float64(0.083333333333333 / x); else tmp = Float64(z * Float64(y * Float64(z / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -1.45e+29) tmp = (y / x) * (z * z); elseif (z <= 3.25e-34) tmp = 0.083333333333333 / x; else tmp = z * (y * (z / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -1.45e+29], N[(N[(y / x), $MachinePrecision] * N[(z * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.25e-34], N[(0.083333333333333 / x), $MachinePrecision], N[(z * N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;\frac{y}{x} \cdot \left(z \cdot z\right)\\
\mathbf{elif}\;z \leq 3.25 \cdot 10^{-34}:\\
\;\;\;\;\frac{0.083333333333333}{x}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(y \cdot \frac{z}{x}\right)\\
\end{array}
\end{array}
if z < -1.45e29Initial program 86.6%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6450.0%
Simplified50.0%
associate-*r*N/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6454.9%
Applied egg-rr54.9%
if -1.45e29 < z < 3.24999999999999993e-34Initial program 99.5%
Taylor expanded in z around 0
/-lowering-/.f6492.0%
Simplified92.0%
Taylor expanded in x around 0
/-lowering-/.f6442.5%
Simplified42.5%
if 3.24999999999999993e-34 < z Initial program 89.7%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6444.9%
Simplified44.9%
associate-*r*N/A
associate-*l/N/A
associate-/l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6447.5%
Applied egg-rr47.5%
Final simplification47.4%
(FPCore (x y z) :precision binary64 (let* ((t_0 (* z (* y (/ z x))))) (if (<= z -1.45e+29) t_0 (if (<= z 7.5e-34) (/ 0.083333333333333 x) t_0))))
double code(double x, double y, double z) {
double t_0 = z * (y * (z / x));
double tmp;
if (z <= -1.45e+29) {
tmp = t_0;
} else if (z <= 7.5e-34) {
tmp = 0.083333333333333 / x;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z * (y * (z / x))
if (z <= (-1.45d+29)) then
tmp = t_0
else if (z <= 7.5d-34) then
tmp = 0.083333333333333d0 / x
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z * (y * (z / x));
double tmp;
if (z <= -1.45e+29) {
tmp = t_0;
} else if (z <= 7.5e-34) {
tmp = 0.083333333333333 / x;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = z * (y * (z / x)) tmp = 0 if z <= -1.45e+29: tmp = t_0 elif z <= 7.5e-34: tmp = 0.083333333333333 / x else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(z * Float64(y * Float64(z / x))) tmp = 0.0 if (z <= -1.45e+29) tmp = t_0; elseif (z <= 7.5e-34) tmp = Float64(0.083333333333333 / x); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = z * (y * (z / x)); tmp = 0.0; if (z <= -1.45e+29) tmp = t_0; elseif (z <= 7.5e-34) tmp = 0.083333333333333 / x; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z * N[(y * N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+29], t$95$0, If[LessEqual[z, 7.5e-34], N[(0.083333333333333 / x), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := z \cdot \left(y \cdot \frac{z}{x}\right)\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-34}:\\
\;\;\;\;\frac{0.083333333333333}{x}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -1.45e29 or 7.5000000000000004e-34 < z Initial program 88.2%
Taylor expanded in y around inf
/-lowering-/.f64N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f6447.4%
Simplified47.4%
associate-*r*N/A
associate-*l/N/A
associate-/l*N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
/-lowering-/.f6450.6%
Applied egg-rr50.6%
if -1.45e29 < z < 7.5000000000000004e-34Initial program 99.5%
Taylor expanded in z around 0
/-lowering-/.f6492.0%
Simplified92.0%
Taylor expanded in x around 0
/-lowering-/.f6442.5%
Simplified42.5%
Final simplification47.1%
(FPCore (x y z) :precision binary64 (if (<= x 3.1e+28) (/ (+ 0.083333333333333 (* z (* z (+ y 0.0007936500793651)))) x) (* z (* (/ z x) (+ y 0.0007936500793651)))))
double code(double x, double y, double z) {
double tmp;
if (x <= 3.1e+28) {
tmp = (0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) / x;
} else {
tmp = z * ((z / x) * (y + 0.0007936500793651));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= 3.1d+28) then
tmp = (0.083333333333333d0 + (z * (z * (y + 0.0007936500793651d0)))) / x
else
tmp = z * ((z / x) * (y + 0.0007936500793651d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= 3.1e+28) {
tmp = (0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) / x;
} else {
tmp = z * ((z / x) * (y + 0.0007936500793651));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= 3.1e+28: tmp = (0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) / x else: tmp = z * ((z / x) * (y + 0.0007936500793651)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= 3.1e+28) tmp = Float64(Float64(0.083333333333333 + Float64(z * Float64(z * Float64(y + 0.0007936500793651)))) / x); else tmp = Float64(z * Float64(Float64(z / x) * Float64(y + 0.0007936500793651))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= 3.1e+28) tmp = (0.083333333333333 + (z * (z * (y + 0.0007936500793651)))) / x; else tmp = z * ((z / x) * (y + 0.0007936500793651)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, 3.1e+28], N[(N[(0.083333333333333 + N[(z * N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision], N[(z * N[(N[(z / x), $MachinePrecision] * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 3.1 \cdot 10^{+28}:\\
\;\;\;\;\frac{0.083333333333333 + z \cdot \left(z \cdot \left(y + 0.0007936500793651\right)\right)}{x}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(\frac{z}{x} \cdot \left(y + 0.0007936500793651\right)\right)\\
\end{array}
\end{array}
if x < 3.1000000000000001e28Initial program 99.7%
Taylor expanded in x around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6493.1%
Simplified93.1%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f6491.7%
Simplified91.7%
if 3.1000000000000001e28 < x Initial program 85.6%
Taylor expanded in y around 0
Simplified99.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
mul-1-negN/A
log-recN/A
remove-double-negN/A
log-lowering-log.f6499.6%
Simplified99.6%
Taylor expanded in z around inf
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
distribute-rgt-inN/A
associate-*r/N/A
metadata-evalN/A
associate-*l/N/A
associate-*r/N/A
associate-*l/N/A
associate-/l*N/A
distribute-rgt-outN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f6436.6%
Simplified36.6%
Final simplification66.1%
(FPCore (x y z) :precision binary64 (* y (/ 0.083333333333333 (* x y))))
double code(double x, double y, double z) {
return y * (0.083333333333333 / (x * y));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y * (0.083333333333333d0 / (x * y))
end function
public static double code(double x, double y, double z) {
return y * (0.083333333333333 / (x * y));
}
def code(x, y, z): return y * (0.083333333333333 / (x * y))
function code(x, y, z) return Float64(y * Float64(0.083333333333333 / Float64(x * y))) end
function tmp = code(x, y, z) tmp = y * (0.083333333333333 / (x * y)); end
code[x_, y_, z_] := N[(y * N[(0.083333333333333 / N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
y \cdot \frac{0.083333333333333}{x \cdot y}
\end{array}
Initial program 93.1%
Taylor expanded in y around -inf
Simplified63.3%
Taylor expanded in z around 0
*-lowering-*.f64N/A
associate--l+N/A
associate-*r/N/A
metadata-evalN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
+-commutativeN/A
associate--l+N/A
+-lowering-+.f64N/A
Simplified45.9%
Taylor expanded in x around 0
/-lowering-/.f64N/A
*-lowering-*.f6422.9%
Simplified22.9%
(FPCore (x y z) :precision binary64 (/ 0.083333333333333 x))
double code(double x, double y, double z) {
return 0.083333333333333 / x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 0.083333333333333d0 / x
end function
public static double code(double x, double y, double z) {
return 0.083333333333333 / x;
}
def code(x, y, z): return 0.083333333333333 / x
function code(x, y, z) return Float64(0.083333333333333 / x) end
function tmp = code(x, y, z) tmp = 0.083333333333333 / x; end
code[x_, y_, z_] := N[(0.083333333333333 / x), $MachinePrecision]
\begin{array}{l}
\\
\frac{0.083333333333333}{x}
\end{array}
Initial program 93.1%
Taylor expanded in z around 0
/-lowering-/.f6452.9%
Simplified52.9%
Taylor expanded in x around 0
/-lowering-/.f6420.8%
Simplified20.8%
(FPCore (x y z) :precision binary64 (+ (+ (+ (* (- x 0.5) (log x)) (- 0.91893853320467 x)) (/ 0.083333333333333 x)) (* (/ z x) (- (* z (+ y 0.0007936500793651)) 0.0027777777777778))))
double code(double x, double y, double z) {
return ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((((x - 0.5d0) * log(x)) + (0.91893853320467d0 - x)) + (0.083333333333333d0 / x)) + ((z / x) * ((z * (y + 0.0007936500793651d0)) - 0.0027777777777778d0))
end function
public static double code(double x, double y, double z) {
return ((((x - 0.5) * Math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778));
}
def code(x, y, z): return ((((x - 0.5) * math.log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778))
function code(x, y, z) return Float64(Float64(Float64(Float64(Float64(x - 0.5) * log(x)) + Float64(0.91893853320467 - x)) + Float64(0.083333333333333 / x)) + Float64(Float64(z / x) * Float64(Float64(z * Float64(y + 0.0007936500793651)) - 0.0027777777777778))) end
function tmp = code(x, y, z) tmp = ((((x - 0.5) * log(x)) + (0.91893853320467 - x)) + (0.083333333333333 / x)) + ((z / x) * ((z * (y + 0.0007936500793651)) - 0.0027777777777778)); end
code[x_, y_, z_] := N[(N[(N[(N[(N[(x - 0.5), $MachinePrecision] * N[Log[x], $MachinePrecision]), $MachinePrecision] + N[(0.91893853320467 - x), $MachinePrecision]), $MachinePrecision] + N[(0.083333333333333 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(z / x), $MachinePrecision] * N[(N[(z * N[(y + 0.0007936500793651), $MachinePrecision]), $MachinePrecision] - 0.0027777777777778), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(x - 0.5\right) \cdot \log x + \left(0.91893853320467 - x\right)\right) + \frac{0.083333333333333}{x}\right) + \frac{z}{x} \cdot \left(z \cdot \left(y + 0.0007936500793651\right) - 0.0027777777777778\right)
\end{array}
herbie shell --seed 2024161
(FPCore (x y z)
:name "Numeric.SpecFunctions:$slogFactorial from math-functions-0.1.5.2, B"
:precision binary64
:alt
(! :herbie-platform default (+ (+ (+ (* (- x 1/2) (log x)) (- 91893853320467/100000000000000 x)) (/ 83333333333333/1000000000000000 x)) (* (/ z x) (- (* z (+ y 7936500793651/10000000000000000)) 13888888888889/5000000000000000))))
(+ (+ (- (* (- x 0.5) (log x)) x) 0.91893853320467) (/ (+ (* (- (* (+ y 0.0007936500793651) z) 0.0027777777777778) z) 0.083333333333333) x)))