Average Error: 39.7 → 0.0
Time: 8.4s
Precision: 64
Internal Precision: 1344
\[\sqrt{\frac{e^{2 \cdot x} - 1}{e^{x} - 1}}\]
\[\sqrt{e^{\log_* (1 + e^{x})}}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 39.7

    \[\sqrt{\frac{e^{2 \cdot x} - 1}{e^{x} - 1}}\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{\sqrt{e^{x} + 1}}\]
  3. Using strategy rm
  4. Applied add-exp-log0.0

    \[\leadsto \sqrt{\color{blue}{e^{\log \left(e^{x} + 1\right)}}}\]
  5. Applied simplify0.0

    \[\leadsto \sqrt{e^{\color{blue}{\log_* (1 + e^{x})}}}\]

Runtime

Time bar (total: 8.4s)Debug logProfile

herbie shell --seed 2018178 +o rules:numerics
(FPCore (x)
  :name "sqrtexp (problem 3.4.4)"
  (sqrt (/ (- (exp (* 2 x)) 1) (- (exp x) 1))))