
(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 19 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
(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))
1e+274)
(*
(+ 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)))
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))))
double code(double x, double y, double z) {
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)) <= 1e+274) {
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 = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
}
return tmp;
}
function code(x, y, z) 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)) <= 1e+274) 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(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); end return tmp end
code[x_, y_, z_] := 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], 1e+274], 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[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\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 10^{+274}:\\
\;\;\;\;\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}:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 9.99999999999999921e273Initial program 97.9%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
if 9.99999999999999921e273 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*4.2%
sub-neg4.2%
metadata-eval4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
Simplified4.2%
Taylor expanded in y around inf 1.1%
Taylor expanded in x around -inf 33.6%
mul-1-neg33.6%
mul-1-neg33.6%
associate-*r/33.6%
metadata-eval33.6%
associate-*r/33.6%
metadata-eval33.6%
associate-*r/33.7%
metadata-eval33.7%
Simplified33.7%
Taylor expanded in x around -inf 99.0%
Simplified99.0%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 1e+274)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228)))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+274) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 1d+274) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+274) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 1e+274: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 1e+274) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 1e+274) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, Block[{t$95$1 = 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]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+274], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 10^{+274}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 9.99999999999999921e273Initial program 97.9%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
if 9.99999999999999921e273 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*4.2%
sub-neg4.2%
metadata-eval4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
Simplified4.2%
Taylor expanded in y around inf 1.1%
Taylor expanded in x around -inf 33.6%
mul-1-neg33.6%
mul-1-neg33.6%
associate-*r/33.6%
metadata-eval33.6%
associate-*r/33.6%
metadata-eval33.6%
associate-*r/33.7%
metadata-eval33.7%
Simplified33.7%
Taylor expanded in x around -inf 99.0%
Simplified99.0%
Final simplification99.4%
(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))))
(if (<= t_0 1e+274)
t_0
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228)))))
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 tmp;
if (t_0 <= 1e+274) {
tmp = t_0;
} else {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((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)
if (t_0 <= 1d+274) then
tmp = t_0
else
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
end if
code = tmp
end function
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 tmp;
if (t_0 <= 1e+274) {
tmp = t_0;
} else {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
}
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) tmp = 0 if t_0 <= 1e+274: tmp = t_0 else: tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) 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)) tmp = 0.0 if (t_0 <= 1e+274) tmp = t_0; else tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); 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); tmp = 0.0; if (t_0 <= 1e+274) tmp = t_0; else tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); 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]}, If[LessEqual[t$95$0, 1e+274], t$95$0, N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $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}\\
\mathbf{if}\;t\_0 \leq 10^{+274}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 9.99999999999999921e273Initial program 97.9%
if 9.99999999999999921e273 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*4.2%
sub-neg4.2%
metadata-eval4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
fma-define4.2%
Simplified4.2%
Taylor expanded in y around inf 1.1%
Taylor expanded in x around -inf 33.6%
mul-1-neg33.6%
mul-1-neg33.6%
associate-*r/33.6%
metadata-eval33.6%
associate-*r/33.6%
metadata-eval33.6%
associate-*r/33.7%
metadata-eval33.7%
Simplified33.7%
Taylor expanded in x around -inf 99.0%
Simplified99.0%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -600000.0) (not (<= x 1060000000000.0)))
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -600000.0) || !(x <= 1060000000000.0)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((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 <= (-600000.0d0)) .or. (.not. (x <= 1060000000000.0d0))) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((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 <= -600000.0) || !(x <= 1060000000000.0)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -600000.0) or not (x <= 1060000000000.0): tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -600000.0) || !(x <= 1060000000000.0)) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); else 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)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -600000.0) || ~((x <= 1060000000000.0))) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((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, -600000.0], N[Not[LessEqual[x, 1060000000000.0]], $MachinePrecision]], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(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 -600000 \lor \neg \left(x \leq 1060000000000\right):\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;\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}\\
\end{array}
\end{array}
if x < -6e5 or 1.06e12 < x Initial program 13.5%
associate-/l*19.4%
sub-neg19.4%
metadata-eval19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.3%
fma-define19.3%
fma-define19.3%
fma-define19.4%
Simplified19.4%
Taylor expanded in y around inf 10.7%
Taylor expanded in x around -inf 38.1%
mul-1-neg38.1%
mul-1-neg38.1%
associate-*r/38.1%
metadata-eval38.1%
associate-*r/38.1%
metadata-eval38.1%
associate-*r/38.1%
metadata-eval38.1%
Simplified38.1%
Taylor expanded in x around -inf 96.5%
Simplified96.5%
if -6e5 < x < 1.06e12Initial program 99.7%
Taylor expanded in x around 0 99.6%
*-commutative96.0%
Simplified99.6%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(if (<= x -13500.0)
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(if (<= x 6500000000.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
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 <= -13500.0) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 6500000000.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 + -2.0) * (4.16438922228 + (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 <= (-13500.0d0)) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 6500000000.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 + (-2.0d0)) * (4.16438922228d0 + (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 <= -13500.0) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 6500000000.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 + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -13500.0: tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 6500000000.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 + -2.0) * (4.16438922228 + (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 <= -13500.0) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 6500000000.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(Float64(x + -2.0) * Float64(4.16438922228 + Float64(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 <= -13500.0) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 6500000000.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 + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -13500.0], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6500000000.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[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / 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]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 6500000000:\\
\;\;\;\;\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}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -13500Initial program 12.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in y around inf 10.6%
Taylor expanded in x around -inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.4%
metadata-eval40.4%
Simplified40.4%
Taylor expanded in x around -inf 97.4%
Simplified97.4%
if -13500 < x < 6.5e9Initial program 99.7%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
Simplified97.3%
if 6.5e9 < x Initial program 17.5%
associate-/l*24.0%
sub-neg24.0%
metadata-eval24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
Simplified24.0%
Taylor expanded in z around 0 24.0%
Taylor expanded in x around inf 94.2%
Final simplification96.6%
(FPCore (x y z)
:precision binary64
(if (<= x -37.0)
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(if (<= x 6500000000.0)
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x 313.399215894)))
(* x (* y 0.0212463641547976))))
(*
(+ x -2.0)
(+
4.16438922228
(/
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 <= -37.0) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 6500000000.0) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 + (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 <= (-37.0d0)) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 6500000000.0d0) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * 313.399215894d0))) + (x * (y * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (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 <= -37.0) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 6500000000.0) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -37.0: tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 6500000000.0: tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 + (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 <= -37.0) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 6500000000.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))) + Float64(x * Float64(y * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(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 <= -37.0) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 6500000000.0) tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -37.0], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6500000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / 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]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -37:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 6500000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot 313.399215894} + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -37Initial program 13.9%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.9%
Simplified18.9%
Taylor expanded in y around inf 10.4%
Taylor expanded in x around -inf 39.6%
mul-1-neg39.6%
mul-1-neg39.6%
associate-*r/39.6%
metadata-eval39.6%
associate-*r/39.6%
metadata-eval39.6%
associate-*r/39.7%
metadata-eval39.7%
Simplified39.7%
Taylor expanded in x around -inf 95.8%
Simplified95.8%
if -37 < x < 6.5e9Initial 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 z around 0 99.7%
Taylor expanded in x around 0 91.2%
associate-*r*91.1%
*-commutative91.1%
associate-*r*91.2%
Simplified91.2%
Taylor expanded in x around 0 91.0%
*-commutative91.0%
Simplified91.0%
if 6.5e9 < x Initial program 17.5%
associate-/l*24.0%
sub-neg24.0%
metadata-eval24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
Simplified24.0%
Taylor expanded in z around 0 24.0%
Taylor expanded in x around inf 94.2%
Final simplification92.8%
(FPCore (x y z)
:precision binary64
(if (<= x -13500.0)
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(if (<= x 6500000000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(+
4.16438922228
(/
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 <= -13500.0) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 6500000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (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 <= (-13500.0d0)) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 6500000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (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 <= -13500.0) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 6500000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -13500.0: tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 6500000000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 + (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 <= -13500.0) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 6500000000.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(Float64(x + -2.0) * Float64(4.16438922228 + Float64(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 <= -13500.0) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 6500000000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -13500.0], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6500000000.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[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / 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]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 6500000000:\\
\;\;\;\;\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}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -13500Initial program 12.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in y around inf 10.6%
Taylor expanded in x around -inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.4%
metadata-eval40.4%
Simplified40.4%
Taylor expanded in x around -inf 97.4%
Simplified97.4%
if -13500 < x < 6.5e9Initial program 99.7%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
Simplified97.3%
if 6.5e9 < x Initial program 17.5%
associate-/l*24.0%
sub-neg24.0%
metadata-eval24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
fma-define24.0%
Simplified24.0%
Taylor expanded in z around 0 24.0%
Taylor expanded in x around inf 94.2%
Final simplification96.6%
(FPCore (x y z)
:precision binary64
(if (<= x -8.2)
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(if (<= x 30.0)
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x 313.399215894)))
(* x (* y 0.0212463641547976))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -8.2) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 30.0) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (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 <= (-8.2d0)) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 30.0d0) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * 313.399215894d0))) + (x * (y * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (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 <= -8.2) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 30.0) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8.2: tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 30.0: tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8.2) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 30.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))) + Float64(x * Float64(y * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8.2) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 30.0) tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8.2], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 30.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 30:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot 313.399215894} + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -8.1999999999999993Initial program 13.9%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.9%
Simplified18.9%
Taylor expanded in y around inf 10.4%
Taylor expanded in x around -inf 39.6%
mul-1-neg39.6%
mul-1-neg39.6%
associate-*r/39.6%
metadata-eval39.6%
associate-*r/39.6%
metadata-eval39.6%
associate-*r/39.7%
metadata-eval39.7%
Simplified39.7%
Taylor expanded in x around -inf 95.8%
Simplified95.8%
if -8.1999999999999993 < x < 30Initial 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 z around 0 99.7%
Taylor expanded in x around 0 91.8%
associate-*r*91.7%
*-commutative91.7%
associate-*r*91.8%
Simplified91.8%
Taylor expanded in x around 0 91.6%
*-commutative91.6%
Simplified91.6%
if 30 < x Initial program 18.9%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around -inf 91.8%
mul-1-neg91.8%
unsub-neg91.8%
mul-1-neg91.8%
unsub-neg91.8%
mul-1-neg91.8%
unsub-neg91.8%
mul-1-neg91.8%
unsub-neg91.8%
Simplified91.8%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(if (or (<= x -13500.0) (not (<= x 2.4)))
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 2.4)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-13500.0d0)) .or. (.not. (x <= 2.4d0))) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 2.4)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -13500.0) or not (x <= 2.4): tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -13500.0) || !(x <= 2.4)) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -13500.0) || ~((x <= 2.4))) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -13500.0], N[Not[LessEqual[x, 2.4]], $MachinePrecision]], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500 \lor \neg \left(x \leq 2.4\right):\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -13500 or 2.39999999999999991 < x Initial program 15.7%
associate-/l*21.4%
sub-neg21.4%
metadata-eval21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
Simplified21.4%
Taylor expanded in y around inf 11.4%
Taylor expanded in x around -inf 38.0%
mul-1-neg38.0%
mul-1-neg38.0%
associate-*r/38.0%
metadata-eval38.0%
associate-*r/38.0%
metadata-eval38.0%
associate-*r/38.1%
metadata-eval38.1%
Simplified38.1%
Taylor expanded in x around -inf 94.6%
Simplified94.6%
if -13500 < x < 2.39999999999999991Initial 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 90.7%
Final simplification92.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.7) (not (<= x 4.8)))
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x 313.399215894)))
(* x (* y 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.7) || !(x <= 4.8)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.7d0)) .or. (.not. (x <= 4.8d0))) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * 313.399215894d0))) + (x * (y * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.7) || !(x <= 4.8)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.7) or not (x <= 4.8): tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) else: tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.7) || !(x <= 4.8)) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * 313.399215894))) + Float64(x * Float64(y * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.7) || ~((x <= 4.8))) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); else tmp = (x + -2.0) * ((z / (47.066876606 + (x * 313.399215894))) + (x * (y * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.7], N[Not[LessEqual[x, 4.8]], $MachinePrecision]], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.7 \lor \neg \left(x \leq 4.8\right):\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot 313.399215894} + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -1.69999999999999996 or 4.79999999999999982 < x Initial program 16.4%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
Simplified22.1%
Taylor expanded in y around inf 11.3%
Taylor expanded in x around -inf 37.7%
mul-1-neg37.7%
mul-1-neg37.7%
associate-*r/37.7%
metadata-eval37.7%
associate-*r/37.7%
metadata-eval37.7%
associate-*r/37.8%
metadata-eval37.8%
Simplified37.8%
Taylor expanded in x around -inf 93.8%
Simplified93.8%
if -1.69999999999999996 < x < 4.79999999999999982Initial 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 z around 0 99.7%
Taylor expanded in x around 0 91.8%
associate-*r*91.7%
*-commutative91.7%
associate-*r*91.8%
Simplified91.8%
Taylor expanded in x around 0 91.6%
*-commutative91.6%
Simplified91.6%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(if (or (<= x -13500.0) (not (<= x 9.0)))
(*
x
(-
(/ (+ -110.1139242984811 (/ (- (/ y x) -3655.1204654076414) x)) x)
-4.16438922228))
(* (+ x -2.0) (+ (* x (* y 0.0212463641547976)) (* z 0.0212463641547976)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 9.0)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-13500.0d0)) .or. (.not. (x <= 9.0d0))) then
tmp = x * ((((-110.1139242984811d0) + (((y / x) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else
tmp = (x + (-2.0d0)) * ((x * (y * 0.0212463641547976d0)) + (z * 0.0212463641547976d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 9.0)) {
tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else {
tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -13500.0) or not (x <= 9.0): tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228) else: tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -13500.0) || !(x <= 9.0)) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228)); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(x * Float64(y * 0.0212463641547976)) + Float64(z * 0.0212463641547976))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -13500.0) || ~((x <= 9.0))) tmp = x * (((-110.1139242984811 + (((y / x) - -3655.1204654076414) / x)) / x) - -4.16438922228); else tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -13500.0], N[Not[LessEqual[x, 9.0]], $MachinePrecision]], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(y / x), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision] + N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500 \lor \neg \left(x \leq 9\right):\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\frac{y}{x} - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976\right) + z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -13500 or 9 < x Initial program 15.7%
associate-/l*21.4%
sub-neg21.4%
metadata-eval21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
fma-define21.4%
Simplified21.4%
Taylor expanded in y around inf 11.4%
Taylor expanded in x around -inf 38.0%
mul-1-neg38.0%
mul-1-neg38.0%
associate-*r/38.0%
metadata-eval38.0%
associate-*r/38.0%
metadata-eval38.0%
associate-*r/38.1%
metadata-eval38.1%
Simplified38.1%
Taylor expanded in x around -inf 94.6%
Simplified94.6%
if -13500 < x < 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 z around 0 99.7%
Taylor expanded in x around 0 91.8%
associate-*r*91.8%
*-commutative91.8%
associate-*r*91.9%
Simplified91.9%
Taylor expanded in x around 0 90.6%
Final simplification92.4%
(FPCore (x y z)
:precision binary64
(if (<= x -13500.0)
(*
x
(+ 4.16438922228 (/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)))
(if (<= x 520000000000.0)
(* (+ x -2.0) (+ (* x (* y 0.0212463641547976)) (* z 0.0212463641547976)))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -13500.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 520000000000.0) {
tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976));
} 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 <= (-13500.0d0)) then
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x))
else if (x <= 520000000000.0d0) then
tmp = (x + (-2.0d0)) * ((x * (y * 0.0212463641547976d0)) + (z * 0.0212463641547976d0))
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 <= -13500.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 520000000000.0) {
tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -13500.0: tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)) elif x <= 520000000000.0: tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -13500.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); elseif (x <= 520000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(x * Float64(y * 0.0212463641547976)) + Float64(z * 0.0212463641547976))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -13500.0) tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)); elseif (x <= 520000000000.0) tmp = (x + -2.0) * ((x * (y * 0.0212463641547976)) + (z * 0.0212463641547976)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -13500.0], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 520000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision] + N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 520000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976\right) + z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -13500Initial program 12.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in y around inf 10.6%
Taylor expanded in x around -inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.4%
metadata-eval40.4%
Simplified40.4%
Taylor expanded in x around inf 94.0%
associate--l+94.0%
unpow294.0%
associate-/r*94.0%
metadata-eval94.0%
associate-*r/94.0%
associate-*r/94.0%
metadata-eval94.0%
div-sub94.0%
sub-neg94.0%
metadata-eval94.0%
+-commutative94.0%
associate-*r/94.0%
metadata-eval94.0%
Simplified94.0%
if -13500 < x < 5.2e11Initial 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 z around 0 99.7%
Taylor expanded in x around 0 91.3%
associate-*r*91.3%
*-commutative91.3%
associate-*r*91.4%
Simplified91.4%
Taylor expanded in x around 0 88.8%
if 5.2e11 < x Initial program 14.6%
associate-/l*21.3%
sub-neg21.3%
metadata-eval21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
Simplified21.3%
Taylor expanded in y around inf 10.8%
Taylor expanded in x around inf 90.4%
*-commutative90.4%
Simplified90.4%
Final simplification90.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -13500.0) (not (<= x 2.1))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (+ (* -0.0424927283095952 (* x y)) (* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 2.1)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (-0.0424927283095952 * (x * y)) + (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 <= (-13500.0d0)) .or. (.not. (x <= 2.1d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = ((-0.0424927283095952d0) * (x * y)) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 2.1)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -13500.0) or not (x <= 2.1): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -13500.0) || !(x <= 2.1)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(Float64(-0.0424927283095952 * Float64(x * y)) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -13500.0) || ~((x <= 2.1))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = (-0.0424927283095952 * (x * y)) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -13500.0], N[Not[LessEqual[x, 2.1]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500 \lor \neg \left(x \leq 2.1\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -13500 or 2.10000000000000009 < x Initial program 16.4%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
Simplified22.1%
Taylor expanded in x around inf 89.1%
associate-*r/89.1%
metadata-eval89.1%
Simplified89.1%
if -13500 < 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 x around 0 91.3%
Taylor expanded in z around 0 91.1%
Final simplification90.2%
(FPCore (x y z) :precision binary64 (if (or (<= x -17000.0) (not (<= x 2.2))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -17000.0) || !(x <= 2.2)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x * (y * -0.0424927283095952)) + (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 <= (-17000.0d0)) .or. (.not. (x <= 2.2d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -17000.0) || !(x <= 2.2)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -17000.0) or not (x <= 2.2): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -17000.0) || !(x <= 2.2)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -17000.0) || ~((x <= 2.2))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -17000.0], N[Not[LessEqual[x, 2.2]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -17000 \lor \neg \left(x \leq 2.2\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -17000 or 2.2000000000000002 < x Initial program 16.4%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
Simplified22.1%
Taylor expanded in x around inf 89.1%
associate-*r/89.1%
metadata-eval89.1%
Simplified89.1%
if -17000 < x < 2.2000000000000002Initial 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 91.3%
Taylor expanded in z around 0 91.1%
*-commutative91.1%
associate-*l*91.1%
*-commutative91.1%
Simplified91.1%
Final simplification90.2%
(FPCore (x y z)
:precision binary64
(if (<= x -13500.0)
(*
x
(+ 4.16438922228 (/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)))
(if (<= x 2.0)
(+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -13500.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 2.0) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / 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 <= (-13500.0d0)) then
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x))
else if (x <= 2.0d0) then
tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -13500.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 2.0) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -13500.0: tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)) elif x <= 2.0: tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -13500.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); elseif (x <= 2.0) tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952)); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -13500.0) tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)); elseif (x <= 2.0) tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -13500.0], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -13500Initial program 12.4%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in y around inf 10.6%
Taylor expanded in x around -inf 40.3%
mul-1-neg40.3%
mul-1-neg40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.3%
metadata-eval40.3%
associate-*r/40.4%
metadata-eval40.4%
Simplified40.4%
Taylor expanded in x around inf 94.0%
associate--l+94.0%
unpow294.0%
associate-/r*94.0%
metadata-eval94.0%
associate-*r/94.0%
associate-*r/94.0%
metadata-eval94.0%
div-sub94.0%
sub-neg94.0%
metadata-eval94.0%
+-commutative94.0%
associate-*r/94.0%
metadata-eval94.0%
Simplified94.0%
if -13500 < 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 x around 0 91.3%
Taylor expanded in z around 0 91.1%
*-commutative91.1%
associate-*l*91.1%
*-commutative91.1%
Simplified91.1%
if 2 < x Initial program 20.3%
associate-/l*26.5%
sub-neg26.5%
metadata-eval26.5%
fma-define26.5%
fma-define26.5%
fma-define26.5%
fma-define26.5%
fma-define26.5%
fma-define26.5%
fma-define26.5%
Simplified26.5%
Taylor expanded in x around inf 84.6%
associate-*r/84.6%
metadata-eval84.6%
Simplified84.6%
Final simplification90.2%
(FPCore (x y z) :precision binary64 (if (or (<= x -13500.0) (not (<= x 1.18e-23))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 1.18e-23)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} 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 <= (-13500.0d0)) .or. (.not. (x <= 1.18d-23))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
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 <= -13500.0) || !(x <= 1.18e-23)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -13500.0) or not (x <= 1.18e-23): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -13500.0) || !(x <= 1.18e-23)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -13500.0) || ~((x <= 1.18e-23))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -13500.0], N[Not[LessEqual[x, 1.18e-23]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500 \lor \neg \left(x \leq 1.18 \cdot 10^{-23}\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -13500 or 1.18e-23 < x Initial program 19.8%
associate-/l*25.2%
sub-neg25.2%
metadata-eval25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
Simplified25.2%
Taylor expanded in x around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -13500 < x < 1.18e-23Initial 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 67.5%
*-commutative67.5%
Simplified67.5%
Final simplification76.2%
(FPCore (x y z) :precision binary64 (if (or (<= x -13500.0) (not (<= x 1.18e-23))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 1.18e-23)) {
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 <= (-13500.0d0)) .or. (.not. (x <= 1.18d-23))) 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 <= -13500.0) || !(x <= 1.18e-23)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -13500.0) or not (x <= 1.18e-23): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -13500.0) || !(x <= 1.18e-23)) 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 <= -13500.0) || ~((x <= 1.18e-23))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -13500.0], N[Not[LessEqual[x, 1.18e-23]], $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 -13500 \lor \neg \left(x \leq 1.18 \cdot 10^{-23}\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -13500 or 1.18e-23 < x Initial program 19.8%
associate-/l*25.2%
sub-neg25.2%
metadata-eval25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
fma-define25.2%
Simplified25.2%
Taylor expanded in x around inf 85.1%
if -13500 < x < 1.18e-23Initial 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 67.5%
*-commutative67.5%
Simplified67.5%
Final simplification75.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -13500.0) (not (<= x 2.9e-18))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -13500.0) || !(x <= 2.9e-18)) {
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 <= (-13500.0d0)) .or. (.not. (x <= 2.9d-18))) 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 <= -13500.0) || !(x <= 2.9e-18)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -13500.0) or not (x <= 2.9e-18): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -13500.0) || !(x <= 2.9e-18)) 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 <= -13500.0) || ~((x <= 2.9e-18))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -13500.0], N[Not[LessEqual[x, 2.9e-18]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13500 \lor \neg \left(x \leq 2.9 \cdot 10^{-18}\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -13500 or 2.9e-18 < x Initial program 17.1%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-define22.8%
fma-define22.8%
fma-define22.8%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.8%
Simplified22.8%
Taylor expanded in y around inf 12.9%
Taylor expanded in x around inf 87.8%
*-commutative87.8%
Simplified87.8%
if -13500 < x < 2.9e-18Initial 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 65.7%
*-commutative65.7%
Simplified65.7%
Final simplification75.9%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 61.6%
associate-/l*64.2%
sub-neg64.2%
metadata-eval64.2%
fma-define64.2%
fma-define64.2%
fma-define64.2%
fma-define64.2%
fma-define64.2%
fma-define64.2%
fma-define64.2%
Simplified64.2%
Taylor expanded in y around inf 52.9%
Taylor expanded in x around inf 42.4%
*-commutative42.4%
Simplified42.4%
Final simplification42.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024079
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))