
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_2 (/ x t_1))
(t_3 (/ z t_1)))
(if (<= (/ (* (- x 2.0) (+ z (* x (+ y (* x t_0))))) t_1) 500000000.0)
(* (+ x -2.0) (+ t_3 (* y (+ t_2 (/ (* (pow x 2.0) t_0) (* y t_1))))))
(* (+ x -2.0) (+ t_3 (* y (+ t_2 (/ 4.16438922228 y))))))))
double code(double x, double y, double z) {
double t_0 = 137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)));
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = x / t_1;
double t_3 = z / t_1;
double tmp;
if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 500000000.0) {
tmp = (x + -2.0) * (t_3 + (y * (t_2 + ((pow(x, 2.0) * t_0) / (y * t_1)))));
} else {
tmp = (x + -2.0) * (t_3 + (y * (t_2 + (4.16438922228 / y))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = 137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0)))
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_2 = x / t_1
t_3 = z / t_1
if ((((x - 2.0d0) * (z + (x * (y + (x * t_0))))) / t_1) <= 500000000.0d0) then
tmp = (x + (-2.0d0)) * (t_3 + (y * (t_2 + (((x ** 2.0d0) * t_0) / (y * t_1)))))
else
tmp = (x + (-2.0d0)) * (t_3 + (y * (t_2 + (4.16438922228d0 / y))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)));
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = x / t_1;
double t_3 = z / t_1;
double tmp;
if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 500000000.0) {
tmp = (x + -2.0) * (t_3 + (y * (t_2 + ((Math.pow(x, 2.0) * t_0) / (y * t_1)))));
} else {
tmp = (x + -2.0) * (t_3 + (y * (t_2 + (4.16438922228 / y))));
}
return tmp;
}
def code(x, y, z): t_0 = 137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))) t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_2 = x / t_1 t_3 = z / t_1 tmp = 0 if (((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 500000000.0: tmp = (x + -2.0) * (t_3 + (y * (t_2 + ((math.pow(x, 2.0) * t_0) / (y * t_1))))) else: tmp = (x + -2.0) * (t_3 + (y * (t_2 + (4.16438922228 / y)))) return tmp
function code(x, y, z) t_0 = Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228)))) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_2 = Float64(x / t_1) t_3 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * t_0))))) / t_1) <= 500000000.0) tmp = Float64(Float64(x + -2.0) * Float64(t_3 + Float64(y * Float64(t_2 + Float64(Float64((x ^ 2.0) * t_0) / Float64(y * t_1)))))); else tmp = Float64(Float64(x + -2.0) * Float64(t_3 + Float64(y * Float64(t_2 + Float64(4.16438922228 / y))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))); t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_2 = x / t_1; t_3 = z / t_1; tmp = 0.0; if ((((x - 2.0) * (z + (x * (y + (x * t_0))))) / t_1) <= 500000000.0) tmp = (x + -2.0) * (t_3 + (y * (t_2 + (((x ^ 2.0) * t_0) / (y * t_1))))); else tmp = (x + -2.0) * (t_3 + (y * (t_2 + (4.16438922228 / y)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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$2 = N[(x / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 500000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$3 + N[(y * N[(t$95$2 + N[(N[(N[Power[x, 2.0], $MachinePrecision] * t$95$0), $MachinePrecision] / N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$3 + N[(y * N[(t$95$2 + N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_2 := \frac{x}{t\_1}\\
t_3 := \frac{z}{t\_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot t\_0\right)\right)}{t\_1} \leq 500000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_3 + y \cdot \left(t\_2 + \frac{{x}^{2} \cdot t\_0}{y \cdot t\_1}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_3 + y \cdot \left(t\_2 + \frac{4.16438922228}{y}\right)\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))) < 5e8Initial program 97.6%
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%
Taylor expanded in y around inf 99.6%
if 5e8 < (/.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 28.6%
associate-/l*32.3%
sub-neg32.3%
metadata-eval32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
Simplified32.3%
Taylor expanded in z around 0 32.3%
Taylor expanded in y around inf 31.7%
Taylor expanded in x around inf 98.7%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228))))))))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606))
(t_3 (/ z t_2)))
(if (<= (/ (* (- x 2.0) (+ z t_0)) t_2) 500000000.0)
(*
(+ x -2.0)
(+
t_3
(/
t_0
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_1))))))))
(* (+ x -2.0) (+ t_3 (* y (+ (/ x t_2) (/ 4.16438922228 y))))))))
double code(double x, double y, double z) {
double t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_3 = z / t_2;
double tmp;
if ((((x - 2.0) * (z + t_0)) / t_2) <= 500000000.0) {
tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))));
} else {
tmp = (x + -2.0) * (t_3 + (y * ((x / t_2) + (4.16438922228 / y))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
t_1 = x * (x + 43.3400022514d0)
t_2 = (x * ((x * (t_1 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_3 = z / t_2
if ((((x - 2.0d0) * (z + t_0)) / t_2) <= 500000000.0d0) then
tmp = (x + (-2.0d0)) * (t_3 + (t_0 / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_1)))))))
else
tmp = (x + (-2.0d0)) * (t_3 + (y * ((x / t_2) + (4.16438922228d0 / y))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_3 = z / t_2;
double tmp;
if ((((x - 2.0) * (z + t_0)) / t_2) <= 500000000.0) {
tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1)))))));
} else {
tmp = (x + -2.0) * (t_3 + (y * ((x / t_2) + (4.16438922228 / y))));
}
return tmp;
}
def code(x, y, z): t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) t_1 = x * (x + 43.3400022514) t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606 t_3 = z / t_2 tmp = 0 if (((x - 2.0) * (z + t_0)) / t_2) <= 500000000.0: tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1))))))) else: tmp = (x + -2.0) * (t_3 + (y * ((x / t_2) + (4.16438922228 / y)))) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) t_1 = Float64(x * Float64(x + 43.3400022514)) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606) t_3 = Float64(z / t_2) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_0)) / t_2) <= 500000000.0) tmp = Float64(Float64(x + -2.0) * Float64(t_3 + Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * 263.505074721) + Float64(x * t_1)))))))); else tmp = Float64(Float64(x + -2.0) * Float64(t_3 + Float64(y * Float64(Float64(x / t_2) + Float64(4.16438922228 / y))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); t_1 = x * (x + 43.3400022514); t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606; t_3 = z / t_2; tmp = 0.0; if ((((x - 2.0) * (z + t_0)) / t_2) <= 500000000.0) tmp = (x + -2.0) * (t_3 + (t_0 / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_1))))))); else tmp = (x + -2.0) * (t_3 + (y * ((x / t_2) + (4.16438922228 / y)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$3 = N[(z / t$95$2), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$0), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 500000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$3 + N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * 263.505074721), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$3 + N[(y * N[(N[(x / t$95$2), $MachinePrecision] + N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
t_2 := x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_3 := \frac{z}{t\_2}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t\_0\right)}{t\_2} \leq 500000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_3 + \frac{t\_0}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot 263.505074721 + x \cdot t\_1\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_3 + y \cdot \left(\frac{x}{t\_2} + \frac{4.16438922228}{y}\right)\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))) < 5e8Initial program 97.6%
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%
distribute-lft-in99.5%
+-commutative99.5%
Applied egg-rr99.5%
if 5e8 < (/.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 28.6%
associate-/l*32.3%
sub-neg32.3%
metadata-eval32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
Simplified32.3%
Taylor expanded in z around 0 32.3%
Taylor expanded in y around inf 31.7%
Taylor expanded in x around inf 98.7%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228))))))))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_2 (/ z t_1)))
(if (<= (/ (* (- x 2.0) (+ z t_0)) t_1) 500000000.0)
(* (+ x -2.0) (+ t_2 (/ t_0 t_1)))
(* (+ x -2.0) (+ t_2 (* y (+ (/ x t_1) (/ 4.16438922228 y))))))))
double code(double x, double y, double z) {
double t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (z + t_0)) / t_1) <= 500000000.0) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (t_2 + (y * ((x / t_1) + (4.16438922228 / y))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_2 = z / t_1
if ((((x - 2.0d0) * (z + t_0)) / t_1) <= 500000000.0d0) then
tmp = (x + (-2.0d0)) * (t_2 + (t_0 / t_1))
else
tmp = (x + (-2.0d0)) * (t_2 + (y * ((x / t_1) + (4.16438922228d0 / y))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (z + t_0)) / t_1) <= 500000000.0) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (t_2 + (y * ((x / t_1) + (4.16438922228 / y))));
}
return tmp;
}
def code(x, y, z): t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_2 = z / t_1 tmp = 0 if (((x - 2.0) * (z + t_0)) / t_1) <= 500000000.0: tmp = (x + -2.0) * (t_2 + (t_0 / t_1)) else: tmp = (x + -2.0) * (t_2 + (y * ((x / t_1) + (4.16438922228 / y)))) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_0)) / t_1) <= 500000000.0) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(t_0 / t_1))); else tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(y * Float64(Float64(x / t_1) + Float64(4.16438922228 / y))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * (z + t_0)) / t_1) <= 500000000.0) tmp = (x + -2.0) * (t_2 + (t_0 / t_1)); else tmp = (x + -2.0) * (t_2 + (y * ((x / t_1) + (4.16438922228 / y)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$0), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 500000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(y * N[(N[(x / t$95$1), $MachinePrecision] + N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_2 := \frac{z}{t\_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t\_0\right)}{t\_1} \leq 500000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + \frac{t\_0}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + y \cdot \left(\frac{x}{t\_1} + \frac{4.16438922228}{y}\right)\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))) < 5e8Initial program 97.6%
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 5e8 < (/.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 28.6%
associate-/l*32.3%
sub-neg32.3%
metadata-eval32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
Simplified32.3%
Taylor expanded in z around 0 32.3%
Taylor expanded in y around inf 31.7%
Taylor expanded in x around inf 98.7%
Final simplification99.0%
(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)
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ 78.6994924154 (* x 4.16438922228)))))))))
t_0)))
(if (<= t_1 500000000.0)
t_1
(* (+ x -2.0) (+ (/ z t_0) (* y (+ (/ x t_0) (/ 4.16438922228 y))))))))
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) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0;
double tmp;
if (t_1 <= 500000000.0) {
tmp = t_1;
} else {
tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + (4.16438922228 / y))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: 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 - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))))) / t_0
if (t_1 <= 500000000.0d0) then
tmp = t_1
else
tmp = (x + (-2.0d0)) * ((z / t_0) + (y * ((x / t_0) + (4.16438922228d0 / y))))
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 - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0;
double tmp;
if (t_1 <= 500000000.0) {
tmp = t_1;
} else {
tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + (4.16438922228 / y))));
}
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) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0 tmp = 0 if t_1 <= 500000000.0: tmp = t_1 else: tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + (4.16438922228 / y)))) 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(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))))) / t_0) tmp = 0.0 if (t_1 <= 500000000.0) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(y * Float64(Float64(x / t_0) + Float64(4.16438922228 / y))))); 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) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0; tmp = 0.0; if (t_1 <= 500000000.0) tmp = t_1; else tmp = (x + -2.0) * ((z / t_0) + (y * ((x / t_0) + (4.16438922228 / y)))); 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[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, 500000000.0], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(y * N[(N[(x / t$95$0), $MachinePrecision] + N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $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(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq 500000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + y \cdot \left(\frac{x}{t\_0} + \frac{4.16438922228}{y}\right)\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))) < 5e8Initial program 97.6%
if 5e8 < (/.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 28.6%
associate-/l*32.3%
sub-neg32.3%
metadata-eval32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
fma-define32.3%
Simplified32.3%
Taylor expanded in z around 0 32.3%
Taylor expanded in y around inf 31.7%
Taylor expanded in x around inf 98.7%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ 78.6994924154 (* x 4.16438922228)))))))))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 1e+301)
t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+301) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+301) then
tmp = t_0
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+301) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 1e+301: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 1e+301) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 1e+301) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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]}, If[LessEqual[t$95$0, 1e+301], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq 10^{+301}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.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))) < 1.00000000000000005e301Initial program 98.2%
if 1.00000000000000005e301 < (/.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*5.5%
sub-neg5.5%
metadata-eval5.5%
fma-define5.5%
fma-define5.5%
fma-define5.5%
fma-define5.5%
fma-define5.5%
fma-define5.5%
fma-define5.5%
Simplified5.5%
Taylor expanded in x around -inf 97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
Simplified97.4%
Final simplification97.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -45000000.0) (not (<= x 1.7e+26)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) 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 <= -45000000.0) || !(x <= 1.7e+26)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((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 <= (-45000000.0d0)) .or. (.not. (x <= 1.7d+26))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((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 <= -45000000.0) || !(x <= 1.7e+26)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -45000000.0) or not (x <= 1.7e+26): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -45000000.0) || !(x <= 1.7e+26)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(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 <= -45000000.0) || ~((x <= 1.7e+26))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((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, -45000000.0], N[Not[LessEqual[x, 1.7e+26]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(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 -45000000 \lor \neg \left(x \leq 1.7 \cdot 10^{+26}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{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 < -4.5e7 or 1.7000000000000001e26 < x Initial program 10.7%
associate-/l*16.9%
sub-neg16.9%
metadata-eval16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
Simplified16.9%
Taylor expanded in x around -inf 96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
Simplified96.6%
if -4.5e7 < x < 1.7000000000000001e26Initial program 99.6%
Taylor expanded in x around 0 98.6%
*-commutative98.6%
Simplified98.6%
Final simplification97.6%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.0122) (not (<= x 0.076)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.0122) || !(x <= 0.076)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.0122d0)) .or. (.not. (x <= 0.076d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.0122) || !(x <= 0.076)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.0122) or not (x <= 0.076): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.0122) || !(x <= 0.076)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.0122) || ~((x <= 0.076))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.0122], N[Not[LessEqual[x, 0.076]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0122 \lor \neg \left(x \leq 0.076\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\end{array}
\end{array}
if x < -0.0122000000000000008 or 0.0759999999999999981 < x Initial program 17.9%
associate-/l*23.6%
sub-neg23.6%
metadata-eval23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
Simplified23.6%
Taylor expanded in z around 0 23.6%
Taylor expanded in x around inf 93.8%
if -0.0122000000000000008 < x < 0.0759999999999999981Initial program 99.7%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Final simplification96.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))))
(if (<= x -34000000.0)
t_0
(if (<= x 0.00082)
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* y (* x 0.0212463641547976))))
(if (<= x 7.2e+24)
(*
(+ x -2.0)
(/
z
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606)))
t_0)))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -34000000.0) {
tmp = t_0;
} else if (x <= 0.00082) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976)));
} else if (x <= 7.2e+24) {
tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 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 = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-34000000.0d0)) then
tmp = t_0
else if (x <= 0.00082d0) then
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))) + (y * (x * 0.0212463641547976d0)))
else if (x <= 7.2d+24) then
tmp = (x + (-2.0d0)) * (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 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 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -34000000.0) {
tmp = t_0;
} else if (x <= 0.00082) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976)));
} else if (x <= 7.2e+24) {
tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -34000000.0: tmp = t_0 elif x <= 0.00082: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976))) elif x <= 7.2e+24: tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -34000000.0) tmp = t_0; elseif (x <= 0.00082) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 7.2e+24) tmp = Float64(Float64(x + -2.0) * Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -34000000.0) tmp = t_0; elseif (x <= 0.00082) tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976))); elseif (x <= 7.2e+24) tmp = (x + -2.0) * (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -34000000.0], t$95$0, If[LessEqual[x, 0.00082], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e+24], N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -34000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.00082:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)} + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{+24}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -3.4e7 or 7.19999999999999966e24 < x Initial program 10.7%
associate-/l*16.9%
sub-neg16.9%
metadata-eval16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
fma-define16.9%
Simplified16.9%
Taylor expanded in x around -inf 96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
mul-1-neg96.6%
unsub-neg96.6%
Simplified96.6%
if -3.4e7 < x < 8.1999999999999998e-4Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 96.2%
*-commutative96.2%
associate-*r*96.2%
*-commutative96.2%
associate-*l*96.2%
Simplified96.2%
Taylor expanded in x around 0 94.0%
*-commutative94.0%
Simplified94.0%
if 8.1999999999999998e-4 < x < 7.19999999999999966e24Initial program 98.9%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-define99.1%
fma-define99.1%
fma-define99.1%
fma-define99.1%
fma-define99.1%
fma-define99.1%
fma-define99.3%
Simplified99.3%
Taylor expanded in z around inf 85.5%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.0315) (not (<= x 0.0115)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.0315) || !(x <= 0.0115)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.0315d0)) .or. (.not. (x <= 0.0115d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.0315) || !(x <= 0.0115)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.0315) or not (x <= 0.0115): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.0315) || !(x <= 0.0115)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.0315) || ~((x <= 0.0115))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.0315], N[Not[LessEqual[x, 0.0115]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0315 \lor \neg \left(x \leq 0.0115\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\end{array}
\end{array}
if x < -0.0315 or 0.0115 < x Initial program 17.9%
associate-/l*23.6%
sub-neg23.6%
metadata-eval23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
fma-define23.6%
Simplified23.6%
Taylor expanded in z around 0 23.6%
Taylor expanded in x around inf 93.8%
if -0.0315 < x < 0.0115Initial program 99.7%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 99.3%
*-commutative99.4%
Simplified99.3%
Final simplification96.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2.25e-10) (not (<= x 0.0001)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* y (* x 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.25e-10) || !(x <= 0.0001)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-2.25d-10)) .or. (.not. (x <= 0.0001d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))) + (y * (x * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.25e-10) || !(x <= 0.0001)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.25e-10) or not (x <= 0.0001): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.25e-10) || !(x <= 0.0001)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))) + Float64(y * Float64(x * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.25e-10) || ~((x <= 0.0001))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.25e-10], N[Not[LessEqual[x, 0.0001]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.25 \cdot 10^{-10} \lor \neg \left(x \leq 0.0001\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)} + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -2.25e-10 or 1.00000000000000005e-4 < x Initial program 18.5%
associate-/l*24.2%
sub-neg24.2%
metadata-eval24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.2%
fma-define24.1%
fma-define24.1%
fma-define24.2%
Simplified24.2%
Taylor expanded in z around 0 24.2%
Taylor expanded in x around inf 93.2%
if -2.25e-10 < x < 1.00000000000000005e-4Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 97.6%
*-commutative97.6%
associate-*r*97.6%
*-commutative97.6%
associate-*l*97.6%
Simplified97.6%
Taylor expanded in x around 0 97.6%
*-commutative97.6%
Simplified97.6%
Final simplification95.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -34000000.0) (not (<= x 1360000000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(+
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* y (* x 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 1360000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-34000000.0d0)) .or. (.not. (x <= 1360000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))) + (y * (x * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 1360000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -34000000.0) or not (x <= 1360000000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -34000000.0) || !(x <= 1360000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))) + Float64(y * Float64(x * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -34000000.0) || ~((x <= 1360000000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) + (y * (x * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -34000000.0], N[Not[LessEqual[x, 1360000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000 \lor \neg \left(x \leq 1360000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)} + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -3.4e7 or 1.36e9 < x Initial program 12.8%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
Simplified95.1%
if -3.4e7 < x < 1.36e9Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 96.3%
*-commutative96.3%
associate-*r*96.3%
*-commutative96.3%
associate-*l*96.3%
Simplified96.3%
Taylor expanded in x around 0 91.6%
*-commutative91.6%
Simplified91.6%
Final simplification93.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -34000000.0) (not (<= x 1360000000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 1360000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-34000000.0d0)) .or. (.not. (x <= 1360000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 1360000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -34000000.0) or not (x <= 1360000000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -34000000.0) || !(x <= 1360000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -34000000.0) || ~((x <= 1360000000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -34000000.0], N[Not[LessEqual[x, 1360000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000 \lor \neg \left(x \leq 1360000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -3.4e7 or 1.36e9 < x Initial program 12.8%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
Simplified95.1%
if -3.4e7 < x < 1.36e9Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 96.3%
*-commutative96.3%
associate-*r*96.3%
*-commutative96.3%
associate-*l*96.3%
Simplified96.3%
Taylor expanded in x around 0 90.8%
Taylor expanded in y around 0 90.8%
associate-*r*90.8%
*-commutative90.8%
associate-*l*90.8%
Simplified90.8%
Final simplification92.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -34000000.0) (not (<= x 0.75)))
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 0.75)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
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 <= (-34000000.0d0)) .or. (.not. (x <= 0.75d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 0.75)) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -34000000.0) or not (x <= 0.75): tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -34000000.0) || !(x <= 0.75)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -34000000.0) || ~((x <= 0.75))) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -34000000.0], N[Not[LessEqual[x, 0.75]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000 \lor \neg \left(x \leq 0.75\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -3.4e7 or 0.75 < x Initial program 15.4%
associate-/l*21.3%
sub-neg21.3%
metadata-eval21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
fma-define21.3%
Simplified21.3%
Taylor expanded in x around -inf 87.9%
mul-1-neg87.9%
unsub-neg87.9%
sub-neg87.9%
associate-*r/87.9%
metadata-eval87.9%
distribute-neg-frac87.9%
metadata-eval87.9%
Simplified87.9%
if -3.4e7 < x < 0.75Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 93.6%
Final simplification90.7%
(FPCore (x y z)
:precision binary64
(if (<= x -34000000.0)
(*
(+ x -2.0)
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x 4.5e+19)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 4.5e+19) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-34000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= 4.5d+19) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 4.5e+19) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -34000000.0: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= 4.5e+19: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -34000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= 4.5e+19) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -34000000.0) tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= 4.5e+19) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -34000000.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, 4.5e+19], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+19}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -3.4e7Initial program 17.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around -inf 91.4%
mul-1-neg91.4%
unsub-neg91.4%
sub-neg91.4%
associate-*r/91.4%
metadata-eval91.4%
distribute-neg-frac91.4%
metadata-eval91.4%
Simplified91.4%
if -3.4e7 < x < 4.5e19Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
associate-*r*95.7%
*-commutative95.7%
associate-*l*95.6%
Simplified95.6%
Taylor expanded in x around 0 90.2%
Taylor expanded in y around 0 90.1%
associate-*r*90.2%
*-commutative90.2%
associate-*l*90.2%
Simplified90.2%
if 4.5e19 < x Initial program 5.5%
associate-/l*13.8%
sub-neg13.8%
metadata-eval13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
Simplified13.8%
Taylor expanded in x around inf 91.0%
associate-*r/91.0%
metadata-eval91.0%
Simplified91.0%
Final simplification90.7%
(FPCore (x y z)
:precision binary64
(if (<= x -34000000.0)
(*
x
(+ 4.16438922228 (/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)))
(if (<= x 4.5e+19)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* x (* y 0.0212463641547976))))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 4.5e+19) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-34000000.0d0)) then
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x))
else if (x <= 4.5d+19) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (y * 0.0212463641547976d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 4.5e+19) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976)));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -34000000.0: tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)) elif x <= 4.5e+19: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -34000000.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); elseif (x <= 4.5e+19) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(y * 0.0212463641547976)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -34000000.0) tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)); elseif (x <= 4.5e+19) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (y * 0.0212463641547976))); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -34000000.0], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+19], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+19}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -3.4e7Initial program 17.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around -inf 91.4%
mul-1-neg91.4%
unsub-neg91.4%
sub-neg91.4%
associate-*r/91.4%
metadata-eval91.4%
distribute-neg-frac91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in x around inf 91.4%
associate--l+91.4%
unpow291.4%
associate-/r*91.4%
metadata-eval91.4%
associate-*r/91.4%
associate-*r/91.4%
metadata-eval91.4%
div-sub91.4%
sub-neg91.4%
metadata-eval91.4%
+-commutative91.4%
associate-*r/91.4%
metadata-eval91.4%
Simplified91.4%
if -3.4e7 < x < 4.5e19Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
associate-*r*95.7%
*-commutative95.7%
associate-*l*95.6%
Simplified95.6%
Taylor expanded in x around 0 90.2%
Taylor expanded in y around 0 90.1%
associate-*r*90.2%
*-commutative90.2%
associate-*l*90.2%
Simplified90.2%
if 4.5e19 < x Initial program 5.5%
associate-/l*13.8%
sub-neg13.8%
metadata-eval13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
Simplified13.8%
Taylor expanded in x around inf 91.0%
associate-*r/91.0%
metadata-eval91.0%
Simplified91.0%
Final simplification90.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -34000000.0) (not (<= x 4.5e+19))) (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))) (* 0.0212463641547976 (* (- x 2.0) z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 4.5e+19)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = 0.0212463641547976 * ((x - 2.0) * z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-34000000.0d0)) .or. (.not. (x <= 4.5d+19))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else
tmp = 0.0212463641547976d0 * ((x - 2.0d0) * z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.0) || !(x <= 4.5e+19)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = 0.0212463641547976 * ((x - 2.0) * z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -34000000.0) or not (x <= 4.5e+19): tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) else: tmp = 0.0212463641547976 * ((x - 2.0) * z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -34000000.0) || !(x <= 4.5e+19)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); else tmp = Float64(0.0212463641547976 * Float64(Float64(x - 2.0) * z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -34000000.0) || ~((x <= 4.5e+19))) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); else tmp = 0.0212463641547976 * ((x - 2.0) * z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -34000000.0], N[Not[LessEqual[x, 4.5e+19]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(0.0212463641547976 * N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000 \lor \neg \left(x \leq 4.5 \cdot 10^{+19}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;0.0212463641547976 \cdot \left(\left(x - 2\right) \cdot z\right)\\
\end{array}
\end{array}
if x < -3.4e7 or 4.5e19 < x Initial program 12.1%
associate-/l*18.2%
sub-neg18.2%
metadata-eval18.2%
fma-define18.2%
fma-define18.2%
fma-define18.2%
fma-define18.2%
fma-define18.2%
fma-define18.2%
fma-define18.2%
Simplified18.2%
Taylor expanded in x around inf 91.1%
associate-*r/91.1%
metadata-eval91.1%
Simplified91.1%
if -3.4e7 < x < 4.5e19Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
associate-*r*95.7%
*-commutative95.7%
associate-*l*95.6%
Simplified95.6%
Taylor expanded in x around 0 90.2%
Taylor expanded in z around inf 64.8%
Final simplification77.6%
(FPCore (x y z)
:precision binary64
(if (<= x -34000000.0)
(*
x
(+ 4.16438922228 (/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)))
(if (<= x 2.0)
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-34000000.0d0)) then
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x))
else if (x <= 2.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -34000000.0: tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)) elif x <= 2.0: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -34000000.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); elseif (x <= 2.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -34000000.0) tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)); elseif (x <= 2.0) tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -34000000.0], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3.4e7Initial program 17.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around -inf 91.4%
mul-1-neg91.4%
unsub-neg91.4%
sub-neg91.4%
associate-*r/91.4%
metadata-eval91.4%
distribute-neg-frac91.4%
metadata-eval91.4%
Simplified91.4%
Taylor expanded in x around inf 91.4%
associate--l+91.4%
unpow291.4%
associate-/r*91.4%
metadata-eval91.4%
associate-*r/91.4%
associate-*r/91.4%
metadata-eval91.4%
div-sub91.4%
sub-neg91.4%
metadata-eval91.4%
+-commutative91.4%
associate-*r/91.4%
metadata-eval91.4%
Simplified91.4%
if -3.4e7 < x < 2Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 92.1%
Taylor expanded in z around 0 92.8%
*-commutative92.8%
associate-*r*92.8%
Simplified92.8%
if 2 < x Initial program 11.7%
associate-/l*19.4%
sub-neg19.4%
metadata-eval19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around inf 85.3%
Taylor expanded in x around inf 85.3%
Final simplification90.6%
(FPCore (x y z)
:precision binary64
(if (<= x -34000000.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 2.0)
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-34000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 2.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -34000000.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 2.0: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -34000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 2.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -34000000.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 2.0) tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -34000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3.4e7Initial program 17.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around inf 91.2%
associate-*r/91.2%
metadata-eval91.2%
Simplified91.2%
if -3.4e7 < x < 2Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 92.1%
Taylor expanded in z around 0 92.8%
*-commutative92.8%
associate-*r*92.8%
Simplified92.8%
if 2 < x Initial program 11.7%
associate-/l*19.4%
sub-neg19.4%
metadata-eval19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around inf 85.3%
Taylor expanded in x around inf 85.3%
Final simplification90.6%
(FPCore (x y z)
:precision binary64
(if (<= x -37000000.0)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 4.5e+19)
(* 0.0212463641547976 (* (- x 2.0) z))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -37000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 4.5e+19) {
tmp = 0.0212463641547976 * ((x - 2.0) * z);
} 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 <= (-37000000.0d0)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 4.5d+19) then
tmp = 0.0212463641547976d0 * ((x - 2.0d0) * z)
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 <= -37000000.0) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 4.5e+19) {
tmp = 0.0212463641547976 * ((x - 2.0) * z);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -37000000.0: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 4.5e+19: tmp = 0.0212463641547976 * ((x - 2.0) * z) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -37000000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 4.5e+19) tmp = Float64(0.0212463641547976 * Float64(Float64(x - 2.0) * z)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -37000000.0) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 4.5e+19) tmp = 0.0212463641547976 * ((x - 2.0) * z); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -37000000.0], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+19], N[(0.0212463641547976 * N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -37000000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+19}:\\
\;\;\;\;0.0212463641547976 \cdot \left(\left(x - 2\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3.7e7Initial program 17.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around inf 91.2%
associate-*r/91.2%
metadata-eval91.2%
Simplified91.2%
if -3.7e7 < x < 4.5e19Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
associate-*r*95.7%
*-commutative95.7%
associate-*l*95.6%
Simplified95.6%
Taylor expanded in x around 0 90.2%
Taylor expanded in z around inf 64.8%
if 4.5e19 < x Initial program 5.5%
associate-/l*13.8%
sub-neg13.8%
metadata-eval13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
Simplified13.8%
Taylor expanded in x around inf 91.0%
Taylor expanded in x around inf 91.0%
Final simplification77.6%
(FPCore (x y z)
:precision binary64
(if (<= x -34000000.0)
(* 4.16438922228 (+ x -2.0))
(if (<= x 4.5e+19)
(* 0.0212463641547976 (* (- x 2.0) z))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 4.5e+19) {
tmp = 0.0212463641547976 * ((x - 2.0) * z);
} 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 <= (-34000000.0d0)) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else if (x <= 4.5d+19) then
tmp = 0.0212463641547976d0 * ((x - 2.0d0) * z)
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 <= -34000000.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 4.5e+19) {
tmp = 0.0212463641547976 * ((x - 2.0) * z);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -34000000.0: tmp = 4.16438922228 * (x + -2.0) elif x <= 4.5e+19: tmp = 0.0212463641547976 * ((x - 2.0) * z) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -34000000.0) tmp = Float64(4.16438922228 * Float64(x + -2.0)); elseif (x <= 4.5e+19) tmp = Float64(0.0212463641547976 * Float64(Float64(x - 2.0) * z)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -34000000.0) tmp = 4.16438922228 * (x + -2.0); elseif (x <= 4.5e+19) tmp = 0.0212463641547976 * ((x - 2.0) * z); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -34000000.0], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+19], N[(0.0212463641547976 * N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -34000000:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+19}:\\
\;\;\;\;0.0212463641547976 \cdot \left(\left(x - 2\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3.4e7Initial program 17.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around inf 90.7%
if -3.4e7 < x < 4.5e19Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
associate-*r*95.7%
*-commutative95.7%
associate-*l*95.6%
Simplified95.6%
Taylor expanded in x around 0 90.2%
Taylor expanded in z around inf 64.8%
if 4.5e19 < x Initial program 5.5%
associate-/l*13.8%
sub-neg13.8%
metadata-eval13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
fma-define13.8%
Simplified13.8%
Taylor expanded in x around inf 91.0%
Taylor expanded in x around inf 91.0%
Final simplification77.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -34000000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -34000000.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 <= (-34000000.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 <= -34000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -34000000.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 <= -34000000.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 <= -34000000.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, -34000000.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 -34000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -3.4e7 or 2 < x Initial program 14.8%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
fma-define20.7%
Simplified20.7%
Taylor expanded in x around inf 88.1%
Taylor expanded in x around inf 88.1%
if -3.4e7 < x < 2Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.6%
*-commutative66.6%
Simplified66.6%
Final simplification77.4%
(FPCore (x y z) :precision binary64 (if (<= x -34000000.0) (* 4.16438922228 (+ x -2.0)) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -34000000.0) {
tmp = 4.16438922228 * (x + -2.0);
} 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 <= (-34000000.0d0)) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
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 <= -34000000.0) {
tmp = 4.16438922228 * (x + -2.0);
} 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 <= -34000000.0: tmp = 4.16438922228 * (x + -2.0) 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 <= -34000000.0) tmp = Float64(4.16438922228 * Float64(x + -2.0)); 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 <= -34000000.0) tmp = 4.16438922228 * (x + -2.0); 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, -34000000.0], N[(4.16438922228 * N[(x + -2.0), $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 -34000000:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3.4e7Initial program 17.6%
associate-/l*21.8%
sub-neg21.8%
metadata-eval21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
fma-define21.8%
Simplified21.8%
Taylor expanded in x around inf 90.7%
if -3.4e7 < x < 2Initial program 99.6%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.6%
fma-define99.6%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 66.6%
*-commutative66.6%
Simplified66.6%
if 2 < x Initial program 11.7%
associate-/l*19.4%
sub-neg19.4%
metadata-eval19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.4%
fma-define19.5%
Simplified19.5%
Taylor expanded in x around inf 85.3%
Taylor expanded in x around inf 85.3%
Final simplification77.4%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 56.9%
associate-/l*59.9%
sub-neg59.9%
metadata-eval59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
Simplified59.9%
Taylor expanded in x around inf 46.3%
Taylor expanded in x around inf 46.0%
Final simplification46.0%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 56.9%
associate-/l*59.9%
sub-neg59.9%
metadata-eval59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
fma-define59.9%
Simplified59.9%
Taylor expanded in x around inf 46.3%
Taylor expanded in x around 0 3.5%
(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 2024086
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))