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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[\log \left(\frac{1}{x} + \frac{\sqrt{1 - x \cdot x}}{x}\right)\]
  2. Using strategy rm
  3. Applied clear-num_binary640.1

    \[\leadsto \log \left(\frac{1}{x} + \color{blue}{\frac{1}{\frac{x}{\sqrt{1 - x \cdot x}}}}\right)\]
  4. Final simplification0.1

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

Reproduce

herbie shell --seed 2020232 
(FPCore (x)
  :name "Hyperbolic arc-(co)secant"
  :precision binary64
  (log (+ (/ 1.0 x) (/ (sqrt (- 1.0 (* x x))) x))))