
(FPCore (x)
:precision binary64
(let* ((t_0 (* (* (fabs x) (fabs x)) (fabs x)))
(t_1 (* (* t_0 (fabs x)) (fabs x))))
(fabs
(*
(/ 1.0 (sqrt PI))
(+
(+ (+ (* 2.0 (fabs x)) (* (/ 2.0 3.0) t_0)) (* (/ 1.0 5.0) t_1))
(* (/ 1.0 21.0) (* (* t_1 (fabs x)) (fabs x))))))))
double code(double x) {
double t_0 = (fabs(x) * fabs(x)) * fabs(x);
double t_1 = (t_0 * fabs(x)) * fabs(x);
return fabs(((1.0 / sqrt(((double) M_PI))) * ((((2.0 * fabs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * fabs(x)) * fabs(x))))));
}
public static double code(double x) {
double t_0 = (Math.abs(x) * Math.abs(x)) * Math.abs(x);
double t_1 = (t_0 * Math.abs(x)) * Math.abs(x);
return Math.abs(((1.0 / Math.sqrt(Math.PI)) * ((((2.0 * Math.abs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * Math.abs(x)) * Math.abs(x))))));
}
def code(x): t_0 = (math.fabs(x) * math.fabs(x)) * math.fabs(x) t_1 = (t_0 * math.fabs(x)) * math.fabs(x) return math.fabs(((1.0 / math.sqrt(math.pi)) * ((((2.0 * math.fabs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * math.fabs(x)) * math.fabs(x))))))
function code(x) t_0 = Float64(Float64(abs(x) * abs(x)) * abs(x)) t_1 = Float64(Float64(t_0 * abs(x)) * abs(x)) return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(Float64(Float64(Float64(2.0 * abs(x)) + Float64(Float64(2.0 / 3.0) * t_0)) + Float64(Float64(1.0 / 5.0) * t_1)) + Float64(Float64(1.0 / 21.0) * Float64(Float64(t_1 * abs(x)) * abs(x)))))) end
function tmp = code(x) t_0 = (abs(x) * abs(x)) * abs(x); t_1 = (t_0 * abs(x)) * abs(x); tmp = abs(((1.0 / sqrt(pi)) * ((((2.0 * abs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * abs(x)) * abs(x)))))); end
code[x_] := Block[{t$95$0 = N[(N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(t$95$0 * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]}, N[Abs[N[(N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(2.0 * N[Abs[x], $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 / 3.0), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 / 5.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 / 21.0), $MachinePrecision] * N[(N[(t$95$1 * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\\
t_1 := \left(t\_0 \cdot \left|x\right|\right) \cdot \left|x\right|\\
\left|\frac{1}{\sqrt{\pi}} \cdot \left(\left(\left(2 \cdot \left|x\right| + \frac{2}{3} \cdot t\_0\right) + \frac{1}{5} \cdot t\_1\right) + \frac{1}{21} \cdot \left(\left(t\_1 \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right)\right|
\end{array}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x)
:precision binary64
(let* ((t_0 (* (* (fabs x) (fabs x)) (fabs x)))
(t_1 (* (* t_0 (fabs x)) (fabs x))))
(fabs
(*
(/ 1.0 (sqrt PI))
(+
(+ (+ (* 2.0 (fabs x)) (* (/ 2.0 3.0) t_0)) (* (/ 1.0 5.0) t_1))
(* (/ 1.0 21.0) (* (* t_1 (fabs x)) (fabs x))))))))
double code(double x) {
double t_0 = (fabs(x) * fabs(x)) * fabs(x);
double t_1 = (t_0 * fabs(x)) * fabs(x);
return fabs(((1.0 / sqrt(((double) M_PI))) * ((((2.0 * fabs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * fabs(x)) * fabs(x))))));
}
public static double code(double x) {
double t_0 = (Math.abs(x) * Math.abs(x)) * Math.abs(x);
double t_1 = (t_0 * Math.abs(x)) * Math.abs(x);
return Math.abs(((1.0 / Math.sqrt(Math.PI)) * ((((2.0 * Math.abs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * Math.abs(x)) * Math.abs(x))))));
}
def code(x): t_0 = (math.fabs(x) * math.fabs(x)) * math.fabs(x) t_1 = (t_0 * math.fabs(x)) * math.fabs(x) return math.fabs(((1.0 / math.sqrt(math.pi)) * ((((2.0 * math.fabs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * math.fabs(x)) * math.fabs(x))))))
function code(x) t_0 = Float64(Float64(abs(x) * abs(x)) * abs(x)) t_1 = Float64(Float64(t_0 * abs(x)) * abs(x)) return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(Float64(Float64(Float64(2.0 * abs(x)) + Float64(Float64(2.0 / 3.0) * t_0)) + Float64(Float64(1.0 / 5.0) * t_1)) + Float64(Float64(1.0 / 21.0) * Float64(Float64(t_1 * abs(x)) * abs(x)))))) end
function tmp = code(x) t_0 = (abs(x) * abs(x)) * abs(x); t_1 = (t_0 * abs(x)) * abs(x); tmp = abs(((1.0 / sqrt(pi)) * ((((2.0 * abs(x)) + ((2.0 / 3.0) * t_0)) + ((1.0 / 5.0) * t_1)) + ((1.0 / 21.0) * ((t_1 * abs(x)) * abs(x)))))); end
code[x_] := Block[{t$95$0 = N[(N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(t$95$0 * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]}, N[Abs[N[(N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(2.0 * N[Abs[x], $MachinePrecision]), $MachinePrecision] + N[(N[(2.0 / 3.0), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 / 5.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 / 21.0), $MachinePrecision] * N[(N[(t$95$1 * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\\
t_1 := \left(t\_0 \cdot \left|x\right|\right) \cdot \left|x\right|\\
\left|\frac{1}{\sqrt{\pi}} \cdot \left(\left(\left(2 \cdot \left|x\right| + \frac{2}{3} \cdot t\_0\right) + \frac{1}{5} \cdot t\_1\right) + \frac{1}{21} \cdot \left(\left(t\_1 \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right)\right|
\end{array}
\end{array}
x_m = (fabs.f64 x)
(FPCore (x_m)
:precision binary64
(let* ((t_0 (/ 1.0 (sqrt PI))))
(fabs
(fma
(* (pow (fabs x_m) 6.0) 0.047619047619047616)
(* (fabs x_m) t_0)
(*
(fma
(* x_m x_m)
(* x_m (* (* x_m x_m) 0.2))
(* x_m (fma (* x_m x_m) 0.6666666666666666 2.0)))
t_0)))))x_m = fabs(x);
double code(double x_m) {
double t_0 = 1.0 / sqrt(((double) M_PI));
return fabs(fma((pow(fabs(x_m), 6.0) * 0.047619047619047616), (fabs(x_m) * t_0), (fma((x_m * x_m), (x_m * ((x_m * x_m) * 0.2)), (x_m * fma((x_m * x_m), 0.6666666666666666, 2.0))) * t_0)));
}
x_m = abs(x) function code(x_m) t_0 = Float64(1.0 / sqrt(pi)) return abs(fma(Float64((abs(x_m) ^ 6.0) * 0.047619047619047616), Float64(abs(x_m) * t_0), Float64(fma(Float64(x_m * x_m), Float64(x_m * Float64(Float64(x_m * x_m) * 0.2)), Float64(x_m * fma(Float64(x_m * x_m), 0.6666666666666666, 2.0))) * t_0))) end
x_m = N[Abs[x], $MachinePrecision]
code[x$95$m_] := Block[{t$95$0 = N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision]}, N[Abs[N[(N[(N[Power[N[Abs[x$95$m], $MachinePrecision], 6.0], $MachinePrecision] * 0.047619047619047616), $MachinePrecision] * N[(N[Abs[x$95$m], $MachinePrecision] * t$95$0), $MachinePrecision] + N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * N[(x$95$m * N[(N[(x$95$m * x$95$m), $MachinePrecision] * 0.2), $MachinePrecision]), $MachinePrecision] + N[(x$95$m * N[(N[(x$95$m * x$95$m), $MachinePrecision] * 0.6666666666666666 + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t$95$0), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
x_m = \left|x\right|
\\
\begin{array}{l}
t_0 := \frac{1}{\sqrt{\pi}}\\
\left|\mathsf{fma}\left({\left(\left|x\_m\right|\right)}^{6} \cdot 0.047619047619047616, \left|x\_m\right| \cdot t\_0, \mathsf{fma}\left(x\_m \cdot x\_m, x\_m \cdot \left(\left(x\_m \cdot x\_m\right) \cdot 0.2\right), x\_m \cdot \mathsf{fma}\left(x\_m \cdot x\_m, 0.6666666666666666, 2\right)\right) \cdot t\_0\right)\right|
\end{array}
\end{array}
Initial program 99.6%
Applied rewrites99.8%
Applied rewrites69.6%
lift-PI.f64N/A
lift-pow.f64N/A
metadata-evalN/A
pow-flipN/A
pow1/2N/A
lift-sqrt.f64N/A
lift-PI.f64N/A
lift-/.f6469.6
Applied rewrites69.6%
lift-PI.f64N/A
lift-pow.f64N/A
metadata-evalN/A
sqrt-pow2N/A
lift-sqrt.f64N/A
lift-PI.f64N/A
inv-powN/A
lift-/.f6469.6
Applied rewrites69.6%
Final simplification69.6%
x_m = (fabs.f64 x)
(FPCore (x_m)
:precision binary64
(fabs
(*
(/ 1.0 (sqrt PI))
(*
(fma
(fma
(* (fma (* x_m x_m) 0.047619047619047616 0.2) x_m)
x_m
0.6666666666666666)
(* x_m x_m)
2.0)
x_m))))x_m = fabs(x);
double code(double x_m) {
return fabs(((1.0 / sqrt(((double) M_PI))) * (fma(fma((fma((x_m * x_m), 0.047619047619047616, 0.2) * x_m), x_m, 0.6666666666666666), (x_m * x_m), 2.0) * x_m)));
}
x_m = abs(x) function code(x_m) return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(fma(fma(Float64(fma(Float64(x_m * x_m), 0.047619047619047616, 0.2) * x_m), x_m, 0.6666666666666666), Float64(x_m * x_m), 2.0) * x_m))) end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_] := N[Abs[N[(N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * 0.047619047619047616 + 0.2), $MachinePrecision] * x$95$m), $MachinePrecision] * x$95$m + 0.6666666666666666), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision] + 2.0), $MachinePrecision] * x$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
\left|\frac{1}{\sqrt{\pi}} \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x\_m \cdot x\_m, 0.047619047619047616, 0.2\right) \cdot x\_m, x\_m, 0.6666666666666666\right), x\_m \cdot x\_m, 2\right) \cdot x\_m\right)\right|
\end{array}
Initial program 99.6%
Taylor expanded in x around 0
Applied rewrites68.6%
Applied rewrites68.6%
Taylor expanded in x around 0
*-commutativeN/A
unpow1N/A
metadata-evalN/A
sqrt-pow1N/A
pow2N/A
rem-sqrt-square-revN/A
lower-*.f64N/A
Applied rewrites99.5%
lift-fma.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-fma.f6499.6
Applied rewrites99.6%
x_m = (fabs.f64 x)
(FPCore (x_m)
:precision binary64
(fabs
(*
(/ 1.0 (sqrt PI))
(*
(fma
(fma (* (* x_m x_m) 0.047619047619047616) (* x_m x_m) 0.6666666666666666)
(* x_m x_m)
2.0)
x_m))))x_m = fabs(x);
double code(double x_m) {
return fabs(((1.0 / sqrt(((double) M_PI))) * (fma(fma(((x_m * x_m) * 0.047619047619047616), (x_m * x_m), 0.6666666666666666), (x_m * x_m), 2.0) * x_m)));
}
x_m = abs(x) function code(x_m) return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(fma(fma(Float64(Float64(x_m * x_m) * 0.047619047619047616), Float64(x_m * x_m), 0.6666666666666666), Float64(x_m * x_m), 2.0) * x_m))) end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_] := N[Abs[N[(N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * 0.047619047619047616), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision] + 0.6666666666666666), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision] + 2.0), $MachinePrecision] * x$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
\left|\frac{1}{\sqrt{\pi}} \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(\left(x\_m \cdot x\_m\right) \cdot 0.047619047619047616, x\_m \cdot x\_m, 0.6666666666666666\right), x\_m \cdot x\_m, 2\right) \cdot x\_m\right)\right|
\end{array}
Initial program 99.6%
Taylor expanded in x around 0
Applied rewrites68.6%
Applied rewrites68.6%
Taylor expanded in x around 0
*-commutativeN/A
unpow1N/A
metadata-evalN/A
sqrt-pow1N/A
pow2N/A
rem-sqrt-square-revN/A
lower-*.f64N/A
Applied rewrites99.5%
Taylor expanded in x around inf
pow2N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f6497.8
Applied rewrites97.8%
x_m = (fabs.f64 x) (FPCore (x_m) :precision binary64 (fabs (* (/ 1.0 (sqrt PI)) (* (fma (fma (* x_m x_m) 0.2 0.6666666666666666) (* x_m x_m) 2.0) x_m))))
x_m = fabs(x);
double code(double x_m) {
return fabs(((1.0 / sqrt(((double) M_PI))) * (fma(fma((x_m * x_m), 0.2, 0.6666666666666666), (x_m * x_m), 2.0) * x_m)));
}
x_m = abs(x) function code(x_m) return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(fma(fma(Float64(x_m * x_m), 0.2, 0.6666666666666666), Float64(x_m * x_m), 2.0) * x_m))) end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_] := N[Abs[N[(N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(N[(x$95$m * x$95$m), $MachinePrecision] * 0.2 + 0.6666666666666666), $MachinePrecision] * N[(x$95$m * x$95$m), $MachinePrecision] + 2.0), $MachinePrecision] * x$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
\left|\frac{1}{\sqrt{\pi}} \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(x\_m \cdot x\_m, 0.2, 0.6666666666666666\right), x\_m \cdot x\_m, 2\right) \cdot x\_m\right)\right|
\end{array}
Initial program 99.6%
Taylor expanded in x around 0
Applied rewrites68.6%
Applied rewrites68.6%
Taylor expanded in x around 0
*-commutativeN/A
unpow1N/A
metadata-evalN/A
sqrt-pow1N/A
pow2N/A
rem-sqrt-square-revN/A
lower-*.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
pow2N/A
lift-*.f64N/A
pow2N/A
lift-*.f64N/A
rem-sqrt-square-revN/A
pow2N/A
sqrt-pow1N/A
Applied rewrites93.3%
x_m = (fabs.f64 x) (FPCore (x_m) :precision binary64 (fabs (* (/ 1.0 (sqrt PI)) (* (fma 0.6666666666666666 (* x_m x_m) 2.0) x_m))))
x_m = fabs(x);
double code(double x_m) {
return fabs(((1.0 / sqrt(((double) M_PI))) * (fma(0.6666666666666666, (x_m * x_m), 2.0) * x_m)));
}
x_m = abs(x) function code(x_m) return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(fma(0.6666666666666666, Float64(x_m * x_m), 2.0) * x_m))) end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_] := N[Abs[N[(N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision] * N[(N[(0.6666666666666666 * N[(x$95$m * x$95$m), $MachinePrecision] + 2.0), $MachinePrecision] * x$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
\left|\frac{1}{\sqrt{\pi}} \cdot \left(\mathsf{fma}\left(0.6666666666666666, x\_m \cdot x\_m, 2\right) \cdot x\_m\right)\right|
\end{array}
Initial program 99.6%
Taylor expanded in x around 0
Applied rewrites68.6%
Applied rewrites68.6%
Taylor expanded in x around 0
*-commutativeN/A
unpow1N/A
metadata-evalN/A
sqrt-pow1N/A
pow2N/A
rem-sqrt-square-revN/A
lower-*.f64N/A
Applied rewrites99.5%
Taylor expanded in x around 0
Applied rewrites88.5%
x_m = (fabs.f64 x) (FPCore (x_m) :precision binary64 (fabs (* (/ 1.0 (sqrt PI)) (+ x_m x_m))))
x_m = fabs(x);
double code(double x_m) {
return fabs(((1.0 / sqrt(((double) M_PI))) * (x_m + x_m)));
}
x_m = Math.abs(x);
public static double code(double x_m) {
return Math.abs(((1.0 / Math.sqrt(Math.PI)) * (x_m + x_m)));
}
x_m = math.fabs(x) def code(x_m): return math.fabs(((1.0 / math.sqrt(math.pi)) * (x_m + x_m)))
x_m = abs(x) function code(x_m) return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(x_m + x_m))) end
x_m = abs(x); function tmp = code(x_m) tmp = abs(((1.0 / sqrt(pi)) * (x_m + x_m))); end
x_m = N[Abs[x], $MachinePrecision] code[x$95$m_] := N[Abs[N[(N[(1.0 / N[Sqrt[Pi], $MachinePrecision]), $MachinePrecision] * N[(x$95$m + x$95$m), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
x_m = \left|x\right|
\\
\left|\frac{1}{\sqrt{\pi}} \cdot \left(x\_m + x\_m\right)\right|
\end{array}
Initial program 99.6%
Taylor expanded in x around 0
Applied rewrites68.6%
Applied rewrites68.6%
Taylor expanded in x around 0
*-commutativeN/A
unpow1N/A
metadata-evalN/A
sqrt-pow1N/A
pow2N/A
rem-sqrt-square-revN/A
lower-*.f64N/A
rem-sqrt-square-revN/A
pow2N/A
sqrt-pow1N/A
metadata-evalN/A
unpow164.8
Applied rewrites64.8%
lift-*.f64N/A
*-commutativeN/A
count-2-revN/A
lower-+.f6464.8
Applied rewrites64.8%
herbie shell --seed 2025085
(FPCore (x)
:name "Jmat.Real.erfi, branch x less than or equal to 0.5"
:precision binary64
:pre (<= x 0.5)
(fabs (* (/ 1.0 (sqrt PI)) (+ (+ (+ (* 2.0 (fabs x)) (* (/ 2.0 3.0) (* (* (fabs x) (fabs x)) (fabs x)))) (* (/ 1.0 5.0) (* (* (* (* (fabs x) (fabs x)) (fabs x)) (fabs x)) (fabs x)))) (* (/ 1.0 21.0) (* (* (* (* (* (* (fabs x) (fabs x)) (fabs x)) (fabs x)) (fabs x)) (fabs x)) (fabs x)))))))