Error: 30.4 → 7.0
Time: 53.0s
Precision: 64
Ground Truth: 128
\[{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}\]
\[\begin{cases} \frac{1}{n \cdot x} - \left(\frac{\log x}{{n}^2 \cdot x} + \frac{1}{2} \cdot \frac{1}{n \cdot {x}^2}\right) & \text{when } n \le -407.9959780804349 \\ {\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)} & \text{when } n \le 3375815863.4370856 \\ \frac{1}{n \cdot x} - \left(\frac{\log x}{{n}^2 \cdot x} + \frac{1}{2} \cdot \frac{1}{n \cdot {x}^2}\right) & \text{otherwise} \end{cases}\]

Error

Bits error versus x

Bits error versus n

Derivation

    if n < -407.9959780804349 or 3375815863.4370856 < n

    1. Initial program 43.3

      \[{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}\]
    2. Applied taylor 9.0

      \[\leadsto \frac{1}{n \cdot x} - \left(\frac{\log x}{{n}^2 \cdot x} + \frac{1}{2} \cdot \frac{1}{n \cdot {x}^2}\right)\]
    3. Taylor expanded around inf 9.0

      \[\leadsto \color{blue}{\frac{1}{n \cdot x} - \left(\frac{\log x}{{n}^2 \cdot x} + \frac{1}{2} \cdot \frac{1}{n \cdot {x}^2}\right)}\]

    if -407.9959780804349 < n < 3375815863.4370856

    1. Initial program 2.8

      \[{\left(x + 1\right)}^{\left(\frac{1}{n}\right)} - {x}^{\left(\frac{1}{n}\right)}\]
  1. Removed slow pow expressions

Runtime

Total time: 53.0s Debug log

Please report a bug with the following info:

herbie --seed '#(3690447436 4190865877 238975304 263035623 2301985935 3770979348)'
(FPCore (x n)
  :name "NMSE problem 3.4.6"
  (- (pow (+ x 1) (/ 1 n)) (pow x (/ 1 n))))