Average Error: 0.0 → 0.5
Time: 39.4s
Precision: 64
Internal Precision: 320
\[\frac{2}{e^{x} + e^{-x}}\]
\[\frac{\frac{2}{\sqrt{e^{x} + e^{-x}}}}{\sqrt{e^{x} + 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 0.0

    \[\frac{2}{e^{x} + e^{-x}}\]
  2. Initial simplification0.0

    \[\leadsto \frac{2}{e^{x} + e^{-x}}\]
  3. Using strategy rm
  4. Applied add-sqr-sqrt0.8

    \[\leadsto \frac{2}{\color{blue}{\sqrt{e^{x} + e^{-x}} \cdot \sqrt{e^{x} + e^{-x}}}}\]
  5. Applied associate-/r*0.5

    \[\leadsto \color{blue}{\frac{\frac{2}{\sqrt{e^{x} + e^{-x}}}}{\sqrt{e^{x} + e^{-x}}}}\]
  6. Final simplification0.5

    \[\leadsto \frac{\frac{2}{\sqrt{e^{x} + e^{-x}}}}{\sqrt{e^{x} + e^{-x}}}\]

Runtime

Time bar (total: 39.4s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.50.50.00.50%
herbie shell --seed 2018339 
(FPCore (x)
  :name "Hyperbolic secant"
  (/ 2 (+ (exp x) (exp (- x)))))