Average Error: 32.1 → 32.1
Time: 2.5s
Precision: binary64
Cost: 13248
\[\log \left(x + \sqrt{x \cdot x - 1}\right)\]
\[\log \left(x + \sqrt{x \cdot x - 1}\right)\]
\log \left(x + \sqrt{x \cdot x - 1}\right)
\log \left(x + \sqrt{x \cdot x - 1}\right)
(FPCore (x) :precision binary64 (log (+ x (sqrt (- (* x x) 1.0)))))
(FPCore (x) :precision binary64 (log (+ x (sqrt (- (* x x) 1.0)))))
double code(double x) {
	return log(x + sqrt((x * x) - 1.0));
}
double code(double x) {
	return log(x + sqrt((x * x) - 1.0));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 32.1

    \[\log \left(x + \sqrt{x \cdot x - 1}\right)\]

Reproduce

herbie shell --seed 2021044 
(FPCore (x)
  :name "Hyperbolic arc-cosine"
  :precision binary64
  (log (+ x (sqrt (- (* x x) 1.0)))))