Average Error: 61.4 → 2.5
Time: 23.4s
Precision: binary64
Cost: 117888
\[-\frac{1}{\frac{\pi}{4}} \cdot \log \left(\frac{e^{\frac{\pi}{4} \cdot f} + e^{-\frac{\pi}{4} \cdot f}}{e^{\frac{\pi}{4} \cdot f} - e^{-\frac{\pi}{4} \cdot f}}\right) \]
\[\begin{array}{l} t_0 := 8.138020833333333 \cdot 10^{-6} \cdot {\pi}^{5}\\ t_1 := {\pi}^{3} \cdot -0.0026041666666666665\\ \log \left(\frac{e^{\frac{\pi \cdot f}{4}} + e^{\left(\pi \cdot f\right) \cdot -0.25}}{{f}^{5} \cdot \left(t_0 + t_0\right) + \left(f \cdot \left(\pi \cdot 0.25 + \pi \cdot 0.25\right) - {f}^{3} \cdot \left(t_1 + t_1\right)\right)}\right) \cdot \frac{-4}{\pi} \end{array} \]
(FPCore (f)
 :precision binary64
 (-
  (*
   (/ 1.0 (/ PI 4.0))
   (log
    (/
     (+ (exp (* (/ PI 4.0) f)) (exp (- (* (/ PI 4.0) f))))
     (- (exp (* (/ PI 4.0) f)) (exp (- (* (/ PI 4.0) f)))))))))
(FPCore (f)
 :precision binary64
 (let* ((t_0 (* 8.138020833333333e-6 (pow PI 5.0)))
        (t_1 (* (pow PI 3.0) -0.0026041666666666665)))
   (*
    (log
     (/
      (+ (exp (/ (* PI f) 4.0)) (exp (* (* PI f) -0.25)))
      (+
       (* (pow f 5.0) (+ t_0 t_0))
       (- (* f (+ (* PI 0.25) (* PI 0.25))) (* (pow f 3.0) (+ t_1 t_1))))))
    (/ -4.0 PI))))
double code(double f) {
	return -((1.0 / (((double) M_PI) / 4.0)) * log(((exp(((((double) M_PI) / 4.0) * f)) + exp(-((((double) M_PI) / 4.0) * f))) / (exp(((((double) M_PI) / 4.0) * f)) - exp(-((((double) M_PI) / 4.0) * f))))));
}
double code(double f) {
	double t_0 = 8.138020833333333e-6 * pow(((double) M_PI), 5.0);
	double t_1 = pow(((double) M_PI), 3.0) * -0.0026041666666666665;
	return log(((exp(((((double) M_PI) * f) / 4.0)) + exp(((((double) M_PI) * f) * -0.25))) / ((pow(f, 5.0) * (t_0 + t_0)) + ((f * ((((double) M_PI) * 0.25) + (((double) M_PI) * 0.25))) - (pow(f, 3.0) * (t_1 + t_1)))))) * (-4.0 / ((double) M_PI));
}
public static double code(double f) {
	return -((1.0 / (Math.PI / 4.0)) * Math.log(((Math.exp(((Math.PI / 4.0) * f)) + Math.exp(-((Math.PI / 4.0) * f))) / (Math.exp(((Math.PI / 4.0) * f)) - Math.exp(-((Math.PI / 4.0) * f))))));
}
public static double code(double f) {
	double t_0 = 8.138020833333333e-6 * Math.pow(Math.PI, 5.0);
	double t_1 = Math.pow(Math.PI, 3.0) * -0.0026041666666666665;
	return Math.log(((Math.exp(((Math.PI * f) / 4.0)) + Math.exp(((Math.PI * f) * -0.25))) / ((Math.pow(f, 5.0) * (t_0 + t_0)) + ((f * ((Math.PI * 0.25) + (Math.PI * 0.25))) - (Math.pow(f, 3.0) * (t_1 + t_1)))))) * (-4.0 / Math.PI);
}
def code(f):
	return -((1.0 / (math.pi / 4.0)) * math.log(((math.exp(((math.pi / 4.0) * f)) + math.exp(-((math.pi / 4.0) * f))) / (math.exp(((math.pi / 4.0) * f)) - math.exp(-((math.pi / 4.0) * f))))))
def code(f):
	t_0 = 8.138020833333333e-6 * math.pow(math.pi, 5.0)
	t_1 = math.pow(math.pi, 3.0) * -0.0026041666666666665
	return math.log(((math.exp(((math.pi * f) / 4.0)) + math.exp(((math.pi * f) * -0.25))) / ((math.pow(f, 5.0) * (t_0 + t_0)) + ((f * ((math.pi * 0.25) + (math.pi * 0.25))) - (math.pow(f, 3.0) * (t_1 + t_1)))))) * (-4.0 / math.pi)
function code(f)
	return Float64(-Float64(Float64(1.0 / Float64(pi / 4.0)) * log(Float64(Float64(exp(Float64(Float64(pi / 4.0) * f)) + exp(Float64(-Float64(Float64(pi / 4.0) * f)))) / Float64(exp(Float64(Float64(pi / 4.0) * f)) - exp(Float64(-Float64(Float64(pi / 4.0) * f))))))))
end
function code(f)
	t_0 = Float64(8.138020833333333e-6 * (pi ^ 5.0))
	t_1 = Float64((pi ^ 3.0) * -0.0026041666666666665)
	return Float64(log(Float64(Float64(exp(Float64(Float64(pi * f) / 4.0)) + exp(Float64(Float64(pi * f) * -0.25))) / Float64(Float64((f ^ 5.0) * Float64(t_0 + t_0)) + Float64(Float64(f * Float64(Float64(pi * 0.25) + Float64(pi * 0.25))) - Float64((f ^ 3.0) * Float64(t_1 + t_1)))))) * Float64(-4.0 / pi))
end
function tmp = code(f)
	tmp = -((1.0 / (pi / 4.0)) * log(((exp(((pi / 4.0) * f)) + exp(-((pi / 4.0) * f))) / (exp(((pi / 4.0) * f)) - exp(-((pi / 4.0) * f))))));
end
function tmp = code(f)
	t_0 = 8.138020833333333e-6 * (pi ^ 5.0);
	t_1 = (pi ^ 3.0) * -0.0026041666666666665;
	tmp = log(((exp(((pi * f) / 4.0)) + exp(((pi * f) * -0.25))) / (((f ^ 5.0) * (t_0 + t_0)) + ((f * ((pi * 0.25) + (pi * 0.25))) - ((f ^ 3.0) * (t_1 + t_1)))))) * (-4.0 / pi);
end
code[f_] := (-N[(N[(1.0 / N[(Pi / 4.0), $MachinePrecision]), $MachinePrecision] * N[Log[N[(N[(N[Exp[N[(N[(Pi / 4.0), $MachinePrecision] * f), $MachinePrecision]], $MachinePrecision] + N[Exp[(-N[(N[(Pi / 4.0), $MachinePrecision] * f), $MachinePrecision])], $MachinePrecision]), $MachinePrecision] / N[(N[Exp[N[(N[(Pi / 4.0), $MachinePrecision] * f), $MachinePrecision]], $MachinePrecision] - N[Exp[(-N[(N[(Pi / 4.0), $MachinePrecision] * f), $MachinePrecision])], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision])
code[f_] := Block[{t$95$0 = N[(8.138020833333333e-6 * N[Power[Pi, 5.0], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[Power[Pi, 3.0], $MachinePrecision] * -0.0026041666666666665), $MachinePrecision]}, N[(N[Log[N[(N[(N[Exp[N[(N[(Pi * f), $MachinePrecision] / 4.0), $MachinePrecision]], $MachinePrecision] + N[Exp[N[(N[(Pi * f), $MachinePrecision] * -0.25), $MachinePrecision]], $MachinePrecision]), $MachinePrecision] / N[(N[(N[Power[f, 5.0], $MachinePrecision] * N[(t$95$0 + t$95$0), $MachinePrecision]), $MachinePrecision] + N[(N[(f * N[(N[(Pi * 0.25), $MachinePrecision] + N[(Pi * 0.25), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[Power[f, 3.0], $MachinePrecision] * N[(t$95$1 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]], $MachinePrecision] * N[(-4.0 / Pi), $MachinePrecision]), $MachinePrecision]]]
-\frac{1}{\frac{\pi}{4}} \cdot \log \left(\frac{e^{\frac{\pi}{4} \cdot f} + e^{-\frac{\pi}{4} \cdot f}}{e^{\frac{\pi}{4} \cdot f} - e^{-\frac{\pi}{4} \cdot f}}\right)
\begin{array}{l}
t_0 := 8.138020833333333 \cdot 10^{-6} \cdot {\pi}^{5}\\
t_1 := {\pi}^{3} \cdot -0.0026041666666666665\\
\log \left(\frac{e^{\frac{\pi \cdot f}{4}} + e^{\left(\pi \cdot f\right) \cdot -0.25}}{{f}^{5} \cdot \left(t_0 + t_0\right) + \left(f \cdot \left(\pi \cdot 0.25 + \pi \cdot 0.25\right) - {f}^{3} \cdot \left(t_1 + t_1\right)\right)}\right) \cdot \frac{-4}{\pi}
\end{array}

Error

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 61.4

    \[-\frac{1}{\frac{\pi}{4}} \cdot \log \left(\frac{e^{\frac{\pi}{4} \cdot f} + e^{-\frac{\pi}{4} \cdot f}}{e^{\frac{\pi}{4} \cdot f} - e^{-\frac{\pi}{4} \cdot f}}\right) \]
  2. Simplified61.4

    \[\leadsto \color{blue}{\log \left(\frac{e^{\frac{\pi \cdot f}{4}} + e^{-0.25 \cdot \left(\pi \cdot f\right)}}{e^{\frac{\pi \cdot f}{4}} - e^{-0.25 \cdot \left(\pi \cdot f\right)}}\right) \cdot \frac{-4}{\pi}} \]
    Proof
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (PI.f64) 4) f))) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (*.f64 (Rewrite<= metadata-eval (/.f64 -1 4)) (*.f64 (PI.f64) f)))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= associate-/r/_binary64 (/.f64 -1 (/.f64 4 (*.f64 (PI.f64) f)))))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 -1 (*.f64 (PI.f64) f)) 4)))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= associate-*r/_binary64 (*.f64 -1 (/.f64 (*.f64 (PI.f64) f) 4))))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (*.f64 -1 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (PI.f64) 4) f))))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= neg-mul-1_binary64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f))))) (-.f64 (exp.f64 (/.f64 (*.f64 (PI.f64) f) 4)) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (PI.f64) 4) f))) (exp.f64 (*.f64 -1/4 (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (*.f64 (Rewrite<= metadata-eval (/.f64 -1 4)) (*.f64 (PI.f64) f)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= associate-/r/_binary64 (/.f64 -1 (/.f64 4 (*.f64 (PI.f64) f)))))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= associate-/l*_binary64 (/.f64 (*.f64 -1 (*.f64 (PI.f64) f)) 4)))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= associate-*r/_binary64 (*.f64 -1 (/.f64 (*.f64 (PI.f64) f) 4))))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (*.f64 -1 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 (PI.f64) 4) f))))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (Rewrite<= neg-mul-1_binary64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f))))))) (/.f64 -4 (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))))) (/.f64 (Rewrite<= metadata-eval (neg.f64 4)) (PI.f64))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))))) (Rewrite<= distribute-neg-frac_binary64 (neg.f64 (/.f64 4 (PI.f64))))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))))) (neg.f64 (/.f64 (Rewrite<= metadata-eval (*.f64 1 4)) (PI.f64)))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))))) (neg.f64 (Rewrite<= associate-*l/_binary64 (*.f64 (/.f64 1 (PI.f64)) 4)))): 0 points increase in error, 0 points decrease in error
    (*.f64 (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))))) (neg.f64 (Rewrite<= associate-/r/_binary64 (/.f64 1 (/.f64 (PI.f64) 4))))): 0 points increase in error, 0 points decrease in error
    (Rewrite<= *-commutative_binary64 (*.f64 (neg.f64 (/.f64 1 (/.f64 (PI.f64) 4))) (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))))))): 0 points increase in error, 0 points decrease in error
    (Rewrite<= distribute-lft-neg-in_binary64 (neg.f64 (*.f64 (/.f64 1 (/.f64 (PI.f64) 4)) (log.f64 (/.f64 (+.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f)))) (-.f64 (exp.f64 (*.f64 (/.f64 (PI.f64) 4) f)) (exp.f64 (neg.f64 (*.f64 (/.f64 (PI.f64) 4) f))))))))): 0 points increase in error, 0 points decrease in error
  3. Taylor expanded in f around 0 2.5

    \[\leadsto \log \left(\frac{e^{\frac{\pi \cdot f}{4}} + e^{-0.25 \cdot \left(\pi \cdot f\right)}}{\color{blue}{{f}^{5} \cdot \left(8.138020833333333 \cdot 10^{-6} \cdot {\pi}^{5} - -8.138020833333333 \cdot 10^{-6} \cdot {\pi}^{5}\right) + \left(\left(0.25 \cdot \pi - -0.25 \cdot \pi\right) \cdot f + {f}^{3} \cdot \left(0.0026041666666666665 \cdot {\pi}^{3} - -0.0026041666666666665 \cdot {\pi}^{3}\right)\right)}}\right) \cdot \frac{-4}{\pi} \]
  4. Final simplification2.5

    \[\leadsto \log \left(\frac{e^{\frac{\pi \cdot f}{4}} + e^{\left(\pi \cdot f\right) \cdot -0.25}}{{f}^{5} \cdot \left(8.138020833333333 \cdot 10^{-6} \cdot {\pi}^{5} + 8.138020833333333 \cdot 10^{-6} \cdot {\pi}^{5}\right) + \left(f \cdot \left(\pi \cdot 0.25 + \pi \cdot 0.25\right) - {f}^{3} \cdot \left({\pi}^{3} \cdot -0.0026041666666666665 + {\pi}^{3} \cdot -0.0026041666666666665\right)\right)}\right) \cdot \frac{-4}{\pi} \]

Alternatives

Alternative 1
Error2.7
Cost85184
\[\begin{array}{l} t_0 := {\pi}^{3} \cdot -0.0026041666666666665\\ \frac{-4}{\pi} \cdot \log \left(\frac{e^{\frac{\pi \cdot f}{4}} + e^{\left(\pi \cdot f\right) \cdot -0.25}}{f \cdot \left(\pi \cdot 0.25 + \pi \cdot 0.25\right) - {f}^{3} \cdot \left(t_0 + t_0\right)}\right) \end{array} \]
Alternative 2
Error2.8
Cost52288
\[\frac{-4}{\pi} \cdot \left(\mathsf{fma}\left(0.5, \left(f \cdot f\right) \cdot \mathsf{fma}\left(0.0625, {\pi}^{2}, 0\right), \log \left(\frac{2}{\pi \cdot 0.5}\right)\right) - \log f\right) \]
Alternative 3
Error2.9
Cost26176
\[-4 \cdot \frac{\log \left(\frac{2}{\pi \cdot 0.5}\right) - \log f}{\pi} \]
Alternative 4
Error3.0
Cost19648
\[\frac{-4}{\pi} \cdot \log \left(\frac{\frac{4}{\pi}}{f}\right) \]
Alternative 5
Error2.9
Cost19648
\[\frac{-4 \cdot \log \left(\frac{\frac{4}{\pi}}{f}\right)}{\pi} \]
Alternative 6
Error45.5
Cost19520
\[4 \cdot \frac{\log \left(\pi \cdot f\right)}{\pi} \]
Alternative 7
Error45.5
Cost19520
\[\frac{4}{\pi} \cdot \log \left(\pi \cdot f\right) \]

Error

Reproduce

herbie shell --seed 2022332 
(FPCore (f)
  :name "VandenBroeck and Keller, Equation (20)"
  :precision binary64
  (- (* (/ 1.0 (/ PI 4.0)) (log (/ (+ (exp (* (/ PI 4.0) f)) (exp (- (* (/ PI 4.0) f)))) (- (exp (* (/ PI 4.0) f)) (exp (- (* (/ PI 4.0) f)))))))))