Average Error: 1.0 → 0.0
Time: 32.1s
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{\frac{4}{3}}{\pi}}{\sqrt{1 - v \cdot v}}}{\sqrt{1 - v \cdot v}}}{\sqrt{v \cdot \left(-6 \cdot v\right) + 2}}\]

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 add-sqr-sqrt0.0

    \[\leadsto \frac{\frac{\frac{\frac{4}{3}}{\pi}}{\color{blue}{\sqrt{1 - v \cdot v} \cdot \sqrt{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{\frac{4}{3}}{\pi}}{\sqrt{1 - v \cdot v}}}{\sqrt{1 - v \cdot v}}}}{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}\]
  6. Using strategy rm
  7. Applied associate-*l*0.0

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

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

Reproduce

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

Details

Time bar (total: 31.8s)Debug log

sample153.0ms

Algorithm
intervals

simplify143.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

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

prune24.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.0b

localize20.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
(sqrt (+ 2 (* (* v v) -6)))

rewrite15.0ms

Algorithm
rewrite-expression-head
Counts
4 → 67
Calls

4 calls. Slowest were:

7.0ms
(* (* v v) -6)
5.0ms
(/ (/ 4/3 PI) (- 1 (* v v)))
1.0ms
(sqrt (+ 2 (* (* v v) -6)))

series134.0ms

Counts
4 → 10
Calls

4 calls. Slowest were:

66.0ms
(/ (/ 4/3 PI) (- 1 (* v v)))
47.0ms
(sqrt (+ 2 (* (* v v) -6)))
21.0ms
(* (* v v) -6)
0.0ms
(/ 4/3 PI)

simplify4.1s

Counts
49 → 77
Calls

49 calls. Slowest were:

566.0ms
(- (+ (* 4/3 (/ 1 (* (pow v 2) PI))) (+ (* 4/3 (/ 1 (* (pow v 4) PI))) (* 4/3 (/ 1 (* (pow v 6) PI))))))
554.0ms
(- (+ (* 4/3 (/ 1 (* (pow v 2) PI))) (+ (* 4/3 (/ 1 (* (pow v 4) PI))) (* 4/3 (/ 1 (* (pow v 6) PI))))))
494.0ms
(sqrt (+ (pow 2 3) (pow (* (* v v) -6) 3)))

prune717.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0b

localize22.0ms

Local error

Found 4 expressions with local error:

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

rewrite20.0ms

Algorithm
rewrite-expression-head
Counts
4 → 301
Calls

4 calls. Slowest were:

7.0ms
(/ (/ (/ 4/3 PI) (sqrt (- 1 (* v v)))) (sqrt (- 1 (* v v))))
4.0ms
(/ (/ 4/3 PI) (sqrt (- 1 (* v v))))
2.0ms
(* (* v v) -6)

series235.0ms

Counts
4 → 10
Calls

4 calls. Slowest were:

128.0ms
(/ (/ 4/3 PI) (sqrt (- 1 (* v v))))
91.0ms
(/ (/ (/ 4/3 PI) (sqrt (- 1 (* v v)))) (sqrt (- 1 (* v v))))
17.0ms
(* (* v v) -6)
0.0ms
(/ 4/3 PI)

simplify14.8s

Counts
472 → 311
Calls

472 calls. Slowest were:

585.0ms
(- (+ (* 4/3 (/ 1 (* (pow v 2) PI))) (+ (* 4/3 (/ 1 (* (pow v 4) PI))) (* 4/3 (/ 1 (* (pow v 6) PI))))))
559.0ms
(/ (* (* (/ (/ 4/3 PI) (sqrt (- 1 (* v v)))) (/ (/ 4/3 PI) (sqrt (- 1 (* v v))))) (/ (/ 4/3 PI) (sqrt (- 1 (* v v))))) (* (* (sqrt (- 1 (* v v))) (sqrt (- 1 (* v v)))) (sqrt (- 1 (* v v)))))
554.0ms
(- (+ (* 4/3 (/ 1 (* (pow v 2) PI))) (+ (* 4/3 (/ 1 (* (pow v 4) PI))) (* 4/3 (/ 1 (* (pow v 6) PI))))))

prune4.0s

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize13.0ms

Local error

Found 4 expressions with local error:

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

rewrite7.0ms

Algorithm
rewrite-expression-head
Counts
4 → 82
Calls

4 calls. Slowest were:

3.0ms
(/ (/ 4/3 PI) (sqrt (- 1 (* v v))))
1.0ms
(* v (* v -6))
1.0ms
(sqrt (+ 2 (* v (* v -6))))

series248.0ms

Counts
4 → 10
Calls

4 calls. Slowest were:

176.0ms
(/ (/ 4/3 PI) (sqrt (- 1 (* v v))))
44.0ms
(sqrt (+ 2 (* v (* v -6))))
27.0ms
(* v (* v -6))
0.0ms
(/ 4/3 PI)

simplify2.8s

Counts
75 → 92
Calls

75 calls. Slowest were:

373.0ms
(sqrt (+ (pow 2 3) (pow (* v (* v -6)) 3)))
313.0ms
(/ (* (* (/ 4/3 PI) (/ 4/3 PI)) (/ 4/3 PI)) (* (* (sqrt (- 1 (* v v))) (sqrt (- 1 (* v v)))) (sqrt (- 1 (* v v)))))
230.0ms
(- (+ (* 2/3 (/ 1 (* (pow v 5) (* (sqrt -1) PI)))) (+ (* 2/3 (/ 1 (* (pow v 3) (* (sqrt -1) PI)))) (* 1/6 (/ 1 (* (pow v 5) (* (pow (sqrt -1) 3) PI)))))) (* 4/3 (/ (sqrt -1) (* v PI))))

prune1.1s

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample3.4s

Algorithm
intervals