| Alternative 1 | |
|---|---|
| Accuracy | 99.3% |
| Cost | 7112 |
(FPCore (x)
:precision binary64
(-
1.0
(*
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
0.254829592
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
-0.284496736
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
1.421413741
(*
(/ 1.0 (+ 1.0 (* 0.3275911 (fabs x))))
(+
-1.453152027
(* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429)))))))))
(exp (- (* (fabs x) (fabs x)))))))(FPCore (x)
:precision binary64
(if (<= (fabs x) 5e-7)
(+
(+ (sqrt (* (* x x) 1.2732557730789702)) 1e-9)
(* (* x x) (+ -0.00011824294398844343 (* x -0.37545125292247583))))
1.0))double code(double x) {
return 1.0 - (((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * fabs(x)))) * 1.061405429))))))))) * exp(-(fabs(x) * fabs(x))));
}
double code(double x) {
double tmp;
if (fabs(x) <= 5e-7) {
tmp = (sqrt(((x * x) * 1.2732557730789702)) + 1e-9) + ((x * x) * (-0.00011824294398844343 + (x * -0.37545125292247583)));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x)
real(8), intent (in) :: x
code = 1.0d0 - (((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * (0.254829592d0 + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * ((-0.284496736d0) + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * (1.421413741d0 + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * ((-1.453152027d0) + ((1.0d0 / (1.0d0 + (0.3275911d0 * abs(x)))) * 1.061405429d0))))))))) * exp(-(abs(x) * abs(x))))
end function
real(8) function code(x)
real(8), intent (in) :: x
real(8) :: tmp
if (abs(x) <= 5d-7) then
tmp = (sqrt(((x * x) * 1.2732557730789702d0)) + 1d-9) + ((x * x) * ((-0.00011824294398844343d0) + (x * (-0.37545125292247583d0))))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x) {
return 1.0 - (((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * Math.abs(x)))) * 1.061405429))))))))) * Math.exp(-(Math.abs(x) * Math.abs(x))));
}
public static double code(double x) {
double tmp;
if (Math.abs(x) <= 5e-7) {
tmp = (Math.sqrt(((x * x) * 1.2732557730789702)) + 1e-9) + ((x * x) * (-0.00011824294398844343 + (x * -0.37545125292247583)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x): return 1.0 - (((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * math.fabs(x)))) * 1.061405429))))))))) * math.exp(-(math.fabs(x) * math.fabs(x))))
def code(x): tmp = 0 if math.fabs(x) <= 5e-7: tmp = (math.sqrt(((x * x) * 1.2732557730789702)) + 1e-9) + ((x * x) * (-0.00011824294398844343 + (x * -0.37545125292247583))) else: tmp = 1.0 return tmp
function code(x) return Float64(1.0 - Float64(Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(0.254829592 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(-0.284496736 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(1.421413741 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * Float64(-1.453152027 + Float64(Float64(1.0 / Float64(1.0 + Float64(0.3275911 * abs(x)))) * 1.061405429))))))))) * exp(Float64(-Float64(abs(x) * abs(x)))))) end
function code(x) tmp = 0.0 if (abs(x) <= 5e-7) tmp = Float64(Float64(sqrt(Float64(Float64(x * x) * 1.2732557730789702)) + 1e-9) + Float64(Float64(x * x) * Float64(-0.00011824294398844343 + Float64(x * -0.37545125292247583)))); else tmp = 1.0; end return tmp end
function tmp = code(x) tmp = 1.0 - (((1.0 / (1.0 + (0.3275911 * abs(x)))) * (0.254829592 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * (-0.284496736 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * (1.421413741 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * (-1.453152027 + ((1.0 / (1.0 + (0.3275911 * abs(x)))) * 1.061405429))))))))) * exp(-(abs(x) * abs(x)))); end
function tmp_2 = code(x) tmp = 0.0; if (abs(x) <= 5e-7) tmp = (sqrt(((x * x) * 1.2732557730789702)) + 1e-9) + ((x * x) * (-0.00011824294398844343 + (x * -0.37545125292247583))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_] := N[(1.0 - N[(N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(0.254829592 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-0.284496736 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(1.421413741 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(-1.453152027 + N[(N[(1.0 / N[(1.0 + N[(0.3275911 * N[Abs[x], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 1.061405429), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[Exp[(-N[(N[Abs[x], $MachinePrecision] * N[Abs[x], $MachinePrecision]), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[x_] := If[LessEqual[N[Abs[x], $MachinePrecision], 5e-7], N[(N[(N[Sqrt[N[(N[(x * x), $MachinePrecision] * 1.2732557730789702), $MachinePrecision]], $MachinePrecision] + 1e-9), $MachinePrecision] + N[(N[(x * x), $MachinePrecision] * N[(-0.00011824294398844343 + N[(x * -0.37545125292247583), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]
1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}
\begin{array}{l}
\mathbf{if}\;\left|x\right| \leq 5 \cdot 10^{-7}:\\
\;\;\;\;\left(\sqrt{\left(x \cdot x\right) \cdot 1.2732557730789702} + 10^{-9}\right) + \left(x \cdot x\right) \cdot \left(-0.00011824294398844343 + x \cdot -0.37545125292247583\right)\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
Results
if (fabs.f64 x) < 4.99999999999999977e-7Initial program 57.7%
Simplified57.7%
[Start]57.7 | \[ 1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}
\] |
|---|---|
associate-*l/ [=>]57.7 | \[ 1 - \color{blue}{\frac{1 \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)}{1 + 0.3275911 \cdot \left|x\right|}} \cdot e^{-\left|x\right| \cdot \left|x\right|}
\] |
associate-*l/ [=>]57.7 | \[ 1 - \color{blue}{\frac{\left(1 \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}}{1 + 0.3275911 \cdot \left|x\right|}}
\] |
Applied egg-rr57.1%
Simplified57.1%
[Start]57.1 | \[ \sqrt[3]{\left(1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right) \cdot {\left(1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)}^{2}}
\] |
|---|---|
unpow2 [=>]57.1 | \[ \sqrt[3]{\left(1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right) \cdot \color{blue}{\left(\left(1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right) \cdot \left(1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)\right)}}
\] |
cube-unmult [=>]57.1 | \[ \sqrt[3]{\color{blue}{{\left(1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)}^{3}}}
\] |
Taylor expanded in x around 0 98.3%
Simplified98.3%
[Start]98.3 | \[ 10^{-9} + \left(-0.00011824294398844343 \cdot {x}^{2} + \left(-0.37545125292247583 \cdot {x}^{3} + 1.128386358070218 \cdot x\right)\right)
\] |
|---|---|
associate-+r+ [=>]98.3 | \[ 10^{-9} + \color{blue}{\left(\left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot {x}^{3}\right) + 1.128386358070218 \cdot x\right)}
\] |
+-commutative [=>]98.3 | \[ 10^{-9} + \color{blue}{\left(1.128386358070218 \cdot x + \left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot {x}^{3}\right)\right)}
\] |
associate-+r+ [=>]98.3 | \[ \color{blue}{\left(10^{-9} + 1.128386358070218 \cdot x\right) + \left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot {x}^{3}\right)}
\] |
+-commutative [=>]98.3 | \[ \color{blue}{\left(1.128386358070218 \cdot x + 10^{-9}\right)} + \left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot {x}^{3}\right)
\] |
*-commutative [=>]98.3 | \[ \left(\color{blue}{x \cdot 1.128386358070218} + 10^{-9}\right) + \left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot {x}^{3}\right)
\] |
fma-def [=>]98.3 | \[ \color{blue}{\mathsf{fma}\left(x, 1.128386358070218, 10^{-9}\right)} + \left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot {x}^{3}\right)
\] |
cube-mult [=>]98.3 | \[ \mathsf{fma}\left(x, 1.128386358070218, 10^{-9}\right) + \left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot \color{blue}{\left(x \cdot \left(x \cdot x\right)\right)}\right)
\] |
unpow2 [<=]98.3 | \[ \mathsf{fma}\left(x, 1.128386358070218, 10^{-9}\right) + \left(-0.00011824294398844343 \cdot {x}^{2} + -0.37545125292247583 \cdot \left(x \cdot \color{blue}{{x}^{2}}\right)\right)
\] |
associate-*r* [=>]98.3 | \[ \mathsf{fma}\left(x, 1.128386358070218, 10^{-9}\right) + \left(-0.00011824294398844343 \cdot {x}^{2} + \color{blue}{\left(-0.37545125292247583 \cdot x\right) \cdot {x}^{2}}\right)
\] |
distribute-rgt-out [=>]98.3 | \[ \mathsf{fma}\left(x, 1.128386358070218, 10^{-9}\right) + \color{blue}{{x}^{2} \cdot \left(-0.00011824294398844343 + -0.37545125292247583 \cdot x\right)}
\] |
unpow2 [=>]98.3 | \[ \mathsf{fma}\left(x, 1.128386358070218, 10^{-9}\right) + \color{blue}{\left(x \cdot x\right)} \cdot \left(-0.00011824294398844343 + -0.37545125292247583 \cdot x\right)
\] |
*-commutative [=>]98.3 | \[ \mathsf{fma}\left(x, 1.128386358070218, 10^{-9}\right) + \left(x \cdot x\right) \cdot \left(-0.00011824294398844343 + \color{blue}{x \cdot -0.37545125292247583}\right)
\] |
Applied egg-rr98.3%
Applied egg-rr99.9%
if 4.99999999999999977e-7 < (fabs.f64 x) Initial program 99.7%
Simplified99.7%
[Start]99.7 | \[ 1 - \left(\frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}
\] |
|---|---|
associate-*l/ [=>]99.7 | \[ 1 - \color{blue}{\frac{1 \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)}{1 + 0.3275911 \cdot \left|x\right|}} \cdot e^{-\left|x\right| \cdot \left|x\right|}
\] |
associate-*l/ [=>]99.7 | \[ 1 - \color{blue}{\frac{\left(1 \cdot \left(0.254829592 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-0.284496736 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(1.421413741 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot \left(-1.453152027 + \frac{1}{1 + 0.3275911 \cdot \left|x\right|} \cdot 1.061405429\right)\right)\right)\right)\right) \cdot e^{-\left|x\right| \cdot \left|x\right|}}{1 + 0.3275911 \cdot \left|x\right|}}
\] |
Applied egg-rr98.7%
Simplified98.7%
[Start]98.7 | \[ 1 \cdot \left(1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}\right)
\] |
|---|---|
*-lft-identity [=>]98.7 | \[ \color{blue}{1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right) \cdot {\left(e^{x}\right)}^{x}}}
\] |
*-commutative [=>]98.7 | \[ 1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\color{blue}{{\left(e^{x}\right)}^{x} \cdot \mathsf{fma}\left(0.3275911, x, 1\right)}}
\] |
exp-prod [<=]98.7 | \[ 1 - \frac{0.254829592 + \frac{-0.284496736 + \frac{1.421413741 + \frac{-1.453152027 + \frac{1.061405429}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\mathsf{fma}\left(0.3275911, x, 1\right)}}{\color{blue}{e^{x \cdot x}} \cdot \mathsf{fma}\left(0.3275911, x, 1\right)}
\] |
Taylor expanded in x around inf 98.1%
Final simplification99.0%
| Alternative 1 | |
|---|---|
| Accuracy | 99.3% |
| Cost | 7112 |
| Alternative 2 | |
|---|---|
| Accuracy | 98.5% |
| Cost | 1224 |
| Alternative 3 | |
|---|---|
| Accuracy | 98.4% |
| Cost | 968 |
| Alternative 4 | |
|---|---|
| Accuracy | 98.4% |
| Cost | 840 |
| Alternative 5 | |
|---|---|
| Accuracy | 98.5% |
| Cost | 584 |
| Alternative 6 | |
|---|---|
| Accuracy | 98.3% |
| Cost | 584 |
| Alternative 7 | |
|---|---|
| Accuracy | 97.6% |
| Cost | 328 |
| Alternative 8 | |
|---|---|
| Accuracy | 52.9% |
| Cost | 64 |
herbie shell --seed 2023129
(FPCore (x)
:name "Jmat.Real.erf"
:precision binary64
(- 1.0 (* (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 0.254829592 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -0.284496736 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ 1.421413741 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) (+ -1.453152027 (* (/ 1.0 (+ 1.0 (* 0.3275911 (fabs x)))) 1.061405429))))))))) (exp (- (* (fabs x) (fabs x)))))))