?

Average Error: 2.2 → 2.2
Time: 21.2s
Precision: binary64
Cost: 7296

?

\[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
\[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
(FPCore (a k m)
 :precision binary64
 (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))
(FPCore (a k m)
 :precision binary64
 (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))
double code(double a, double k, double m) {
	return (a * pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
double code(double a, double k, double m) {
	return (a * pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
real(8) function code(a, k, m)
    real(8), intent (in) :: a
    real(8), intent (in) :: k
    real(8), intent (in) :: m
    code = (a * (k ** m)) / ((1.0d0 + (10.0d0 * k)) + (k * k))
end function
real(8) function code(a, k, m)
    real(8), intent (in) :: a
    real(8), intent (in) :: k
    real(8), intent (in) :: m
    code = (a * (k ** m)) / ((1.0d0 + (10.0d0 * k)) + (k * k))
end function
public static double code(double a, double k, double m) {
	return (a * Math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
public static double code(double a, double k, double m) {
	return (a * Math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k));
}
def code(a, k, m):
	return (a * math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k))
def code(a, k, m):
	return (a * math.pow(k, m)) / ((1.0 + (10.0 * k)) + (k * k))
function code(a, k, m)
	return Float64(Float64(a * (k ^ m)) / Float64(Float64(1.0 + Float64(10.0 * k)) + Float64(k * k)))
end
function code(a, k, m)
	return Float64(Float64(a * (k ^ m)) / Float64(Float64(1.0 + Float64(10.0 * k)) + Float64(k * k)))
end
function tmp = code(a, k, m)
	tmp = (a * (k ^ m)) / ((1.0 + (10.0 * k)) + (k * k));
end
function tmp = code(a, k, m)
	tmp = (a * (k ^ m)) / ((1.0 + (10.0 * k)) + (k * k));
end
code[a_, k_, m_] := N[(N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision] / N[(N[(1.0 + N[(10.0 * k), $MachinePrecision]), $MachinePrecision] + N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
code[a_, k_, m_] := N[(N[(a * N[Power[k, m], $MachinePrecision]), $MachinePrecision] / N[(N[(1.0 + N[(10.0 * k), $MachinePrecision]), $MachinePrecision] + N[(k * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}
\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k}

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 2.2

    \[\frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]
  2. Final simplification2.2

    \[\leadsto \frac{a \cdot {k}^{m}}{\left(1 + 10 \cdot k\right) + k \cdot k} \]

Alternatives

Alternative 1
Error3.4
Cost7304
\[\begin{array}{l} t_0 := 1 + k \cdot 10\\ \mathbf{if}\;m \leq -1.5 \cdot 10^{+25}:\\ \;\;\;\;0\\ \mathbf{elif}\;m \leq 8.5 \cdot 10^{-36}:\\ \;\;\;\;\frac{a}{t_0 + k \cdot k}\\ \mathbf{else}:\\ \;\;\;\;\frac{a \cdot {k}^{m}}{t_0}\\ \end{array} \]
Alternative 2
Error2.2
Cost7168
\[\frac{a \cdot {k}^{m}}{1 + k \cdot \left(k + 10\right)} \]
Alternative 3
Error3.1
Cost7048
\[\begin{array}{l} \mathbf{if}\;m \leq -1.5 \cdot 10^{+25}:\\ \;\;\;\;0\\ \mathbf{elif}\;m \leq 10^{-9}:\\ \;\;\;\;\frac{a}{\left(1 + k \cdot 10\right) + k \cdot k}\\ \mathbf{else}:\\ \;\;\;\;\frac{a \cdot {k}^{m}}{1}\\ \end{array} \]
Alternative 4
Error17.1
Cost976
\[\begin{array}{l} \mathbf{if}\;m \leq -9.6 \cdot 10^{-48}:\\ \;\;\;\;0\\ \mathbf{elif}\;m \leq -5 \cdot 10^{-129}:\\ \;\;\;\;a\\ \mathbf{elif}\;m \leq -1.4 \cdot 10^{-178}:\\ \;\;\;\;0\\ \mathbf{elif}\;m \leq 0.017:\\ \;\;\;\;a + k \cdot \left(a \cdot -10\right)\\ \mathbf{else}:\\ \;\;\;\;0\\ \end{array} \]
Alternative 5
Error3.2
Cost968
\[\begin{array}{l} \mathbf{if}\;m \leq -1.5 \cdot 10^{+25}:\\ \;\;\;\;0\\ \mathbf{elif}\;m \leq 1.3:\\ \;\;\;\;\frac{a}{\left(1 + k \cdot 10\right) + k \cdot k}\\ \mathbf{else}:\\ \;\;\;\;0\\ \end{array} \]
Alternative 6
Error3.2
Cost840
\[\begin{array}{l} \mathbf{if}\;m \leq -1.5 \cdot 10^{+25}:\\ \;\;\;\;0\\ \mathbf{elif}\;m \leq 1.3:\\ \;\;\;\;\frac{a}{1 + k \cdot \left(k + 10\right)}\\ \mathbf{else}:\\ \;\;\;\;0\\ \end{array} \]
Alternative 7
Error11.9
Cost712
\[\begin{array}{l} \mathbf{if}\;m \leq -7.6 \cdot 10^{-19}:\\ \;\;\;\;0\\ \mathbf{elif}\;m \leq 0.04:\\ \;\;\;\;\frac{a}{1 + k \cdot 10}\\ \mathbf{else}:\\ \;\;\;\;0\\ \end{array} \]
Alternative 8
Error18.9
Cost592
\[\begin{array}{l} \mathbf{if}\;k \leq 3.8 \cdot 10^{-308}:\\ \;\;\;\;0\\ \mathbf{elif}\;k \leq 4.5 \cdot 10^{-249}:\\ \;\;\;\;a\\ \mathbf{elif}\;k \leq 2.6 \cdot 10^{-138}:\\ \;\;\;\;0\\ \mathbf{elif}\;k \leq 6:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;0\\ \end{array} \]
Alternative 9
Error38.9
Cost584
\[\begin{array}{l} t_0 := 0.1 \cdot \frac{a}{k}\\ \mathbf{if}\;k \leq -0.1:\\ \;\;\;\;t_0\\ \mathbf{elif}\;k \leq 0.105:\\ \;\;\;\;a\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \]
Alternative 10
Error46.7
Cost64
\[a \]

Error

Reproduce?

herbie shell --seed 2023077 
(FPCore (a k m)
  :name "Falkner and Boettcher, Appendix A"
  :precision binary64
  (/ (* a (pow k m)) (+ (+ 1.0 (* 10.0 k)) (* k k))))