
(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 18 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))
4e+299)
(*
(+ 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 -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))))
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)) <= 4e+299) {
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 + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
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)) <= 4e+299) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); 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], 4e+299], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $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 4 \cdot 10^{+299}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\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))) < 4.0000000000000002e299Initial program 95.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
if 4.0000000000000002e299 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*3.4%
sub-neg3.4%
metadata-eval3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
Simplified3.4%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
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 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 (- INFINITY))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= t_1 4e+299)
t_1
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))))))
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 - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 4e+299) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
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 - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 4e+299) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif t_1 <= 4e+299: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) 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(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (t_1 <= 4e+299) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); 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 - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (t_1 <= 4e+299) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); 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[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+299], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $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 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+299}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 4.2%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
fma-define99.3%
Simplified99.3%
Taylor expanded in z around inf 85.5%
Taylor expanded in x around inf 72.9%
Taylor expanded in z around 0 72.9%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 4.0000000000000002e299Initial program 99.5%
if 4.0000000000000002e299 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*3.4%
sub-neg3.4%
metadata-eval3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
Simplified3.4%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Final simplification98.7%
(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) 4e+299)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x))))))
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) <= 4e+299) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / 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) :: 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) <= 4d+299) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
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) <= 4e+299) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
}
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) <= 4e+299: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) 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) <= 4e+299) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); 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) <= 4e+299) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); 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], 4e+299], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $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 4 \cdot 10^{+299}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\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))) < 4.0000000000000002e299Initial program 95.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
if 4.0000000000000002e299 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*3.4%
sub-neg3.4%
metadata-eval3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
Simplified3.4%
Taylor expanded in x around -inf 99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
mul-1-neg99.2%
unsub-neg99.2%
neg-mul-199.2%
unsub-neg99.2%
Simplified99.2%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.42e+20) (not (<= x 145000000000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(/
(* (- 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 <= -1.42e+20) || !(x <= 145000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} 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 <= (-1.42d+20)) .or. (.not. (x <= 145000000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
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 <= -1.42e+20) || !(x <= 145000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} 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 <= -1.42e+20) or not (x <= 145000000000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) 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 <= -1.42e+20) || !(x <= 145000000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); 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 <= -1.42e+20) || ~((x <= 145000000000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); 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, -1.42e+20], N[Not[LessEqual[x, 145000000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(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 -1.42 \cdot 10^{+20} \lor \neg \left(x \leq 145000000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{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 < -1.42e20 or 1.45e11 < x Initial program 14.3%
associate-/l*22.7%
sub-neg22.7%
metadata-eval22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
fma-define22.7%
Simplified22.7%
Taylor expanded in x around -inf 94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
mul-1-neg94.9%
unsub-neg94.9%
neg-mul-194.9%
unsub-neg94.9%
Simplified94.9%
if -1.42e20 < x < 1.45e11Initial program 99.6%
Taylor expanded in x around 0 98.8%
*-commutative98.8%
Simplified98.8%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -36.0) (not (<= x 66.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 66.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-36.0d0)) .or. (.not. (x <= 66.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 66.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -36.0) or not (x <= 66.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -36.0) || !(x <= 66.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -36.0) || ~((x <= 66.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -36.0], N[Not[LessEqual[x, 66.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36 \lor \neg \left(x \leq 66\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\end{array}
\end{array}
if x < -36 or 66 < x Initial program 17.9%
associate-/l*25.9%
sub-neg25.9%
metadata-eval25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
fma-define25.9%
Simplified25.9%
Taylor expanded in x around -inf 92.2%
mul-1-neg92.2%
unsub-neg92.2%
mul-1-neg92.2%
unsub-neg92.2%
mul-1-neg92.2%
unsub-neg92.2%
neg-mul-192.2%
unsub-neg92.2%
Simplified92.2%
if -36 < x < 66Initial program 99.6%
Taylor expanded in x around 0 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in x around 0 98.3%
*-commutative98.3%
Simplified98.3%
Final simplification95.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2400000.0) (not (<= x 82.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(+
(* z -0.0424927283095952)
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2400000.0) || !(x <= 82.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
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 <= (-2400000.0d0)) .or. (.not. (x <= 82.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2400000.0) || !(x <= 82.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2400000.0) or not (x <= 82.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2400000.0) || !(x <= 82.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2400000.0) || ~((x <= 82.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2400000.0], N[Not[LessEqual[x, 82.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2400000 \lor \neg \left(x \leq 82\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\end{array}
\end{array}
if x < -2.4e6 or 82 < x Initial program 17.2%
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 92.9%
mul-1-neg92.9%
unsub-neg92.9%
mul-1-neg92.9%
unsub-neg92.9%
mul-1-neg92.9%
unsub-neg92.9%
neg-mul-192.9%
unsub-neg92.9%
Simplified92.9%
if -2.4e6 < x < 82Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 89.2%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x 32.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 32.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= 32.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
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 <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 32.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= 32.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= 32.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= 32.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 32.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 32:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 24.1%
associate-/l*30.5%
sub-neg30.5%
metadata-eval30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
Simplified30.5%
Taylor expanded in x around -inf 81.1%
mul-1-neg81.1%
unsub-neg81.1%
sub-neg81.1%
associate-*r/81.1%
metadata-eval81.1%
distribute-neg-frac81.1%
metadata-eval81.1%
Simplified81.1%
if -5.5 < x < 32Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 90.4%
if 32 < x Initial program 9.3%
associate-/l*19.8%
sub-neg19.8%
metadata-eval19.8%
fma-define19.8%
fma-define19.8%
fma-define19.8%
fma-define19.8%
fma-define19.8%
fma-define19.8%
fma-define19.8%
Simplified19.8%
Taylor expanded in x around inf 88.5%
associate-*r/88.5%
metadata-eval88.5%
Simplified88.5%
Final simplification87.4%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x -3.3e-44)
(* (+ x -2.0) (/ (* x y) (+ 47.066876606 (* x 313.399215894))))
(if (<= x 0.0152)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= -3.3e-44) {
tmp = (x + -2.0) * ((x * y) / (47.066876606 + (x * 313.399215894)));
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-36.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= (-3.3d-44)) then
tmp = (x + (-2.0d0)) * ((x * y) / (47.066876606d0 + (x * 313.399215894d0)))
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= -3.3e-44) {
tmp = (x + -2.0) * ((x * y) / (47.066876606 + (x * 313.399215894)));
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= -3.3e-44: tmp = (x + -2.0) * ((x * y) / (47.066876606 + (x * 313.399215894))) elif x <= 0.0152: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= -3.3e-44) tmp = Float64(Float64(x + -2.0) * Float64(Float64(x * y) / Float64(47.066876606 + Float64(x * 313.399215894)))); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -36.0) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= -3.3e-44) tmp = (x + -2.0) * ((x * y) / (47.066876606 + (x * 313.399215894))); elseif (x <= 0.0152) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.3e-44], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq -3.3 \cdot 10^{-44}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{x \cdot y}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -36Initial program 23.1%
associate-/l*29.6%
sub-neg29.6%
metadata-eval29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
Simplified29.6%
Taylor expanded in x around -inf 82.2%
mul-1-neg82.2%
unsub-neg82.2%
sub-neg82.2%
associate-*r/82.2%
metadata-eval82.2%
distribute-neg-frac82.2%
metadata-eval82.2%
Simplified82.2%
if -36 < x < -3.30000000000000006e-44Initial program 99.7%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around inf 66.1%
Taylor expanded in x around 0 59.5%
*-commutative59.5%
Simplified59.5%
if -3.30000000000000006e-44 < x < 0.0152Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
Simplified72.9%
if 0.0152 < x Initial program 11.3%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x -5e-44)
(* -2.0 (/ (* x y) (+ 47.066876606 (* x 313.399215894))))
(if (<= x 0.015)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= -5e-44) {
tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894)));
} else if (x <= 0.015) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-36.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= (-5d-44)) then
tmp = (-2.0d0) * ((x * y) / (47.066876606d0 + (x * 313.399215894d0)))
else if (x <= 0.015d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= -5e-44) {
tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894)));
} else if (x <= 0.015) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= -5e-44: tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894))) elif x <= 0.015: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= -5e-44) tmp = Float64(-2.0 * Float64(Float64(x * y) / Float64(47.066876606 + Float64(x * 313.399215894)))); elseif (x <= 0.015) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -36.0) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= -5e-44) tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894))); elseif (x <= 0.015) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5e-44], N[(-2.0 * N[(N[(x * y), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.015], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-44}:\\
\;\;\;\;-2 \cdot \frac{x \cdot y}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 0.015:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -36Initial program 23.1%
associate-/l*29.6%
sub-neg29.6%
metadata-eval29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
Simplified29.6%
Taylor expanded in x around -inf 82.2%
mul-1-neg82.2%
unsub-neg82.2%
sub-neg82.2%
associate-*r/82.2%
metadata-eval82.2%
distribute-neg-frac82.2%
metadata-eval82.2%
Simplified82.2%
if -36 < x < -5.00000000000000039e-44Initial program 99.7%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around inf 66.1%
Taylor expanded in x around 0 59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in x around 0 58.4%
if -5.00000000000000039e-44 < x < 0.014999999999999999Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
Simplified72.9%
if 0.014999999999999999 < x Initial program 11.3%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x -5e-44)
(* -2.0 (/ (* x y) (+ 47.066876606 (* x 313.399215894))))
(if (<= x 0.0152)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= -5e-44) {
tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894)));
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-36.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= (-5d-44)) then
tmp = (-2.0d0) * ((x * y) / (47.066876606d0 + (x * 313.399215894d0)))
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -36.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= -5e-44) {
tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894)));
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= -5e-44: tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894))) elif x <= 0.0152: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= -5e-44) tmp = Float64(-2.0 * Float64(Float64(x * y) / Float64(47.066876606 + Float64(x * 313.399215894)))); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -36.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= -5e-44) tmp = -2.0 * ((x * y) / (47.066876606 + (x * 313.399215894))); elseif (x <= 0.0152) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5e-44], N[(-2.0 * N[(N[(x * y), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-44}:\\
\;\;\;\;-2 \cdot \frac{x \cdot y}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -36Initial program 23.1%
associate-/l*29.6%
sub-neg29.6%
metadata-eval29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
fma-define29.6%
Simplified29.6%
Taylor expanded in x around inf 82.2%
associate-*r/82.2%
metadata-eval82.2%
Simplified82.2%
if -36 < x < -5.00000000000000039e-44Initial program 99.7%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.8%
Simplified99.8%
Taylor expanded in y around inf 66.1%
Taylor expanded in x around 0 59.5%
*-commutative59.5%
Simplified59.5%
Taylor expanded in x around 0 58.4%
if -5.00000000000000039e-44 < x < 0.0152Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
Simplified72.9%
if 0.0152 < x Initial program 11.3%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x -6.6e-45)
(* (+ x -2.0) (/ (* x y) 47.066876606))
(if (<= x 0.0152)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= -6.6e-45) {
tmp = (x + -2.0) * ((x * y) / 47.066876606);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= (-6.6d-45)) then
tmp = (x + (-2.0d0)) * ((x * y) / 47.066876606d0)
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= -6.6e-45) {
tmp = (x + -2.0) * ((x * y) / 47.066876606);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= -6.6e-45: tmp = (x + -2.0) * ((x * y) / 47.066876606) elif x <= 0.0152: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= -6.6e-45) tmp = Float64(Float64(x + -2.0) * Float64(Float64(x * y) / 47.066876606)); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -5.5) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= -6.6e-45) tmp = (x + -2.0) * ((x * y) / 47.066876606); elseif (x <= 0.0152) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.6e-45], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * y), $MachinePrecision] / 47.066876606), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq -6.6 \cdot 10^{-45}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{x \cdot y}{47.066876606}\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 24.1%
associate-/l*30.5%
sub-neg30.5%
metadata-eval30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
Simplified30.5%
Taylor expanded in x around inf 81.1%
associate-*r/81.1%
metadata-eval81.1%
Simplified81.1%
if -5.5 < x < -6.6000000000000001e-45Initial program 99.8%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around inf 63.7%
Taylor expanded in x around 0 62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in x around 0 60.1%
if -6.6000000000000001e-45 < x < 0.0152Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
Simplified72.9%
if 0.0152 < x Initial program 11.3%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x -5e-45)
(* -0.0424927283095952 (* x y))
(if (<= x 0.0152)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= -5e-45) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= (-5d-45)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= -5e-45) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= -5e-45: tmp = -0.0424927283095952 * (x * y) elif x <= 0.0152: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= -5e-45) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -5.5) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= -5e-45) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.0152) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5e-45], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-45}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 24.1%
associate-/l*30.5%
sub-neg30.5%
metadata-eval30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
fma-define30.5%
Simplified30.5%
Taylor expanded in x around inf 81.1%
associate-*r/81.1%
metadata-eval81.1%
Simplified81.1%
if -5.5 < x < -4.99999999999999976e-45Initial program 99.8%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around inf 63.7%
Taylor expanded in x around 0 60.0%
if -4.99999999999999976e-45 < x < 0.0152Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
Simplified72.9%
if 0.0152 < x Initial program 11.3%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -5.5)
t_0
(if (<= x -3.8e-44)
(* -0.0424927283095952 (* x y))
(if (<= x 0.0152) (* (+ x -2.0) (* z 0.0212463641547976)) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -3.8e-44) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= (-3.8d-44)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -3.8e-44) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= -3.8e-44: tmp = -0.0424927283095952 * (x * y) elif x <= 0.0152: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= -3.8e-44) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= -3.8e-44) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.0152) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, -3.8e-44], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-44}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5 or 0.0152 < x Initial program 19.2%
associate-/l*27.1%
sub-neg27.1%
metadata-eval27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
Simplified27.1%
Taylor expanded in x around inf 83.2%
associate-*r/83.2%
metadata-eval83.2%
Simplified83.2%
if -5.5 < x < -3.8000000000000001e-44Initial program 99.8%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around inf 63.7%
Taylor expanded in x around 0 60.0%
if -3.8000000000000001e-44 < x < 0.0152Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
Simplified72.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (- 4.16438922228 (/ 110.1139242984811 x)))))
(if (<= x -5.5)
t_0
(if (<= x -4.4e-44)
(* -0.0424927283095952 (* x y))
(if (<= x 0.0152) (* z -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -4.4e-44) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (4.16438922228d0 - (110.1139242984811d0 / x))
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= (-4.4d-44)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.0152d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 - (110.1139242984811 / x));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -4.4e-44) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 - (110.1139242984811 / x)) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= -4.4e-44: tmp = -0.0424927283095952 * (x * y) elif x <= 0.0152: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= -4.4e-44) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.0152) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 - (110.1139242984811 / x)); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= -4.4e-44) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.0152) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, -4.4e-44], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-44}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5 or 0.0152 < x Initial program 19.2%
associate-/l*27.1%
sub-neg27.1%
metadata-eval27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
Simplified27.1%
Taylor expanded in x around inf 83.2%
associate-*r/83.2%
metadata-eval83.2%
Simplified83.2%
if -5.5 < x < -4.40000000000000024e-44Initial program 99.8%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around inf 63.7%
Taylor expanded in x around 0 60.0%
if -4.40000000000000024e-44 < x < 0.0152Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
Final simplification77.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* 4.16438922228 (+ x -2.0))))
(if (<= x -5.5)
t_0
(if (<= x -8.5e-45)
(* -0.0424927283095952 (* x y))
(if (<= x 0.0152) (* z -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -8.5e-45) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 * (x + (-2.0d0))
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= (-8.5d-45)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 0.0152d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -8.5e-45) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 * (x + -2.0) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= -8.5e-45: tmp = -0.0424927283095952 * (x * y) elif x <= 0.0152: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 * Float64(x + -2.0)) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= -8.5e-45) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 0.0152) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 * (x + -2.0); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= -8.5e-45) tmp = -0.0424927283095952 * (x * y); elseif (x <= 0.0152) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, -8.5e-45], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{-45}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5 or 0.0152 < x Initial program 19.2%
associate-/l*27.1%
sub-neg27.1%
metadata-eval27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
fma-define27.1%
Simplified27.1%
Taylor expanded in x around inf 82.8%
if -5.5 < x < -8.50000000000000041e-45Initial program 99.8%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around inf 63.7%
Taylor expanded in x around 0 60.0%
if -8.50000000000000041e-45 < x < 0.0152Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.9%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x 4.16438922228)
(if (<= x -5e-44)
(* -0.0424927283095952 (* x y))
(if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= -5e-44) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = x * 4.16438922228d0
else if (x <= (-5d-44)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= -5e-44) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * 4.16438922228 elif x <= -5e-44: tmp = -0.0424927283095952 * (x * y) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * 4.16438922228); elseif (x <= -5e-44) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * 4.16438922228; elseif (x <= -5e-44) tmp = -0.0424927283095952 * (x * y); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -5e-44], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-44}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 18.6%
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 83.5%
*-commutative83.5%
Simplified83.5%
if -5.5 < x < -5.00000000000000039e-44Initial program 99.8%
associate-/l*99.9%
sub-neg99.9%
metadata-eval99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
fma-define99.9%
Simplified99.9%
Taylor expanded in y around inf 63.7%
Taylor expanded in x around 0 60.0%
if -5.00000000000000039e-44 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 72.4%
Final simplification76.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -2400000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2400000.0) || !(x <= 2.0)) {
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 <= (-2400000.0d0)) .or. (.not. (x <= 2.0d0))) 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 <= -2400000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2400000.0) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2400000.0) || !(x <= 2.0)) 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 <= -2400000.0) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2400000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2400000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -2.4e6 or 2 < x Initial program 17.2%
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 84.8%
*-commutative84.8%
Simplified84.8%
if -2.4e6 < x < 2Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 67.0%
Final simplification75.2%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 61.6%
associate-/l*65.3%
sub-neg65.3%
metadata-eval65.3%
fma-define65.3%
fma-define65.3%
fma-define65.3%
fma-define65.3%
fma-define65.3%
fma-define65.3%
fma-define65.3%
Simplified65.3%
Taylor expanded in x around 0 37.6%
Final simplification37.6%
(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 2024152
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))