Average Error: 0.3 → 0.3
Time: 16.6s
Precision: 64
Internal Precision: 576
\[\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\]
\[\frac{1 - \log \left(e^{\tan x}\right) \cdot \tan x}{(\left(\tan x\right) \cdot \left(\tan x\right) + 1)_*}\]

Error

Bits error versus x

Derivation

  1. Initial program 0.3

    \[\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\]
  2. Initial simplification0.3

    \[\leadsto \frac{1 - \tan x \cdot \tan x}{(\left(\tan x\right) \cdot \left(\tan x\right) + 1)_*}\]
  3. Using strategy rm
  4. Applied add-log-exp1.1

    \[\leadsto \frac{1 - \color{blue}{\log \left(e^{\tan x \cdot \tan x}\right)}}{(\left(\tan x\right) \cdot \left(\tan x\right) + 1)_*}\]
  5. Using strategy rm
  6. Applied exp-prod1.1

    \[\leadsto \frac{1 - \log \color{blue}{\left({\left(e^{\tan x}\right)}^{\left(\tan x\right)}\right)}}{(\left(\tan x\right) \cdot \left(\tan x\right) + 1)_*}\]
  7. Applied log-pow0.3

    \[\leadsto \frac{1 - \color{blue}{\tan x \cdot \log \left(e^{\tan x}\right)}}{(\left(\tan x\right) \cdot \left(\tan x\right) + 1)_*}\]
  8. Final simplification0.3

    \[\leadsto \frac{1 - \log \left(e^{\tan x}\right) \cdot \tan x}{(\left(\tan x\right) \cdot \left(\tan x\right) + 1)_*}\]

Runtime

Time bar (total: 16.6s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.30.30.10.30%
herbie shell --seed 2018339 +o rules:numerics
(FPCore (x)
  :name "Trigonometry B"
  (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))