Average Error: 0.5 → 0.6
Time: 37.1s
Precision: 64
Internal Precision: 576
\[\left(1 + \sin x\right) - \frac{2}{\cos y}\]
\[\log \left(e^{\left(1 + \sin x\right) - \frac{2}{\cos y}}\right)\]

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.5

    \[\left(1 + \sin x\right) - \frac{2}{\cos y}\]
  2. Using strategy rm
  3. Applied add-log-exp0.5

    \[\leadsto \left(1 + \sin x\right) - \color{blue}{\log \left(e^{\frac{2}{\cos y}}\right)}\]
  4. Applied add-log-exp0.5

    \[\leadsto \color{blue}{\log \left(e^{1 + \sin x}\right)} - \log \left(e^{\frac{2}{\cos y}}\right)\]
  5. Applied diff-log0.8

    \[\leadsto \color{blue}{\log \left(\frac{e^{1 + \sin x}}{e^{\frac{2}{\cos y}}}\right)}\]
  6. Applied simplify0.6

    \[\leadsto \log \color{blue}{\left(e^{\left(1 + \sin x\right) - \frac{2}{\cos y}}\right)}\]

Runtime

Time bar (total: 37.1s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x y)
  :name "1+sin(x)-2/cos(y)"
  (- (+ 1 (sin x)) (/ 2 (cos y))))