Average Error: 0.0 → 0.0
Time: 20.3s
Precision: 64
Internal Precision: 128
\[\frac{-\left(f + n\right)}{f - n}\]
\[-\frac{n + f}{f - n}\]

Error

Bits error versus f

Bits error versus n

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\frac{-\left(f + n\right)}{f - n}\]
  2. Final simplification0.0

    \[\leadsto -\frac{n + f}{f - n}\]

Reproduce

herbie shell --seed 2019007 
(FPCore (f n)
  :name "subtraction fraction"
  (/ (- (+ f n)) (- f n)))

Details

Time bar (total: 20.0s)Debug log

sample140.0ms

Algorithm
intervals

simplify21.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

21.0ms
(/ (- (+ f n)) (- f n))

prune11.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize14.0ms

Local error

Found 1 expressions with local error:

0.0b
(/ (- (+ f n)) (- f n))

rewrite8.0ms

Algorithm
rewrite-expression-head
Counts
1 → 61
Calls

1 calls. Slowest were:

6.0ms
(/ (- (+ f n)) (- f n))

series100.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

99.0ms
(/ (- (+ f n)) (- f n))

simplify1.1s

Counts
81 → 64
Calls

81 calls. Slowest were:

200.0ms
(/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n)))
144.0ms
(- (- (* f f) (* n n)))
49.0ms
(/ (- (* (cbrt (+ f n)) (cbrt (+ f n)))) (* (cbrt (- f n)) (cbrt (- f n))))

prune560.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize21.0ms

Local error

Found 4 expressions with local error:

0.0b
(cbrt (* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n))))
0.0b
(* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n)))
0.0b
(* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n)))
0.0b
(/ (- (+ f n)) (- f n))

rewrite98.0ms

Algorithm
rewrite-expression-head
Counts
4 → 260
Calls

4 calls. Slowest were:

37.0ms
(* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n)))
30.0ms
(cbrt (* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n))))
16.0ms
(* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n)))

series255.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

131.0ms
(cbrt (* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n))))
49.0ms
(* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n)))
44.0ms
(* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n)))
31.0ms
(/ (- (+ f n)) (- f n))

simplify14.4s

Counts
270 → 272
Calls

270 calls. Slowest were:

792.0ms
(* (- (+ f n)) (/ (- (+ f n)) (- f n)))
519.0ms
(* (* (* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n))) (/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n)))) (/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n))))
449.0ms
(* (* (/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n))) (* (* (/ (- (+ f n)) (- f n)) (/ (- (+ f n)) (- f n))) (/ (- (+ f n)) (- f n)))) (/ (* (* (- (+ f n)) (- (+ f n))) (- (+ f n))) (* (* (- f n) (- f n)) (- f n))))

prune2.5s

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes97.0ms

Accuracy

0% (0.0b remaining)

Error of 0.0b against oracle of 0.0b and baseline of 0.0b

bsearch4.0ms

end0.0ms

sample724.0ms

Algorithm
intervals