
(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 24 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 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(+ x -2.0)
(/
(fma
(fma
(fma
(/
(+ (* (pow x 2.0) 17.342137594641823) -6193.6101064416025)
(fma x 4.16438922228 -78.6994924154))
x
137.519416416)
x
y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
(- 17.342137594641823 (pow t_0 2.0))
(/ (+ x -2.0) (+ 4.16438922228 t_0))))))
double code(double x, double y, double z) {
double t_0 = (101.7851458539211 + (-3451.550173699799 / x)) / x;
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (x + -2.0) * (fma(fma(fma((((pow(x, 2.0) * 17.342137594641823) + -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (17.342137594641823 - pow(t_0, 2.0)) * ((x + -2.0) / (4.16438922228 + t_0));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x) tmp = 0.0 if (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)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(Float64(Float64(Float64((x ^ 2.0) * 17.342137594641823) + -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(17.342137594641823 - (t_0 ^ 2.0)) * Float64(Float64(x + -2.0) / Float64(4.16438922228 + t_0))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[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] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[Power[x, 2.0], $MachinePrecision] * 17.342137594641823), $MachinePrecision] + -6193.6101064416025), $MachinePrecision] / N[(x * 4.16438922228 + -78.6994924154), $MachinePrecision]), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(17.342137594641823 - N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\\
\mathbf{if}\;\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)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\frac{{x}^{2} \cdot 17.342137594641823 + -6193.6101064416025}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(17.342137594641823 - {t\_0}^{2}\right) \cdot \frac{x + -2}{4.16438922228 + t\_0}\\
\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 89.1%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
Simplified98.3%
fma-define98.3%
flip-+98.3%
div-inv98.3%
sub-neg98.3%
pow298.3%
metadata-eval98.3%
metadata-eval98.3%
fmm-def98.3%
metadata-eval98.3%
Applied egg-rr98.3%
associate-*r/98.3%
*-rgt-identity98.3%
unpow298.3%
swap-sqr98.3%
unpow298.3%
metadata-eval98.3%
Simplified98.3%
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))) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
sub-neg99.1%
associate-*r/99.1%
metadata-eval99.1%
distribute-neg-frac99.1%
metadata-eval99.1%
Simplified99.1%
flip--99.1%
metadata-eval98.7%
pow298.7%
Applied egg-rr98.7%
metadata-eval98.7%
sub-neg98.7%
associate-*r/97.7%
sub-neg97.7%
metadata-eval97.7%
Applied egg-rr97.7%
associate-/l*98.7%
Applied egg-rr98.7%
associate-*r/97.7%
*-commutative97.7%
associate-/l*99.3%
+-commutative99.3%
Simplified99.3%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(/
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(/
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)
(+ x -2.0)))
(*
(- 17.342137594641823 (pow t_0 2.0))
(/ (+ x -2.0) (+ 4.16438922228 t_0))))))
double code(double x, double y, double z) {
double t_0 = (101.7851458539211 + (-3451.550173699799 / x)) / x;
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / (fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / (x + -2.0));
} else {
tmp = (17.342137594641823 - pow(t_0, 2.0)) * ((x + -2.0) / (4.16438922228 + t_0));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x) tmp = 0.0 if (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)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / Float64(x + -2.0))); else tmp = Float64(Float64(17.342137594641823 - (t_0 ^ 2.0)) * Float64(Float64(x + -2.0) / Float64(4.16438922228 + t_0))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[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] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(17.342137594641823 - N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\\
\mathbf{if}\;\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)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;\left(17.342137594641823 - {t\_0}^{2}\right) \cdot \frac{x + -2}{4.16438922228 + t\_0}\\
\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 89.1%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
Simplified98.3%
Applied egg-rr98.3%
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))) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
sub-neg99.1%
associate-*r/99.1%
metadata-eval99.1%
distribute-neg-frac99.1%
metadata-eval99.1%
Simplified99.1%
flip--99.1%
metadata-eval98.7%
pow298.7%
Applied egg-rr98.7%
metadata-eval98.7%
sub-neg98.7%
associate-*r/97.7%
sub-neg97.7%
metadata-eval97.7%
Applied egg-rr97.7%
associate-/l*98.7%
Applied egg-rr98.7%
associate-*r/97.7%
*-commutative97.7%
associate-/l*99.3%
+-commutative99.3%
Simplified99.3%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
(- 17.342137594641823 (pow t_0 2.0))
(/ (+ x -2.0) (+ 4.16438922228 t_0))))))
double code(double x, double y, double z) {
double t_0 = (101.7851458539211 + (-3451.550173699799 / x)) / x;
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (17.342137594641823 - pow(t_0, 2.0)) * ((x + -2.0) / (4.16438922228 + t_0));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x) tmp = 0.0 if (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)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(17.342137594641823 - (t_0 ^ 2.0)) * Float64(Float64(x + -2.0) / Float64(4.16438922228 + t_0))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[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] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(17.342137594641823 - N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\\
\mathbf{if}\;\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)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(17.342137594641823 - {t\_0}^{2}\right) \cdot \frac{x + -2}{4.16438922228 + t\_0}\\
\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 89.1%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
Simplified98.3%
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))) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
sub-neg99.1%
associate-*r/99.1%
metadata-eval99.1%
distribute-neg-frac99.1%
metadata-eval99.1%
Simplified99.1%
flip--99.1%
metadata-eval98.7%
pow298.7%
Applied egg-rr98.7%
metadata-eval98.7%
sub-neg98.7%
associate-*r/97.7%
sub-neg97.7%
metadata-eval97.7%
Applied egg-rr97.7%
associate-/l*98.7%
Applied egg-rr98.7%
associate-*r/97.7%
*-commutative97.7%
associate-/l*99.3%
+-commutative99.3%
Simplified99.3%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(fma x (fma x (* 4.16438922228 (pow x 2.0)) y) z)
(/
(+ x -2.0)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(*
(- 17.342137594641823 (pow t_0 2.0))
(/ (+ x -2.0) (+ 4.16438922228 t_0))))))
double code(double x, double y, double z) {
double t_0 = (101.7851458539211 + (-3451.550173699799 / x)) / x;
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = fma(x, fma(x, (4.16438922228 * pow(x, 2.0)), y), z) * ((x + -2.0) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = (17.342137594641823 - pow(t_0, 2.0)) * ((x + -2.0) / (4.16438922228 + t_0));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x) tmp = 0.0 if (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)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(fma(x, fma(x, Float64(4.16438922228 * (x ^ 2.0)), y), z) * Float64(Float64(x + -2.0) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(Float64(17.342137594641823 - (t_0 ^ 2.0)) * Float64(Float64(x + -2.0) / Float64(4.16438922228 + t_0))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[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] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x * N[(x * N[(4.16438922228 * N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(17.342137594641823 - N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\\
\mathbf{if}\;\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)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228 \cdot {x}^{2}, y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(17.342137594641823 - {t\_0}^{2}\right) \cdot \frac{x + -2}{4.16438922228 + t\_0}\\
\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 89.1%
Simplified98.1%
Taylor expanded in x around inf 95.2%
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))) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
sub-neg99.1%
associate-*r/99.1%
metadata-eval99.1%
distribute-neg-frac99.1%
metadata-eval99.1%
Simplified99.1%
flip--99.1%
metadata-eval98.7%
pow298.7%
Applied egg-rr98.7%
metadata-eval98.7%
sub-neg98.7%
associate-*r/97.7%
sub-neg97.7%
metadata-eval97.7%
Applied egg-rr97.7%
associate-/l*98.7%
Applied egg-rr98.7%
associate-*r/97.7%
*-commutative97.7%
associate-/l*99.3%
+-commutative99.3%
Simplified99.3%
Final simplification96.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606)))
(t_1 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= t_0 (- INFINITY))
(*
(+ x -2.0)
(-
4.16438922228
(pow
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))
-1.0)))
(if (<= t_0 1e+297)
t_0
(*
(- 17.342137594641823 (pow t_1 2.0))
(/ (+ x -2.0) (+ 4.16438922228 t_1)))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double t_1 = (101.7851458539211 + (-3451.550173699799 / x)) / x;
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 - pow((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))), -1.0));
} else if (t_0 <= 1e+297) {
tmp = t_0;
} else {
tmp = (17.342137594641823 - pow(t_1, 2.0)) * ((x + -2.0) / (4.16438922228 + t_1));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double t_1 = (101.7851458539211 + (-3451.550173699799 / x)) / x;
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 - Math.pow((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))), -1.0));
} else if (t_0 <= 1e+297) {
tmp = t_0;
} else {
tmp = (17.342137594641823 - Math.pow(t_1, 2.0)) * ((x + -2.0) / (4.16438922228 + t_1));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = (101.7851458539211 + (-3451.550173699799 / x)) / x tmp = 0 if t_0 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 - math.pow((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))), -1.0)) elif t_0 <= 1e+297: tmp = t_0 else: tmp = (17.342137594641823 - math.pow(t_1, 2.0)) * ((x + -2.0) / (4.16438922228 + t_1)) return tmp
function code(x, y, z) t_0 = 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)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) t_1 = Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - (Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x))) ^ -1.0))); elseif (t_0 <= 1e+297) tmp = t_0; else tmp = Float64(Float64(17.342137594641823 - (t_1 ^ 2.0)) * Float64(Float64(x + -2.0) / Float64(4.16438922228 + t_1))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); t_1 = (101.7851458539211 + (-3451.550173699799 / x)) / x; tmp = 0.0; if (t_0 <= -Inf) tmp = (x + -2.0) * (4.16438922228 - ((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))) ^ -1.0)); elseif (t_0 <= 1e+297) tmp = t_0; else tmp = (17.342137594641823 - (t_1 ^ 2.0)) * ((x + -2.0) / (4.16438922228 + t_1)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[Power[N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 1e+297], t$95$0, N[(N[(17.342137594641823 - N[Power[t$95$1, 2.0], $MachinePrecision]), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(4.16438922228 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \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)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
t_1 := \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - {\left(\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}\right)}^{-1}\right)\\
\mathbf{elif}\;t\_0 \leq 10^{+297}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(17.342137594641823 - {t\_1}^{2}\right) \cdot \frac{x + -2}{4.16438922228 + t\_1}\\
\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.0%
associate-/l*88.2%
sub-neg88.2%
metadata-eval88.2%
fma-define88.2%
fma-define88.2%
fma-define88.2%
fma-define88.2%
fma-define88.2%
fma-define88.2%
fma-define88.2%
Simplified88.2%
Taylor expanded in x around -inf 88.9%
mul-1-neg88.9%
unsub-neg88.9%
mul-1-neg88.9%
unsub-neg88.9%
mul-1-neg88.9%
unsub-neg88.9%
neg-mul-188.9%
unsub-neg88.9%
Simplified88.9%
clear-num88.9%
inv-pow88.9%
Applied egg-rr88.9%
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))) < 1e297Initial program 99.6%
if 1e297 < (/.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.3%
associate-/l*6.4%
sub-neg6.4%
metadata-eval6.4%
fma-define6.4%
fma-define6.4%
fma-define6.4%
fma-define6.4%
fma-define6.4%
fma-define6.4%
fma-define6.4%
Simplified6.4%
Taylor expanded in x around -inf 97.4%
mul-1-neg97.4%
unsub-neg97.4%
sub-neg97.4%
associate-*r/97.4%
metadata-eval97.4%
distribute-neg-frac97.4%
metadata-eval97.4%
Simplified97.4%
flip--97.4%
metadata-eval97.0%
pow297.0%
Applied egg-rr97.0%
metadata-eval97.0%
sub-neg97.0%
associate-*r/96.1%
sub-neg96.1%
metadata-eval96.1%
Applied egg-rr96.1%
associate-/l*97.0%
Applied egg-rr97.0%
associate-*r/96.1%
*-commutative96.1%
associate-/l*97.5%
+-commutative97.5%
Simplified97.5%
Final simplification98.4%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+42)
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= x 7.8e+32)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
(+ x -2.0)
(-
4.16438922228
(pow
(/
x
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x)))
-1.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+42) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 7.8e+32) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - pow((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))), -1.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) :: tmp
if (x <= (-1d+42)) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 7.8d+32) then
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((x / (101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x))) ** (-1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+42) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 7.8e+32) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - Math.pow((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))), -1.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+42: tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif x <= 7.8e+32: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) * (4.16438922228 - math.pow((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))), -1.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+42) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 7.8e+32) tmp = 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)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - (Float64(x / Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x))) ^ -1.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+42) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 7.8e+32) tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) * (4.16438922228 - ((x / (101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x))) ^ -1.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+42], N[(x * 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[x, 7.8e+32], 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] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[Power[N[(x / N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], -1.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+42}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+32}:\\
\;\;\;\;\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)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - {\left(\frac{x}{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}\right)}^{-1}\right)\\
\end{array}
\end{array}
if x < -1.00000000000000004e42Initial program 2.2%
associate-/l*13.3%
sub-neg13.3%
metadata-eval13.3%
fma-define13.3%
fma-define13.3%
fma-define13.3%
fma-define13.3%
fma-define13.3%
fma-define13.3%
fma-define13.3%
Simplified13.3%
Taylor expanded in x around -inf 97.6%
mul-1-neg97.6%
unsub-neg97.6%
mul-1-neg97.6%
unsub-neg97.6%
mul-1-neg97.6%
unsub-neg97.6%
neg-mul-197.6%
unsub-neg97.6%
Simplified97.6%
Taylor expanded in x around inf 97.6%
if -1.00000000000000004e42 < x < 7.7999999999999998e32Initial program 99.7%
if 7.7999999999999998e32 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
clear-num96.3%
inv-pow96.3%
Applied egg-rr96.3%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -7.8e+31) (not (<= x 2.85e+29)))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7.8e+31) || !(x <= 2.85e+29)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
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 <= (-7.8d+31)) .or. (.not. (x <= 2.85d+29))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7.8e+31) || !(x <= 2.85e+29)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7.8e+31) or not (x <= 2.85e+29): tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7.8e+31) || !(x <= 2.85e+29)) tmp = Float64(x * 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(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7.8e+31) || ~((x <= 2.85e+29))) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7.8e+31], N[Not[LessEqual[x, 2.85e+29]], $MachinePrecision]], N[(x * 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[(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] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.8 \cdot 10^{+31} \lor \neg \left(x \leq 2.85 \cdot 10^{+29}\right):\\
\;\;\;\;x \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(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\end{array}
\end{array}
if x < -7.79999999999999999e31 or 2.85e29 < x Initial program 6.8%
associate-/l*18.1%
sub-neg18.1%
metadata-eval18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
fma-define18.1%
Simplified18.1%
Taylor expanded in x around -inf 96.9%
mul-1-neg96.9%
unsub-neg96.9%
mul-1-neg96.9%
unsub-neg96.9%
mul-1-neg96.9%
unsub-neg96.9%
neg-mul-196.9%
unsub-neg96.9%
Simplified96.9%
Taylor expanded in x around inf 96.9%
if -7.79999999999999999e31 < x < 2.85e29Initial program 99.7%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -225000.0)
(* t_0 (* x (- 1.0 (/ 2.0 x))))
(if (<= x 2.4e+15)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* x t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -225000.0) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 2.4e+15) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-225000.0d0)) then
tmp = t_0 * (x * (1.0d0 - (2.0d0 / x)))
else if (x <= 2.4d+15) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -225000.0) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 2.4e+15) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -225000.0: tmp = t_0 * (x * (1.0 - (2.0 / x))) elif x <= 2.4e+15: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = x * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -225000.0) tmp = Float64(t_0 * Float64(x * Float64(1.0 - Float64(2.0 / x)))); elseif (x <= 2.4e+15) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -225000.0) tmp = t_0 * (x * (1.0 - (2.0 / x))); elseif (x <= 2.4e+15) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[LessEqual[x, -225000.0], N[(t$95$0 * N[(x * N[(1.0 - N[(2.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.4e+15], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -225000:\\
\;\;\;\;t\_0 \cdot \left(x \cdot \left(1 - \frac{2}{x}\right)\right)\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+15}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < -225000Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in x around inf 95.3%
associate-*r/95.3%
metadata-eval95.3%
Simplified95.3%
if -225000 < x < 2.4e15Initial program 99.7%
Taylor expanded in x around 0 99.4%
*-commutative99.4%
Simplified99.4%
if 2.4e15 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in x around inf 96.3%
Final simplification97.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -175.0)
(* t_0 (* x (- 1.0 (/ 2.0 x))))
(if (<= x 55.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* x t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -175.0) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 55.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-175.0d0)) then
tmp = t_0 * (x * (1.0d0 - (2.0d0 / x)))
else if (x <= 55.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -175.0) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 55.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -175.0: tmp = t_0 * (x * (1.0 - (2.0 / x))) elif x <= 55.0: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = x * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -175.0) tmp = Float64(t_0 * Float64(x * Float64(1.0 - Float64(2.0 / x)))); elseif (x <= 55.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -175.0) tmp = t_0 * (x * (1.0 - (2.0 / x))); elseif (x <= 55.0) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[LessEqual[x, -175.0], N[(t$95$0 * N[(x * N[(1.0 - N[(2.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 55.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -175:\\
\;\;\;\;t\_0 \cdot \left(x \cdot \left(1 - \frac{2}{x}\right)\right)\\
\mathbf{elif}\;x \leq 55:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < -175Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in x around inf 95.3%
associate-*r/95.3%
metadata-eval95.3%
Simplified95.3%
if -175 < x < 55Initial program 99.7%
Taylor expanded in x around 0 99.1%
*-commutative99.1%
Simplified99.1%
Taylor expanded in x around 0 99.1%
*-commutative99.1%
Simplified99.1%
if 55 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in x around inf 96.3%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -85.0)
(* t_0 (* x (- 1.0 (/ 2.0 x))))
(if (<= x 108.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* x t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -85.0) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 108.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-85.0d0)) then
tmp = t_0 * (x * (1.0d0 - (2.0d0 / x)))
else if (x <= 108.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -85.0) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 108.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -85.0: tmp = t_0 * (x * (1.0 - (2.0 / x))) elif x <= 108.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = x * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -85.0) tmp = Float64(t_0 * Float64(x * Float64(1.0 - Float64(2.0 / x)))); elseif (x <= 108.0) 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 * 263.505074721))))); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -85.0) tmp = t_0 * (x * (1.0 - (2.0 / x))); elseif (x <= 108.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[LessEqual[x, -85.0], N[(t$95$0 * N[(x * N[(1.0 - N[(2.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 108.0], 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 * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -85:\\
\;\;\;\;t\_0 \cdot \left(x \cdot \left(1 - \frac{2}{x}\right)\right)\\
\mathbf{elif}\;x \leq 108:\\
\;\;\;\;\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 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < -85Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in x around inf 95.3%
associate-*r/95.3%
metadata-eval95.3%
Simplified95.3%
if -85 < x < 108Initial program 99.7%
Taylor expanded in x around 0 99.4%
*-commutative99.4%
Simplified99.4%
Taylor expanded in x around 0 98.8%
*-commutative99.1%
Simplified98.8%
if 108 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in x around inf 96.3%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -5.5)
(* t_0 (* x (- 1.0 (/ 2.0 x))))
(if (<= x 2.1)
(+
(* z -0.0424927283095952)
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y)))))
(* x t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -5.5) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 2.1) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-5.5d0)) then
tmp = t_0 * (x * (1.0d0 - (2.0d0 / x)))
else if (x <= 2.1d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y))))
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -5.5) {
tmp = t_0 * (x * (1.0 - (2.0 / x)));
} else if (x <= 2.1) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -5.5: tmp = t_0 * (x * (1.0 - (2.0 / x))) elif x <= 2.1: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) else: tmp = x * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -5.5) tmp = Float64(t_0 * Float64(x * Float64(1.0 - Float64(2.0 / x)))); elseif (x <= 2.1) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y))))); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -5.5) tmp = t_0 * (x * (1.0 - (2.0 / x))); elseif (x <= 2.1) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[LessEqual[x, -5.5], N[(t$95$0 * N[(x * N[(1.0 - N[(2.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.1], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0 \cdot \left(x \cdot \left(1 - \frac{2}{x}\right)\right)\\
\mathbf{elif}\;x \leq 2.1:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < -5.5Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in x around inf 95.3%
associate-*r/95.3%
metadata-eval95.3%
Simplified95.3%
if -5.5 < x < 2.10000000000000009Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 94.2%
if 2.10000000000000009 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in x around inf 96.3%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 2.0)))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(+
(* z -0.0424927283095952)
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 2.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (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 <= 2.0d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (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 <= 2.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 2.0): tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 2.0)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 2.0))) tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 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[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * 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 2\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 14.3%
associate-/l*24.6%
sub-neg24.6%
metadata-eval24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
fma-define24.6%
Simplified24.6%
Taylor expanded in x around -inf 95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
neg-mul-195.7%
unsub-neg95.7%
Simplified95.7%
Taylor expanded in x around inf 95.4%
if -5.5 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 94.2%
Final simplification94.8%
(FPCore (x y z)
:precision binary64
(if (<= x -4.5)
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (* (- y 124074.40615218398) (/ -1.0 x)) 3451.550173699799) x))
x)))
(if (<= x 1.82)
(+
(* z -0.0424927283095952)
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y)))))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.5) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((y - 124074.40615218398) * (-1.0 / x)) - 3451.550173699799) / x)) / x));
} else if (x <= 1.82) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / 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 <= (-4.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((y - 124074.40615218398d0) * ((-1.0d0) / x)) - 3451.550173699799d0) / x)) / x))
else if (x <= 1.82d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y))))
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.5) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((y - 124074.40615218398) * (-1.0 / x)) - 3451.550173699799) / x)) / x));
} else if (x <= 1.82) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.5: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((y - 124074.40615218398) * (-1.0 / x)) - 3451.550173699799) / x)) / x)) elif x <= 1.82: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) else: tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(y - 124074.40615218398) * Float64(-1.0 / x)) - 3451.550173699799) / x)) / x))); elseif (x <= 1.82) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y))))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.5) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((y - 124074.40615218398) * (-1.0 / x)) - 3451.550173699799) / x)) / x)); elseif (x <= 1.82) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))); else tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(y - 124074.40615218398), $MachinePrecision] * N[(-1.0 / x), $MachinePrecision]), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.82], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 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]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\left(y - 124074.40615218398\right) \cdot \frac{-1}{x} - 3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 1.82:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -4.5Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
div-inv95.3%
Applied egg-rr95.3%
if -4.5 < x < 1.82000000000000006Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 94.2%
if 1.82000000000000006 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in x around inf 96.3%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))
(if (<= x -4.5)
(* (+ x -2.0) t_0)
(if (<= x 1.85)
(+
(* z -0.0424927283095952)
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y)))))
(* x t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -4.5) {
tmp = (x + -2.0) * t_0;
} else if (x <= 1.85) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)
if (x <= (-4.5d0)) then
tmp = (x + (-2.0d0)) * t_0
else if (x <= 1.85d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y))))
else
tmp = x * t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x);
double tmp;
if (x <= -4.5) {
tmp = (x + -2.0) * t_0;
} else if (x <= 1.85) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x) tmp = 0 if x <= -4.5: tmp = (x + -2.0) * t_0 elif x <= 1.85: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) else: tmp = x * t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0.0 if (x <= -4.5) tmp = Float64(Float64(x + -2.0) * t_0); elseif (x <= 1.85) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y))))); else tmp = Float64(x * t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x); tmp = 0.0; if (x <= -4.5) tmp = (x + -2.0) * t_0; elseif (x <= 1.85) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))); else tmp = x * t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[LessEqual[x, -4.5], N[(N[(x + -2.0), $MachinePrecision] * t$95$0), $MachinePrecision], If[LessEqual[x, 1.85], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * t$95$0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\\
\mathbf{if}\;x \leq -4.5:\\
\;\;\;\;\left(x + -2\right) \cdot t\_0\\
\mathbf{elif}\;x \leq 1.85:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot t\_0\\
\end{array}
\end{array}
if x < -4.5Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
if -4.5 < x < 1.8500000000000001Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 94.2%
if 1.8500000000000001 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in x around inf 96.3%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= x 0.7)
(+
(* z -0.0424927283095952)
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y)))))
(*
x
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.7) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / 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 + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 0.7d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y))))
else
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / 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 + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 0.7) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif x <= 0.7: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) else: tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (x <= 0.7) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y))))); else tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (x <= 0.7) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))); else tmp = x * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.7], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 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]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 0.7:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
mul-1-neg95.3%
unsub-neg95.3%
neg-mul-195.3%
unsub-neg95.3%
Simplified95.3%
Taylor expanded in y around inf 95.0%
mul-1-neg95.0%
distribute-neg-frac295.0%
Simplified95.0%
if -5.5 < x < 0.69999999999999996Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 94.2%
if 0.69999999999999996 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around -inf 96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
mul-1-neg96.3%
unsub-neg96.3%
neg-mul-196.3%
unsub-neg96.3%
Simplified96.3%
Taylor expanded in x around inf 96.3%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (<= x -500.0)
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x 2.0)
(+
(* z -0.0424927283095952)
(* x (+ (* y -0.0424927283095952) (* 0.3041881842569256 (* x y)))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -500.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} 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 <= (-500.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= 2.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) + (0.3041881842569256d0 * (x * y))))
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 <= -500.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -500.0: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= 2.0: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -500.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= 2.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(0.3041881842569256 * Float64(x * y))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -500.0) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= 2.0) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) + (0.3041881842569256 * (x * y)))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -500.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(0.3041881842569256 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -500:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 + 0.3041881842569256 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -500Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 86.9%
mul-1-neg86.9%
unsub-neg86.9%
sub-neg86.9%
associate-*r/86.9%
metadata-eval86.9%
distribute-neg-frac86.9%
metadata-eval86.9%
Simplified86.9%
if -500 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 94.2%
if 2 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around inf 94.8%
*-commutative94.8%
Simplified94.8%
Final simplification92.3%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x 2.0) (* -0.0424927283095952 (+ z (* x y))) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
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 <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= 2.0: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= 2.0) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 86.9%
mul-1-neg86.9%
unsub-neg86.9%
sub-neg86.9%
associate-*r/86.9%
metadata-eval86.9%
distribute-neg-frac86.9%
metadata-eval86.9%
Simplified86.9%
if -5.5 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 93.5%
+-commutative93.5%
distribute-lft-out93.5%
*-commutative93.5%
Simplified93.5%
if 2 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around inf 94.8%
*-commutative94.8%
Simplified94.8%
Final simplification92.0%
(FPCore (x y z)
:precision binary64
(if (<= x -5000.0)
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(if (<= x 2.0) (* -0.0424927283095952 (+ z (* x y))) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5000.0) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} 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 <= (-5000.0d0)) then
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
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 <= -5000.0) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5000.0: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) elif x <= 2.0: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5000.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5000.0) tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); elseif (x <= 2.0) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5000.0], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5000:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5e3Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around -inf 86.9%
mul-1-neg86.9%
unsub-neg86.9%
sub-neg86.9%
associate-*r/86.9%
metadata-eval86.9%
distribute-neg-frac86.9%
metadata-eval86.9%
Simplified86.9%
flip--86.9%
metadata-eval86.6%
pow286.6%
Applied egg-rr86.6%
Taylor expanded in x around inf 86.9%
associate--l+86.9%
unpow286.9%
associate-/r*86.9%
metadata-eval86.9%
associate-*r/86.9%
associate-*r/86.9%
metadata-eval86.9%
div-sub86.9%
sub-neg86.9%
associate-*r/86.9%
metadata-eval86.9%
metadata-eval86.9%
Simplified86.9%
if -5e3 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 93.5%
+-commutative93.5%
distribute-lft-out93.5%
*-commutative93.5%
Simplified93.5%
if 2 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around inf 94.8%
*-commutative94.8%
Simplified94.8%
Final simplification92.0%
(FPCore (x y z) :precision binary64 (if (<= x -5.5) (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))) (if (<= x 2.0) (* -0.0424927283095952 (+ z (* x y))) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
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 <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 2.0: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 2.0) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
if -5.5 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 93.5%
+-commutative93.5%
distribute-lft-out93.5%
*-commutative93.5%
Simplified93.5%
if 2 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around inf 94.8%
*-commutative94.8%
Simplified94.8%
Final simplification91.9%
(FPCore (x y z) :precision binary64 (if (<= x -370.0) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (if (<= x 2.0) (* -0.0424927283095952 (+ z (* x y))) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -370.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} 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 <= (-370.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
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 <= -370.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -370.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.0: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -370.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -370.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.0) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -370.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -370:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -370Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
if -370 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 93.5%
+-commutative93.5%
distribute-lft-out93.5%
*-commutative93.5%
Simplified93.5%
if 2 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around inf 94.8%
*-commutative94.8%
Simplified94.8%
Final simplification91.9%
(FPCore (x y z) :precision binary64 (if (<= x -8200.0) (* 4.16438922228 (+ x -2.0)) (if (<= x 2.0) (* -0.0424927283095952 (+ z (* x y))) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -8200.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} 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 <= (-8200.0d0)) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
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 <= -8200.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8200.0: tmp = 4.16438922228 * (x + -2.0) elif x <= 2.0: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8200.0) tmp = Float64(4.16438922228 * Float64(x + -2.0)); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8200.0) tmp = 4.16438922228 * (x + -2.0); elseif (x <= 2.0) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8200.0], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8200:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -8200Initial program 17.3%
associate-/l*26.6%
sub-neg26.6%
metadata-eval26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.6%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around inf 86.3%
if -8200 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in y around inf 85.3%
Taylor expanded in x around 0 81.1%
Taylor expanded in x around 0 93.5%
+-commutative93.5%
distribute-lft-out93.5%
*-commutative93.5%
Simplified93.5%
if 2 < x Initial program 11.0%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in x around inf 94.8%
*-commutative94.8%
Simplified94.8%
Final simplification91.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.048) (not (<= x 2.45e-9))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.048) || !(x <= 2.45e-9)) {
tmp = 4.16438922228 * (x + -2.0);
} 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 <= (-0.048d0)) .or. (.not. (x <= 2.45d-9))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
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 <= -0.048) || !(x <= 2.45e-9)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.048) or not (x <= 2.45e-9): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.048) || !(x <= 2.45e-9)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.048) || ~((x <= 2.45e-9))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.048], N[Not[LessEqual[x, 2.45e-9]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.048 \lor \neg \left(x \leq 2.45 \cdot 10^{-9}\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -0.048000000000000001 or 2.45000000000000002e-9 < x Initial program 16.7%
associate-/l*26.7%
sub-neg26.7%
metadata-eval26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
fma-define26.7%
Simplified26.7%
Taylor expanded in x around inf 88.0%
if -0.048000000000000001 < x < 2.45000000000000002e-9Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.3%
Final simplification81.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.048) (not (<= x 3.3e-6))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.048) || !(x <= 3.3e-6)) {
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 <= (-0.048d0)) .or. (.not. (x <= 3.3d-6))) 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 <= -0.048) || !(x <= 3.3e-6)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.048) or not (x <= 3.3e-6): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.048) || !(x <= 3.3e-6)) 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 <= -0.048) || ~((x <= 3.3e-6))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.048], N[Not[LessEqual[x, 3.3e-6]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.048 \lor \neg \left(x \leq 3.3 \cdot 10^{-6}\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -0.048000000000000001 or 3.30000000000000017e-6 < x Initial program 15.5%
associate-/l*25.7%
sub-neg25.7%
metadata-eval25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
fma-define25.7%
Simplified25.7%
Taylor expanded in x around inf 89.2%
*-commutative89.2%
Simplified89.2%
if -0.048000000000000001 < x < 3.30000000000000017e-6Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 73.0%
Final simplification81.8%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 54.0%
associate-/l*59.5%
sub-neg59.5%
metadata-eval59.5%
fma-define59.5%
fma-define59.5%
fma-define59.5%
fma-define59.5%
fma-define59.5%
fma-define59.5%
fma-define59.5%
Simplified59.5%
Taylor expanded in x around 0 34.9%
Final simplification34.9%
(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 2024180
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- 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)))