Average Error: 0.3 → 0.4
Time: 38.1s
Precision: 64
Internal Precision: 384
\[\frac{1 - \tan x \cdot \tan x}{1 + \tan x \cdot \tan x}\]
\[\frac{1 - \tan x \cdot \tan x}{1 + \sqrt[3]{{\left(\tan x\right)}^{3} \cdot {\left(\tan x\right)}^{3}}}\]

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. Using strategy rm
  3. Applied add-cbrt-cube0.4

    \[\leadsto \frac{1 - \tan x \cdot \tan x}{1 + \color{blue}{\sqrt[3]{\left(\left(\tan x \cdot \tan x\right) \cdot \left(\tan x \cdot \tan x\right)\right) \cdot \left(\tan x \cdot \tan x\right)}}}\]
  4. Applied simplify0.4

    \[\leadsto \frac{1 - \tan x \cdot \tan x}{1 + \sqrt[3]{\color{blue}{{\left(\tan x\right)}^{3} \cdot {\left(\tan x\right)}^{3}}}}\]
  5. Removed slow pow expressions.

Runtime

Time bar (total: 38.1s)Debug log

herbie shell --seed '#(2961832646 520228599 1275628947 1047906571 1774476463 2890033825)' 
(FPCore (x)
  :name "Trigonometry B"
  (/ (- 1 (* (tan x) (tan x))) (+ 1 (* (tan x) (tan x)))))