
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 (- INFINITY))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= t_1 5e+305) t_1 (* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (t_1 <= 5e+305) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (t_1 <= 5e+305) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif t_1 <= 5e+305: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (t_1 <= 5e+305) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (t_1 <= 5e+305) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+305], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 4.6%
associate-/l*51.7%
sub-neg51.7%
metadata-eval51.7%
fma-define51.7%
fma-define51.7%
fma-define51.7%
fma-define51.7%
fma-define51.7%
fma-define51.7%
fma-define51.7%
Simplified51.7%
Taylor expanded in x around -inf 99.5%
mul-1-neg99.5%
unsub-neg99.5%
mul-1-neg99.5%
unsub-neg99.5%
mul-1-neg99.5%
unsub-neg99.5%
mul-1-neg99.5%
unsub-neg99.5%
Simplified99.5%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000009e305Initial program 99.5%
if 5.00000000000000009e305 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in z around 0 3.1%
Taylor expanded in x around inf 98.2%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_2 (/ z t_1)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_1) 5e+305)
(* (+ x -2.0) (+ t_2 (/ t_0 t_1)))
(* (+ x -2.0) (+ 4.16438922228 t_2)))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 5e+305) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
t_1 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_2 = z / t_1
if ((((x - 2.0d0) * (t_0 + z)) / t_1) <= 5d+305) then
tmp = (x + (-2.0d0)) * (t_2 + (t_0 / t_1))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_1) <= 5e+305) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_2 = z / t_1 tmp = 0 if (((x - 2.0) * (t_0 + z)) / t_1) <= 5e+305: tmp = (x + -2.0) * (t_2 + (t_0 / t_1)) else: tmp = (x + -2.0) * (4.16438922228 + t_2) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_1) <= 5e+305) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(t_0 / t_1))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_2)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * (t_0 + z)) / t_1) <= 5e+305) tmp = (x + -2.0) * (t_2 + (t_0 / t_1)); else tmp = (x + -2.0) * (4.16438922228 + t_2); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 5e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_2 := \frac{z}{t\_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_1} \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + \frac{t\_0}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_2\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000009e305Initial program 96.0%
associate-/l*97.7%
sub-neg97.7%
metadata-eval97.7%
fma-define97.7%
fma-define97.7%
fma-define97.7%
fma-define97.7%
fma-define97.7%
fma-define97.7%
fma-define97.7%
Simplified97.7%
Taylor expanded in z around 0 97.7%
if 5.00000000000000009e305 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
fma-define3.1%
Simplified3.1%
Taylor expanded in z around 0 3.1%
Taylor expanded in x around inf 98.2%
Final simplification97.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2.8e+26) (not (<= x 245000000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.8e+26) || !(x <= 245000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-2.8d+26)) .or. (.not. (x <= 245000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.8e+26) || !(x <= 245000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.8e+26) or not (x <= 245000000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.8e+26) || !(x <= 245000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.8e+26) || ~((x <= 245000000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.8e+26], N[Not[LessEqual[x, 245000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{+26} \lor \neg \left(x \leq 245000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -2.8e26 or 2.45e8 < x Initial program 10.8%
associate-/l*15.7%
sub-neg15.7%
metadata-eval15.7%
fma-define15.8%
fma-define15.8%
fma-define15.8%
fma-define15.8%
fma-define15.8%
fma-define15.8%
fma-define15.8%
Simplified15.8%
Taylor expanded in x around -inf 97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
Simplified97.3%
if -2.8e26 < x < 2.45e8Initial program 99.6%
Taylor expanded in x around 0 98.6%
*-commutative98.6%
Simplified98.6%
Final simplification98.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 31.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(+
(* z 0.14147091005106402)
(-
(*
x
(-
(+ (* z 0.11894829608144908) (* z -0.9419973339841735))
2.9217875995295866))
(* y 0.0212463641547976))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 31.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
}
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 <= (-5.5d0)) .or. (.not. (x <= 31.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) + ((x * (((z * 0.11894829608144908d0) + (z * (-0.9419973339841735d0))) - 2.9217875995295866d0)) - (y * 0.0212463641547976d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 31.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 31.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866)) - (y * 0.0212463641547976))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 31.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) + Float64(Float64(x * Float64(Float64(Float64(z * 0.11894829608144908) + Float64(z * -0.9419973339841735)) - 2.9217875995295866)) - Float64(y * 0.0212463641547976)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 31.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * (((z * 0.11894829608144908) + (z * -0.9419973339841735)) - 2.9217875995295866)) - (y * 0.0212463641547976))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 31.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] + N[(N[(x * N[(N[(N[(z * 0.11894829608144908), $MachinePrecision] + N[(z * -0.9419973339841735), $MachinePrecision]), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 31\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 + \left(x \cdot \left(\left(z \cdot 0.11894829608144908 + z \cdot -0.9419973339841735\right) - 2.9217875995295866\right) - y \cdot 0.0212463641547976\right)\right)\right)\\
\end{array}
\end{array}
if x < -5.5 or 31 < x Initial program 15.9%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around -inf 95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
Simplified95.1%
if -5.5 < x < 31Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 97.9%
Taylor expanded in y around 0 97.8%
*-commutative97.8%
Simplified97.8%
Final simplification96.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1020.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.8e-61)
(*
(+ x -2.0)
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))))
(if (<= x 1.42)
(* (* x y) -0.0424927283095952)
(*
x
(-
(/ -8.32877844456 x)
(-
(/ 180.4846382693211 x)
(+ 4.16438922228 (/ 78.6994924154 x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1020.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.8e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} else if (x <= 1.42) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / 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 <= (-1020.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.8d-61) then
tmp = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))))
else if (x <= 1.42d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * (((-8.32877844456d0) / x) - ((180.4846382693211d0 / x) - (4.16438922228d0 + (78.6994924154d0 / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1020.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.8e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} else if (x <= 1.42) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1020.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.8e-61: tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) elif x <= 1.42: tmp = (x * y) * -0.0424927283095952 else: tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1020.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.8e-61) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))))); elseif (x <= 1.42) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * Float64(Float64(-8.32877844456 / x) - Float64(Float64(180.4846382693211 / x) - Float64(4.16438922228 + Float64(78.6994924154 / x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1020.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.8e-61) tmp = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))); elseif (x <= 1.42) tmp = (x * y) * -0.0424927283095952; else tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1020.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.8e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.42], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * N[(N[(-8.32877844456 / x), $MachinePrecision] - N[(N[(180.4846382693211 / x), $MachinePrecision] - N[(4.16438922228 + N[(78.6994924154 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1020:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 1.42:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-8.32877844456}{x} - \left(\frac{180.4846382693211}{x} - \left(4.16438922228 + \frac{78.6994924154}{x}\right)\right)\right)\\
\end{array}
\end{array}
if x < -1020Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -1020 < x < 1.80000000000000007e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.7%
*-commutative70.7%
Simplified70.7%
if 1.80000000000000007e-61 < x < 1.4199999999999999Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
if 1.4199999999999999 < x Initial program 11.6%
add-cube-cbrt11.4%
pow311.4%
Applied egg-rr11.4%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
+-commutative94.9%
rem-cube-cbrt94.9%
associate-*r/94.9%
metadata-eval94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
Simplified94.9%
Final simplification77.0%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.6e-61)
(* (+ x -2.0) (/ z (+ 47.066876606 (* x 313.399215894))))
(if (<= x 1.1)
(* (* x y) -0.0424927283095952)
(*
x
(-
(/ -8.32877844456 x)
(-
(/ 180.4846382693211 x)
(+ 4.16438922228 (/ 78.6994924154 x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.6e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 1.1) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / 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 <= (-36.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.6d-61) then
tmp = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * 313.399215894d0)))
else if (x <= 1.1d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * (((-8.32877844456d0) / x) - ((180.4846382693211d0 / x) - (4.16438922228d0 + (78.6994924154d0 / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.6e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 1.1) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.6e-61: tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))) elif x <= 1.1: tmp = (x * y) * -0.0424927283095952 else: tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.6e-61) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * 313.399215894)))); elseif (x <= 1.1) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * Float64(Float64(-8.32877844456 / x) - Float64(Float64(180.4846382693211 / x) - Float64(4.16438922228 + Float64(78.6994924154 / x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -36.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.6e-61) tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))); elseif (x <= 1.1) tmp = (x * y) * -0.0424927283095952; else tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.6e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * N[(N[(-8.32877844456 / x), $MachinePrecision] - N[(N[(180.4846382693211 / x), $MachinePrecision] - N[(4.16438922228 + N[(78.6994924154 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 1.1:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-8.32877844456}{x} - \left(\frac{180.4846382693211}{x} - \left(4.16438922228 + \frac{78.6994924154}{x}\right)\right)\right)\\
\end{array}
\end{array}
if x < -36Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -36 < x < 1.6000000000000001e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
if 1.6000000000000001e-61 < x < 1.1000000000000001Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
if 1.1000000000000001 < x Initial program 11.6%
add-cube-cbrt11.4%
pow311.4%
Applied egg-rr11.4%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
+-commutative94.9%
rem-cube-cbrt94.9%
associate-*r/94.9%
metadata-eval94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
Simplified94.9%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 0.62)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(+ (* -0.14147091005106402 (* x z)) (* 0.0212463641547976 (* x y)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.62)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y))));
}
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 <= (-5.5d0)) .or. (.not. (x <= 0.62d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (((-0.14147091005106402d0) * (x * z)) + (0.0212463641547976d0 * (x * y))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.62)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 0.62): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 0.62)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(Float64(-0.14147091005106402 * Float64(x * z)) + Float64(0.0212463641547976 * Float64(x * y))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 0.62))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 0.62]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(N[(-0.14147091005106402 * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 0.62\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + \left(-0.14147091005106402 \cdot \left(x \cdot z\right) + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if x < -5.5 or 0.619999999999999996 < x Initial program 15.9%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around -inf 95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
Simplified95.1%
if -5.5 < x < 0.619999999999999996Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.2%
Taylor expanded in y around 0 91.3%
Final simplification93.1%
(FPCore (x y z)
:precision binary64
(if (<= x -235.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 49.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(+ (* -0.14147091005106402 (* x z)) (* 0.0212463641547976 (* x y)))))
(*
x
(-
(/ -8.32877844456 x)
(- (/ 180.4846382693211 x) (+ 4.16438922228 (/ 78.6994924154 x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -235.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 49.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y))));
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / 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 <= (-235.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 49.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (((-0.14147091005106402d0) * (x * z)) + (0.0212463641547976d0 * (x * y))))
else
tmp = x * (((-8.32877844456d0) / x) - ((180.4846382693211d0 / x) - (4.16438922228d0 + (78.6994924154d0 / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -235.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 49.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y))));
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -235.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 49.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y)))) else: tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -235.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 49.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(Float64(-0.14147091005106402 * Float64(x * z)) + Float64(0.0212463641547976 * Float64(x * y))))); else tmp = Float64(x * Float64(Float64(-8.32877844456 / x) - Float64(Float64(180.4846382693211 / x) - Float64(4.16438922228 + Float64(78.6994924154 / x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -235.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 49.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + ((-0.14147091005106402 * (x * z)) + (0.0212463641547976 * (x * y)))); else tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -235.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 49.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(N[(-0.14147091005106402 * N[(x * z), $MachinePrecision]), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(-8.32877844456 / x), $MachinePrecision] - N[(N[(180.4846382693211 / x), $MachinePrecision] - N[(4.16438922228 + N[(78.6994924154 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -235:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 49:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + \left(-0.14147091005106402 \cdot \left(x \cdot z\right) + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-8.32877844456}{x} - \left(\frac{180.4846382693211}{x} - \left(4.16438922228 + \frac{78.6994924154}{x}\right)\right)\right)\\
\end{array}
\end{array}
if x < -235Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -235 < x < 49Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.2%
Taylor expanded in y around 0 91.3%
if 49 < x Initial program 11.6%
add-cube-cbrt11.4%
pow311.4%
Applied egg-rr11.4%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
+-commutative94.9%
rem-cube-cbrt94.9%
associate-*r/94.9%
metadata-eval94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
Simplified94.9%
Final simplification89.0%
(FPCore (x y z)
:precision binary64
(if (<= x -3.4)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.42e-61)
(* (+ x -2.0) (/ z (+ 47.066876606 (* x 313.399215894))))
(if (<= x 2.0)
(* (* x y) -0.0424927283095952)
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.4) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.42e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 2.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / 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 <= (-3.4d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.42d-61) then
tmp = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * 313.399215894d0)))
else if (x <= 2.0d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.4) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.42e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 2.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.4: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.42e-61: tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))) elif x <= 2.0: tmp = (x * y) * -0.0424927283095952 else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.4) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.42e-61) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * 313.399215894)))); elseif (x <= 2.0) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.4) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.42e-61) tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))); elseif (x <= 2.0) tmp = (x * y) * -0.0424927283095952; else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.4], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.42e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.42 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -3.39999999999999991Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -3.39999999999999991 < x < 1.42e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
if 1.42e-61 < x < 2Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
if 2 < x Initial program 11.6%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
Simplified15.3%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
sub-neg94.9%
associate-*r/94.9%
metadata-eval94.9%
distribute-neg-frac94.9%
metadata-eval94.9%
Simplified94.9%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -92.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 110.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
x
(-
(/ -8.32877844456 x)
(- (/ 180.4846382693211 x) (+ 4.16438922228 (/ 78.6994924154 x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -92.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 110.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / 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 <= (-92.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 110.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = x * (((-8.32877844456d0) / x) - ((180.4846382693211d0 / x) - (4.16438922228d0 + (78.6994924154d0 / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -92.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 110.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -92.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 110.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -92.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 110.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(x * Float64(Float64(-8.32877844456 / x) - Float64(Float64(180.4846382693211 / x) - Float64(4.16438922228 + Float64(78.6994924154 / x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -92.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 110.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -92.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 110.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(-8.32877844456 / x), $MachinePrecision] - N[(N[(180.4846382693211 / x), $MachinePrecision] - N[(4.16438922228 + N[(78.6994924154 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -92:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 110:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-8.32877844456}{x} - \left(\frac{180.4846382693211}{x} - \left(4.16438922228 + \frac{78.6994924154}{x}\right)\right)\right)\\
\end{array}
\end{array}
if x < -92Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -92 < x < 110Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 91.2%
if 110 < x Initial program 11.6%
add-cube-cbrt11.4%
pow311.4%
Applied egg-rr11.4%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
+-commutative94.9%
rem-cube-cbrt94.9%
associate-*r/94.9%
metadata-eval94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
Simplified94.9%
Final simplification89.0%
(FPCore (x y z)
:precision binary64
(if (<= x -12.6)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.7e-61)
(* (+ x -2.0) (/ z (+ 47.066876606 (* x 313.399215894))))
(if (<= x 2.0)
(* (* x y) -0.0424927283095952)
(*
x
(-
(/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)
-4.16438922228))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -12.6) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.7e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 2.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (((-110.1139242984811 + (3655.1204654076414 / x)) / x) - -4.16438922228);
}
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 <= (-12.6d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.7d-61) then
tmp = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * 313.399215894d0)))
else if (x <= 2.0d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * ((((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x) - (-4.16438922228d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -12.6) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.7e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 2.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (((-110.1139242984811 + (3655.1204654076414 / x)) / x) - -4.16438922228);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -12.6: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.7e-61: tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))) elif x <= 2.0: tmp = (x * y) * -0.0424927283095952 else: tmp = x * (((-110.1139242984811 + (3655.1204654076414 / x)) / x) - -4.16438922228) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -12.6) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.7e-61) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * 313.399215894)))); elseif (x <= 2.0) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x) - -4.16438922228)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -12.6) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.7e-61) tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))); elseif (x <= 2.0) tmp = (x * y) * -0.0424927283095952; else tmp = x * (((-110.1139242984811 + (3655.1204654076414 / x)) / x) - -4.16438922228); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -12.6], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * N[(N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -12.6:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\end{array}
\end{array}
if x < -12.5999999999999996Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -12.5999999999999996 < x < 2.69999999999999993e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
if 2.69999999999999993e-61 < x < 2Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
if 2 < x Initial program 11.6%
add-cube-cbrt11.4%
pow311.4%
Applied egg-rr11.4%
Taylor expanded in x around -inf 94.9%
Simplified94.9%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -180.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 90.0)
(-
(* x (* z (- 0.3041881842569256 (* 0.0424927283095952 (/ y z)))))
(* z 0.0424927283095952))
(*
x
(-
(/ -8.32877844456 x)
(- (/ 180.4846382693211 x) (+ 4.16438922228 (/ 78.6994924154 x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -180.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 90.0) {
tmp = (x * (z * (0.3041881842569256 - (0.0424927283095952 * (y / z))))) - (z * 0.0424927283095952);
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / 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 <= (-180.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 90.0d0) then
tmp = (x * (z * (0.3041881842569256d0 - (0.0424927283095952d0 * (y / z))))) - (z * 0.0424927283095952d0)
else
tmp = x * (((-8.32877844456d0) / x) - ((180.4846382693211d0 / x) - (4.16438922228d0 + (78.6994924154d0 / x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -180.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 90.0) {
tmp = (x * (z * (0.3041881842569256 - (0.0424927283095952 * (y / z))))) - (z * 0.0424927283095952);
} else {
tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -180.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 90.0: tmp = (x * (z * (0.3041881842569256 - (0.0424927283095952 * (y / z))))) - (z * 0.0424927283095952) else: tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -180.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 90.0) tmp = Float64(Float64(x * Float64(z * Float64(0.3041881842569256 - Float64(0.0424927283095952 * Float64(y / z))))) - Float64(z * 0.0424927283095952)); else tmp = Float64(x * Float64(Float64(-8.32877844456 / x) - Float64(Float64(180.4846382693211 / x) - Float64(4.16438922228 + Float64(78.6994924154 / x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -180.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 90.0) tmp = (x * (z * (0.3041881842569256 - (0.0424927283095952 * (y / z))))) - (z * 0.0424927283095952); else tmp = x * ((-8.32877844456 / x) - ((180.4846382693211 / x) - (4.16438922228 + (78.6994924154 / x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -180.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 90.0], N[(N[(x * N[(z * N[(0.3041881842569256 - N[(0.0424927283095952 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * 0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(-8.32877844456 / x), $MachinePrecision] - N[(N[(180.4846382693211 / x), $MachinePrecision] - N[(4.16438922228 + N[(78.6994924154 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -180:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 90:\\
\;\;\;\;x \cdot \left(z \cdot \left(0.3041881842569256 - 0.0424927283095952 \cdot \frac{y}{z}\right)\right) - z \cdot 0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-8.32877844456}{x} - \left(\frac{180.4846382693211}{x} - \left(4.16438922228 + \frac{78.6994924154}{x}\right)\right)\right)\\
\end{array}
\end{array}
if x < -180Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -180 < x < 90Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around -inf 93.8%
Taylor expanded in x around 0 77.8%
if 90 < x Initial program 11.6%
add-cube-cbrt11.4%
pow311.4%
Applied egg-rr11.4%
Taylor expanded in x around inf 94.9%
associate--l+94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
+-commutative94.9%
rem-cube-cbrt94.9%
associate-*r/94.9%
metadata-eval94.9%
associate-*r/94.9%
*-commutative94.9%
rem-cube-cbrt94.9%
metadata-eval94.9%
Simplified94.9%
Final simplification82.0%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.42e-61)
(* (+ x -2.0) (/ z (+ 47.066876606 (* x 313.399215894))))
(if (<= x 1.85)
(* (* x y) -0.0424927283095952)
(* x (+ 4.16438922228 (* 110.1139242984811 (/ -1.0 x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.42e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 1.85) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / 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 <= (-36.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.42d-61) then
tmp = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * 313.399215894d0)))
else if (x <= 1.85d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 + (110.1139242984811d0 * ((-1.0d0) / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.42e-61) {
tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894)));
} else if (x <= 1.85) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.42e-61: tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))) elif x <= 1.85: tmp = (x * y) * -0.0424927283095952 else: tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.42e-61) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * 313.399215894)))); elseif (x <= 1.85) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 + Float64(110.1139242984811 * Float64(-1.0 / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -36.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.42e-61) tmp = (x + -2.0) * (z / (47.066876606 + (x * 313.399215894))); elseif (x <= 1.85) tmp = (x * y) * -0.0424927283095952; else tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.42e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.85], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 + N[(110.1139242984811 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.42 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 1.85:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + 110.1139242984811 \cdot \frac{-1}{x}\right)\\
\end{array}
\end{array}
if x < -36Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -36 < x < 1.42e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
if 1.42e-61 < x < 1.8500000000000001Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
if 1.8500000000000001 < x Initial program 11.6%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
Simplified15.3%
Taylor expanded in x around inf 94.9%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 1.25e-61)
(* (+ x -2.0) (* z (+ 0.0212463641547976 (* x -0.14147091005106402))))
(if (<= x 1.9)
(* (* x y) -0.0424927283095952)
(* x (+ 4.16438922228 (* 110.1139242984811 (/ -1.0 x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.25e-61) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 1.9) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / 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 <= (-5.5d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 1.25d-61) then
tmp = (x + (-2.0d0)) * (z * (0.0212463641547976d0 + (x * (-0.14147091005106402d0))))
else if (x <= 1.9d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 + (110.1139242984811d0 * ((-1.0d0) / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 1.25e-61) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 1.9) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 1.25e-61: tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))) elif x <= 1.9: tmp = (x * y) * -0.0424927283095952 else: tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 1.25e-61) tmp = Float64(Float64(x + -2.0) * Float64(z * Float64(0.0212463641547976 + Float64(x * -0.14147091005106402)))); elseif (x <= 1.9) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 + Float64(110.1139242984811 * Float64(-1.0 / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 1.25e-61) tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))); elseif (x <= 1.9) tmp = (x * y) * -0.0424927283095952; else tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z * N[(0.0212463641547976 + N[(x * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 + N[(110.1139242984811 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot \left(0.0212463641547976 + x \cdot -0.14147091005106402\right)\right)\\
\mathbf{elif}\;x \leq 1.9:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + 110.1139242984811 \cdot \frac{-1}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -5.5 < x < 1.25e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.2%
associate-*r*70.2%
distribute-rgt-out70.2%
*-commutative70.2%
Simplified70.2%
if 1.25e-61 < x < 1.8999999999999999Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
if 1.8999999999999999 < x Initial program 11.6%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
Simplified15.3%
Taylor expanded in x around inf 94.9%
Final simplification76.7%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.4e-61)
(* (+ x -2.0) (/ z 47.066876606))
(if (<= x 19.0)
(* (* x y) -0.0424927283095952)
(* x (+ 4.16438922228 (* 110.1139242984811 (/ -1.0 x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.4e-61) {
tmp = (x + -2.0) * (z / 47.066876606);
} else if (x <= 19.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / 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 <= (-5.5d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.4d-61) then
tmp = (x + (-2.0d0)) * (z / 47.066876606d0)
else if (x <= 19.0d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 + (110.1139242984811d0 * ((-1.0d0) / x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.4e-61) {
tmp = (x + -2.0) * (z / 47.066876606);
} else if (x <= 19.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.4e-61: tmp = (x + -2.0) * (z / 47.066876606) elif x <= 19.0: tmp = (x * y) * -0.0424927283095952 else: tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.4e-61) tmp = Float64(Float64(x + -2.0) * Float64(z / 47.066876606)); elseif (x <= 19.0) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 + Float64(110.1139242984811 * Float64(-1.0 / x)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.4e-61) tmp = (x + -2.0) * (z / 47.066876606); elseif (x <= 19.0) tmp = (x * y) * -0.0424927283095952; else tmp = x * (4.16438922228 + (110.1139242984811 * (-1.0 / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z / 47.066876606), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 19.0], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 + N[(110.1139242984811 * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606}\\
\mathbf{elif}\;x \leq 19:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + 110.1139242984811 \cdot \frac{-1}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 19.1%
associate-/l*24.5%
sub-neg24.5%
metadata-eval24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
fma-define24.5%
Simplified24.5%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
if -5.5 < x < 2.4000000000000001e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in x around 0 70.0%
if 2.4000000000000001e-61 < x < 19Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
if 19 < x Initial program 11.6%
associate-/l*15.2%
sub-neg15.2%
metadata-eval15.2%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
fma-define15.3%
Simplified15.3%
Taylor expanded in x around inf 94.9%
Final simplification76.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -5.5)
t_0
(if (<= x 2.1e-61)
(* (+ x -2.0) (/ z 47.066876606))
(if (<= x 2.1) (* (* x y) -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 2.1e-61) {
tmp = (x + -2.0) * (z / 47.066876606);
} else if (x <= 2.1) {
tmp = (x * y) * -0.0424927283095952;
} 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 * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= 2.1d-61) then
tmp = (x + (-2.0d0)) * (z / 47.066876606d0)
else if (x <= 2.1d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 2.1e-61) {
tmp = (x + -2.0) * (z / 47.066876606);
} else if (x <= 2.1) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= 2.1e-61: tmp = (x + -2.0) * (z / 47.066876606) elif x <= 2.1: tmp = (x * y) * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= 2.1e-61) tmp = Float64(Float64(x + -2.0) * Float64(z / 47.066876606)); elseif (x <= 2.1) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= 2.1e-61) tmp = (x + -2.0) * (z / 47.066876606); elseif (x <= 2.1) tmp = (x * y) * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, 2.1e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z / 47.066876606), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606}\\
\mathbf{elif}\;x \leq 2.1:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5 or 2.10000000000000009 < x Initial program 15.9%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around inf 86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
if -5.5 < x < 2.0999999999999999e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around inf 71.0%
Taylor expanded in x around 0 70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in x around 0 70.0%
if 2.0999999999999999e-61 < x < 2.10000000000000009Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
Final simplification76.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -5.5)
t_0
(if (<= x 2.25e-61)
(* (+ x -2.0) (* z 0.0212463641547976))
(if (<= x 3.5) (* (* x y) -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 2.25e-61) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 3.5) {
tmp = (x * y) * -0.0424927283095952;
} 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 * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= 2.25d-61) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else if (x <= 3.5d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 2.25e-61) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 3.5) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= 2.25e-61: tmp = (x + -2.0) * (z * 0.0212463641547976) elif x <= 3.5: tmp = (x * y) * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= 2.25e-61) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); elseif (x <= 3.5) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= 2.25e-61) tmp = (x + -2.0) * (z * 0.0212463641547976); elseif (x <= 3.5) tmp = (x * y) * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, 2.25e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.25 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{elif}\;x \leq 3.5:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5 or 3.5 < x Initial program 15.9%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around inf 86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
if -5.5 < x < 2.25e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 69.8%
if 2.25e-61 < x < 3.5Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
Final simplification76.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -78.0)
t_0
(if (<= x 2.4e-61)
(* z -0.0424927283095952)
(if (<= x 1.86) (* (* x y) -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -78.0) {
tmp = t_0;
} else if (x <= 2.4e-61) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.86) {
tmp = (x * y) * -0.0424927283095952;
} 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 * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-78.0d0)) then
tmp = t_0
else if (x <= 2.4d-61) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.86d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -78.0) {
tmp = t_0;
} else if (x <= 2.4e-61) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.86) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -78.0: tmp = t_0 elif x <= 2.4e-61: tmp = z * -0.0424927283095952 elif x <= 1.86: tmp = (x * y) * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -78.0) tmp = t_0; elseif (x <= 2.4e-61) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.86) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -78.0) tmp = t_0; elseif (x <= 2.4e-61) tmp = z * -0.0424927283095952; elseif (x <= 1.86) tmp = (x * y) * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -78.0], t$95$0, If[LessEqual[x, 2.4e-61], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.86], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -78:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-61}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.86:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -78 or 1.8600000000000001 < x Initial program 15.9%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around inf 86.5%
associate-*r/86.5%
metadata-eval86.5%
Simplified86.5%
if -78 < x < 2.4000000000000001e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 69.8%
*-commutative69.8%
Simplified69.8%
if 2.4000000000000001e-61 < x < 1.8600000000000001Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
Final simplification76.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* 4.16438922228 (+ x -2.0))))
(if (<= x -780.0)
t_0
(if (<= x 2.5e-61)
(* z -0.0424927283095952)
(if (<= x 1.85) (* (* x y) -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -780.0) {
tmp = t_0;
} else if (x <= 2.5e-61) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.85) {
tmp = (x * y) * -0.0424927283095952;
} 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 = 4.16438922228d0 * (x + (-2.0d0))
if (x <= (-780.0d0)) then
tmp = t_0
else if (x <= 2.5d-61) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.85d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -780.0) {
tmp = t_0;
} else if (x <= 2.5e-61) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.85) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 * (x + -2.0) tmp = 0 if x <= -780.0: tmp = t_0 elif x <= 2.5e-61: tmp = z * -0.0424927283095952 elif x <= 1.85: tmp = (x * y) * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 * Float64(x + -2.0)) tmp = 0.0 if (x <= -780.0) tmp = t_0; elseif (x <= 2.5e-61) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.85) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 * (x + -2.0); tmp = 0.0; if (x <= -780.0) tmp = t_0; elseif (x <= 2.5e-61) tmp = z * -0.0424927283095952; elseif (x <= 1.85) tmp = (x * y) * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -780.0], t$95$0, If[LessEqual[x, 2.5e-61], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.85], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{if}\;x \leq -780:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-61}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.85:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -780 or 1.8500000000000001 < x Initial program 15.9%
associate-/l*20.5%
sub-neg20.5%
metadata-eval20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
fma-define20.5%
Simplified20.5%
Taylor expanded in x around inf 85.8%
if -780 < x < 2.4999999999999999e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 69.8%
*-commutative69.8%
Simplified69.8%
if 2.4999999999999999e-61 < x < 1.8500000000000001Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
Final simplification76.2%
(FPCore (x y z)
:precision binary64
(if (<= x -260.0)
(* x 4.16438922228)
(if (<= x 2.65e-61)
(* z -0.0424927283095952)
(if (<= x 2.0) (* (* x y) -0.0424927283095952) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -260.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.65e-61) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
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 <= (-260.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.65d-61) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = (x * y) * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -260.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.65e-61) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = (x * y) * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -260.0: tmp = x * 4.16438922228 elif x <= 2.65e-61: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = (x * y) * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -260.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.65e-61) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = Float64(Float64(x * y) * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -260.0) tmp = x * 4.16438922228; elseif (x <= 2.65e-61) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = (x * y) * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -260.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.65e-61], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -260:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.65 \cdot 10^{-61}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -260 or 2 < x Initial program 15.9%
add-cube-cbrt15.8%
pow315.8%
Applied egg-rr15.8%
Taylor expanded in x around inf 85.8%
rem-cube-cbrt85.8%
Simplified85.8%
if -260 < x < 2.65e-61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 69.8%
*-commutative69.8%
Simplified69.8%
if 2.65e-61 < x < 2Initial program 99.3%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in z around 0 75.3%
Taylor expanded in x around 0 49.8%
Final simplification76.2%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 0.023))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.023)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
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 <= (-5.5d0)) .or. (.not. (x <= 0.023d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 0.023)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 0.023): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 0.023)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 0.023))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 0.023]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 0.023\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 0.023 < x Initial program 16.6%
add-cube-cbrt16.5%
pow316.5%
Applied egg-rr16.5%
Taylor expanded in x around inf 85.2%
rem-cube-cbrt85.2%
Simplified85.2%
if -5.5 < x < 0.023Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 64.9%
*-commutative64.9%
Simplified64.9%
Final simplification74.6%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 60.1%
add-cube-cbrt60.0%
pow360.0%
Applied egg-rr60.0%
Taylor expanded in x around inf 42.3%
rem-cube-cbrt42.3%
Simplified42.3%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 60.1%
associate-/l*62.2%
sub-neg62.2%
metadata-eval62.2%
fma-define62.2%
fma-define62.2%
fma-define62.2%
fma-define62.2%
fma-define62.2%
fma-define62.2%
fma-define62.2%
Simplified62.2%
Taylor expanded in x around inf 42.5%
Taylor expanded in x around 0 3.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} 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 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024103
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))