Jmat.Real.erfi, branch x less than or equal to 0.5

?

Percentage Accurate: 99.8% → 99.9%
Time: 15.7s
Precision: binary64
Cost: 33408

?

\[x \leq 0.5\]
\[\left|\frac{1}{\sqrt{\pi}} \cdot \left(\left(\left(2 \cdot \left|x\right| + \frac{2}{3} \cdot \left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{5} \cdot \left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{21} \cdot \left(\left(\left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right)\right| \]
\[\left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right) + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
(FPCore (x)
 :precision binary64
 (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)))))))
(FPCore (x)
 :precision binary64
 (fabs
  (*
   (* x (sqrt (/ 1.0 PI)))
   (+
    (+ (* 0.6666666666666666 (* x x)) 2.0)
    (+ (* 0.2 (pow x 4.0)) (* 0.047619047619047616 (pow x 6.0)))))))
double code(double x) {
	return fabs(((1.0 / sqrt(((double) M_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))))));
}
double code(double x) {
	return fabs(((x * sqrt((1.0 / ((double) M_PI)))) * (((0.6666666666666666 * (x * x)) + 2.0) + ((0.2 * pow(x, 4.0)) + (0.047619047619047616 * pow(x, 6.0))))));
}
public static double code(double x) {
	return Math.abs(((1.0 / Math.sqrt(Math.PI)) * ((((2.0 * Math.abs(x)) + ((2.0 / 3.0) * ((Math.abs(x) * Math.abs(x)) * Math.abs(x)))) + ((1.0 / 5.0) * ((((Math.abs(x) * Math.abs(x)) * Math.abs(x)) * Math.abs(x)) * Math.abs(x)))) + ((1.0 / 21.0) * ((((((Math.abs(x) * Math.abs(x)) * Math.abs(x)) * Math.abs(x)) * Math.abs(x)) * Math.abs(x)) * Math.abs(x))))));
}
public static double code(double x) {
	return Math.abs(((x * Math.sqrt((1.0 / Math.PI))) * (((0.6666666666666666 * (x * x)) + 2.0) + ((0.2 * Math.pow(x, 4.0)) + (0.047619047619047616 * Math.pow(x, 6.0))))));
}
def code(x):
	return math.fabs(((1.0 / math.sqrt(math.pi)) * ((((2.0 * math.fabs(x)) + ((2.0 / 3.0) * ((math.fabs(x) * math.fabs(x)) * math.fabs(x)))) + ((1.0 / 5.0) * ((((math.fabs(x) * math.fabs(x)) * math.fabs(x)) * math.fabs(x)) * math.fabs(x)))) + ((1.0 / 21.0) * ((((((math.fabs(x) * math.fabs(x)) * math.fabs(x)) * math.fabs(x)) * math.fabs(x)) * math.fabs(x)) * math.fabs(x))))))
def code(x):
	return math.fabs(((x * math.sqrt((1.0 / math.pi))) * (((0.6666666666666666 * (x * x)) + 2.0) + ((0.2 * math.pow(x, 4.0)) + (0.047619047619047616 * math.pow(x, 6.0))))))
function code(x)
	return abs(Float64(Float64(1.0 / sqrt(pi)) * Float64(Float64(Float64(Float64(2.0 * abs(x)) + Float64(Float64(2.0 / 3.0) * Float64(Float64(abs(x) * abs(x)) * abs(x)))) + Float64(Float64(1.0 / 5.0) * Float64(Float64(Float64(Float64(abs(x) * abs(x)) * abs(x)) * abs(x)) * abs(x)))) + Float64(Float64(1.0 / 21.0) * Float64(Float64(Float64(Float64(Float64(Float64(abs(x) * abs(x)) * abs(x)) * abs(x)) * abs(x)) * abs(x)) * abs(x))))))
end
function code(x)
	return abs(Float64(Float64(x * sqrt(Float64(1.0 / pi))) * Float64(Float64(Float64(0.6666666666666666 * Float64(x * x)) + 2.0) + Float64(Float64(0.2 * (x ^ 4.0)) + Float64(0.047619047619047616 * (x ^ 6.0))))))
end
function tmp = code(x)
	tmp = abs(((1.0 / sqrt(pi)) * ((((2.0 * abs(x)) + ((2.0 / 3.0) * ((abs(x) * abs(x)) * abs(x)))) + ((1.0 / 5.0) * ((((abs(x) * abs(x)) * abs(x)) * abs(x)) * abs(x)))) + ((1.0 / 21.0) * ((((((abs(x) * abs(x)) * abs(x)) * abs(x)) * abs(x)) * abs(x)) * abs(x))))));
end
function tmp = code(x)
	tmp = abs(((x * sqrt((1.0 / pi))) * (((0.6666666666666666 * (x * x)) + 2.0) + ((0.2 * (x ^ 4.0)) + (0.047619047619047616 * (x ^ 6.0))))));
end
code[x_] := 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] * N[(N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 / 5.0), $MachinePrecision] * N[(N[(N[(N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(1.0 / 21.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
code[x_] := N[Abs[N[(N[(x * N[Sqrt[N[(1.0 / Pi), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] * N[(N[(N[(0.6666666666666666 * N[(x * x), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision] + N[(N[(0.2 * N[Power[x, 4.0], $MachinePrecision]), $MachinePrecision] + N[(0.047619047619047616 * N[Power[x, 6.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\left|\frac{1}{\sqrt{\pi}} \cdot \left(\left(\left(2 \cdot \left|x\right| + \frac{2}{3} \cdot \left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{5} \cdot \left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{21} \cdot \left(\left(\left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right)\right|
\left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right) + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right|

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Herbie found 15 alternatives:

AlternativeAccuracySpeedup

Accuracy vs Speed

The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Bogosity?

Bogosity

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 99.8%

    \[\left|\frac{1}{\sqrt{\pi}} \cdot \left(\left(\left(2 \cdot \left|x\right| + \frac{2}{3} \cdot \left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{5} \cdot \left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{21} \cdot \left(\left(\left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right)\right| \]
  2. Simplified99.4%

    \[\leadsto \color{blue}{\left|\frac{\left|x\right|}{\sqrt{\pi}} \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right|} \]
    Step-by-step derivation

    [Start]99.8%

    \[ \left|\frac{1}{\sqrt{\pi}} \cdot \left(\left(\left(2 \cdot \left|x\right| + \frac{2}{3} \cdot \left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{5} \cdot \left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{21} \cdot \left(\left(\left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right)\right| \]

    associate-*l/ [=>]99.4%

    \[ \left|\color{blue}{\frac{1 \cdot \left(\left(\left(2 \cdot \left|x\right| + \frac{2}{3} \cdot \left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{5} \cdot \left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right) + \frac{1}{21} \cdot \left(\left(\left(\left(\left(\left(\left|x\right| \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right) \cdot \left|x\right|\right)\right)}{\sqrt{\pi}}}\right| \]
  3. Taylor expanded in x around 0 99.9%

    \[\leadsto \left|\color{blue}{\left(\left|x\right| \cdot \sqrt{\frac{1}{\pi}}\right)} \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
  4. Simplified99.9%

    \[\leadsto \left|\color{blue}{\left(x \cdot \sqrt{\frac{1}{\pi}}\right)} \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
    Step-by-step derivation

    [Start]99.9%

    \[ \left|\left(\left|x\right| \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]

    unpow1 [<=]99.9%

    \[ \left|\left(\left|\color{blue}{{x}^{1}}\right| \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]

    sqr-pow [=>]32.5%

    \[ \left|\left(\left|\color{blue}{{x}^{\left(\frac{1}{2}\right)} \cdot {x}^{\left(\frac{1}{2}\right)}}\right| \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]

    fabs-sqr [=>]32.5%

    \[ \left|\left(\color{blue}{\left({x}^{\left(\frac{1}{2}\right)} \cdot {x}^{\left(\frac{1}{2}\right)}\right)} \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]

    sqr-pow [<=]99.9%

    \[ \left|\left(\color{blue}{{x}^{1}} \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]

    unpow1 [=>]99.9%

    \[ \left|\left(\color{blue}{x} \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \mathsf{fma}\left(0.2, {x}^{4}, 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
  5. Taylor expanded in x around 0 99.9%

    \[\leadsto \left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \color{blue}{\left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)}\right)\right| \]
  6. Applied egg-rr99.9%

    \[\leadsto \left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\color{blue}{\left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right)} + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
    Step-by-step derivation

    [Start]99.9%

    \[ \left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\mathsf{fma}\left(0.6666666666666666, x \cdot x, 2\right) + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]

    fma-udef [=>]99.9%

    \[ \left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\color{blue}{\left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right)} + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
  7. Final simplification99.9%

    \[\leadsto \left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right) + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]

Alternatives

Alternative 1
Accuracy99.9%
Cost33408
\[\left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(\left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right) + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
Alternative 2
Accuracy99.4%
Cost33280
\[\left|\left(\left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right) + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right) \cdot \frac{x}{\sqrt{\pi}}\right| \]
Alternative 3
Accuracy99.0%
Cost33024
\[\left|\left(x \cdot \sqrt{\frac{1}{\pi}}\right) \cdot \left(2 + \left(0.2 \cdot {x}^{4} + 0.047619047619047616 \cdot {x}^{6}\right)\right)\right| \]
Alternative 4
Accuracy98.4%
Cost32448
\[\left|\frac{\mathsf{fma}\left(2, x, 0.047619047619047616 \cdot {x}^{7}\right)}{\sqrt{\pi}}\right| \]
Alternative 5
Accuracy96.9%
Cost26052
\[\begin{array}{l} \mathbf{if}\;x \leq -2.15:\\ \;\;\;\;\left|\sqrt{\frac{{x}^{14} \cdot 0.0022675736961451248}{\pi}}\right|\\ \mathbf{else}:\\ \;\;\;\;\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \left(0.6666666666666666 \cdot \left(x \cdot x\right)\right) + x \cdot 2\right)\right|\\ \end{array} \]
Alternative 6
Accuracy99.2%
Cost26052
\[\begin{array}{l} \mathbf{if}\;x \leq -2.15:\\ \;\;\;\;\left|0.047619047619047616 \cdot \frac{{x}^{7}}{\sqrt{\pi}}\right|\\ \mathbf{else}:\\ \;\;\;\;\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \left(0.6666666666666666 \cdot \left(x \cdot x\right)\right) + x \cdot 2\right)\right|\\ \end{array} \]
Alternative 7
Accuracy99.2%
Cost26052
\[\begin{array}{l} \mathbf{if}\;x \leq -2.15:\\ \;\;\;\;\left|{x}^{7} \cdot \frac{0.047619047619047616}{\sqrt{\pi}}\right|\\ \mathbf{else}:\\ \;\;\;\;\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \left(0.6666666666666666 \cdot \left(x \cdot x\right)\right) + x \cdot 2\right)\right|\\ \end{array} \]
Alternative 8
Accuracy99.2%
Cost26052
\[\begin{array}{l} \mathbf{if}\;x \leq -2.15:\\ \;\;\;\;\left|\frac{{x}^{7}}{\sqrt{\pi} \cdot 21}\right|\\ \mathbf{else}:\\ \;\;\;\;\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \left(0.6666666666666666 \cdot \left(x \cdot x\right)\right) + x \cdot 2\right)\right|\\ \end{array} \]
Alternative 9
Accuracy91.8%
Cost20996
\[\begin{array}{l} t_0 := 0.6666666666666666 \cdot \left(x \cdot x\right)\\ \mathbf{if}\;x \leq -2 \cdot 10^{+154}:\\ \;\;\;\;\left|\sqrt{\frac{\left(x \cdot x\right) \cdot 4}{\pi}}\right|\\ \mathbf{else}:\\ \;\;\;\;\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \frac{t_0 \cdot t_0 - 4}{t_0 - 2}\right)\right|\\ \end{array} \]
Alternative 10
Accuracy89.1%
Cost20096
\[\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \left(0.6666666666666666 \cdot \left(x \cdot x\right)\right) + x \cdot 2\right)\right| \]
Alternative 11
Accuracy88.8%
Cost19972
\[\begin{array}{l} \mathbf{if}\;x \leq -1.7:\\ \;\;\;\;\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \left(x \cdot \left(x \cdot 0.6666666666666666\right)\right)\right)\right|\\ \mathbf{else}:\\ \;\;\;\;\left|\left(x \cdot 2\right) \cdot {\pi}^{-0.5}\right|\\ \end{array} \]
Alternative 12
Accuracy89.1%
Cost19968
\[\left|\sqrt{\frac{1}{\pi}} \cdot \left(x \cdot \left(0.6666666666666666 \cdot \left(x \cdot x\right) + 2\right)\right)\right| \]
Alternative 13
Accuracy83.2%
Cost19716
\[\begin{array}{l} \mathbf{if}\;x \leq -1 \cdot 10^{-34}:\\ \;\;\;\;\left|\sqrt{\frac{\left(x \cdot x\right) \cdot 4}{\pi}}\right|\\ \mathbf{else}:\\ \;\;\;\;\left|\left(x \cdot 2\right) \cdot {\pi}^{-0.5}\right|\\ \end{array} \]
Alternative 14
Accuracy67.7%
Cost19520
\[\left|\left(x \cdot 2\right) \cdot {\pi}^{-0.5}\right| \]
Alternative 15
Accuracy67.3%
Cost19456
\[\left|\frac{x \cdot 2}{\sqrt{\pi}}\right| \]

Reproduce?

herbie shell --seed 2023249 
(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)))))))