Average Error: 1.0 → 0.0
Time: 33.8s
Precision: 64
Internal Precision: 128
\[\frac{4}{\left(\left(3 \cdot \pi\right) \cdot \left(1 - v \cdot v\right)\right) \cdot \sqrt{2 - 6 \cdot \left(v \cdot v\right)}}\]
\[\frac{\frac{\frac{\frac{4}{3}}{\pi}}{1 - {v}^{4}}}{\frac{\sqrt{\left(v \cdot v\right) \cdot -6 + 2}}{v \cdot v + 1}}\]

Error

Bits error versus v

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 1.0

    \[\frac{4}{\left(\left(3 \cdot \pi\right) \cdot \left(1 - v \cdot v\right)\right) \cdot \sqrt{2 - 6 \cdot \left(v \cdot v\right)}}\]
  2. Simplified0.0

    \[\leadsto \color{blue}{\frac{\frac{\frac{\frac{4}{3}}{\pi}}{1 - v \cdot v}}{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}}\]
  3. Using strategy rm
  4. Applied flip--0.0

    \[\leadsto \frac{\frac{\frac{\frac{4}{3}}{\pi}}{\color{blue}{\frac{1 \cdot 1 - \left(v \cdot v\right) \cdot \left(v \cdot v\right)}{1 + v \cdot v}}}}{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}\]
  5. Applied associate-/r/0.0

    \[\leadsto \frac{\color{blue}{\frac{\frac{\frac{4}{3}}{\pi}}{1 \cdot 1 - \left(v \cdot v\right) \cdot \left(v \cdot v\right)} \cdot \left(1 + v \cdot v\right)}}{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}\]
  6. Applied associate-/l*0.0

    \[\leadsto \color{blue}{\frac{\frac{\frac{\frac{4}{3}}{\pi}}{1 \cdot 1 - \left(v \cdot v\right) \cdot \left(v \cdot v\right)}}{\frac{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}{1 + v \cdot v}}}\]
  7. Simplified0.0

    \[\leadsto \frac{\color{blue}{\frac{\frac{\frac{4}{3}}{\pi}}{1 - {v}^{4}}}}{\frac{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}{1 + v \cdot v}}\]
  8. Final simplification0.0

    \[\leadsto \frac{\frac{\frac{\frac{4}{3}}{\pi}}{1 - {v}^{4}}}{\frac{\sqrt{\left(v \cdot v\right) \cdot -6 + 2}}{v \cdot v + 1}}\]

Reproduce

herbie shell --seed 2019008 
(FPCore (v)
  :name "Falkner and Boettcher, Equation (22+)"
  (/ 4 (* (* (* 3 PI) (- 1 (* v v))) (sqrt (- 2 (* 6 (* v v)))))))

Details

Time bar (total: 33.6s)Debug log

sample93.0ms

Algorithm
intervals

simplify112.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

112.0ms
(/ 4 (* (* (* 3 PI) (- 1 (* v v))) (sqrt (- 2 (* 6 (* v v))))))

prune12.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize38.0ms

Local error

Found 4 expressions with local error:

1.0b
(/ 4/3 PI)
0.2b
(* (* v v) -6)
0.0b
(/ (/ 4/3 PI) (- 1 (* v v)))
0.0b
(/ (/ (/ 4/3 PI) (- 1 (* v v))) (sqrt (+ 2 (* (* v v) -6))))

rewrite30.0ms

Algorithm
rewrite-expression-head
Counts
4 → 202
Calls

4 calls. Slowest were:

13.0ms
(/ (/ (/ 4/3 PI) (- 1 (* v v))) (sqrt (+ 2 (* (* v v) -6))))
6.0ms
(/ (/ 4/3 PI) (- 1 (* v v)))
4.0ms
(* (* v v) -6)

series321.0ms

Counts
4 → 10
Calls

4 calls. Slowest were:

216.0ms
(/ (/ (/ 4/3 PI) (- 1 (* v v))) (sqrt (+ 2 (* (* v v) -6))))
86.0ms
(/ (/ 4/3 PI) (- 1 (* v v)))
19.0ms
(* (* v v) -6)
0.0ms
(/ 4/3 PI)

simplify21.0s

Counts
289 → 212
Calls

289 calls. Slowest were:

631.0ms
(- (+ (* 4/3 (/ 1 (* (pow v 2) PI))) (+ (* 4/3 (/ 1 (* (pow v 4) PI))) (* 4/3 (/ 1 (* (pow v 6) PI))))))
583.0ms
(- (+ (* 4/3 (/ 1 (* (pow v 2) PI))) (+ (* 4/3 (/ 1 (* (pow v 4) PI))) (* 4/3 (/ 1 (* (pow v 6) PI))))))
422.0ms
(sqrt (+ (* 2 2) (- (* (* (* v v) -6) (* (* v v) -6)) (* 2 (* (* v v) -6)))))

prune2.4s

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize29.0ms

Local error

Found 4 expressions with local error:

1.0b
(/ 4/3 PI)
0.2b
(* (* v v) -6)
0.0b
(/ (sqrt (+ 2 (* (* v v) -6))) (+ 1 (* v v)))
0.0b
(/ (/ 4/3 PI) (- 1 (pow v 4)))

rewrite27.0ms

Algorithm
rewrite-expression-head
Counts
4 → 96
Calls

4 calls. Slowest were:

13.0ms
(/ (sqrt (+ 2 (* (* v v) -6))) (+ 1 (* v v)))
7.0ms
(/ (/ 4/3 PI) (- 1 (pow v 4)))
4.0ms
(* (* v v) -6)

series263.0ms

Counts
4 → 10
Calls

4 calls. Slowest were:

184.0ms
(/ (/ 4/3 PI) (- 1 (pow v 4)))
67.0ms
(/ (sqrt (+ 2 (* (* v v) -6))) (+ 1 (* v v)))
12.0ms
(* (* v v) -6)
0.0ms
(/ 4/3 PI)

simplify4.9s

Counts
93 → 106
Calls

93 calls. Slowest were:

523.0ms
(+ (* 1 1) (- (* (* v v) (* v v)) (* 1 (* v v))))
476.0ms
(sqrt (+ (pow 2 3) (pow (* (* v v) -6) 3)))
402.0ms
(- (+ (* 4/3 (/ 1 (* (pow v 4) PI))) (+ (* 4/3 (/ 1 (* (pow v 8) PI))) (* 4/3 (/ 1 (* (pow v 12) PI))))))

prune1.2s

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample3.1s

Algorithm
intervals