Average Error: 1.0 → 0.0
Time: 31.4s
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{e^{\log \left(\frac{\frac{4}{3}}{\pi}\right) - \log \left(1 - v \cdot v\right)}}{\sqrt{-6 \cdot \left(v \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. Initial simplification0.0

    \[\leadsto \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-exp-log0.0

    \[\leadsto \frac{\frac{\frac{\frac{4}{3}}{\pi}}{\color{blue}{e^{\log \left(1 - v \cdot v\right)}}}}{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}\]
  5. Applied add-exp-log0.0

    \[\leadsto \frac{\frac{\color{blue}{e^{\log \left(\frac{\frac{4}{3}}{\pi}\right)}}}{e^{\log \left(1 - v \cdot v\right)}}}{\sqrt{2 + \left(v \cdot v\right) \cdot -6}}\]
  6. Applied div-exp0.0

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

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

Reproduce

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

Details

Time bar (total: 25.9s)Debug log

start172.0ms

Algorithm
intervals

setup460.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize31.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))))

rewrite17.0ms

Algorithm
rewrite-expression-head
Counts
4 → 202
Calls

4 calls. Slowest were:

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

series364.0ms

Counts
4 → 10
Calls

4 calls. Slowest were:

254.0ms
(/ (/ (/ 4/3 PI) (- 1 (* v v))) (sqrt (+ 2 (* (* v v) -6))))
84.0ms
(/ (/ 4/3 PI) (- 1 (* v v)))
26.0ms
(* (* v v) -6)
0.0ms
(/ 4/3 PI)

simplify17.9s

Counts
289 → 212
Calls

289 calls. Slowest were:

685.0ms
(/ (/ (* (cbrt (/ 4/3 PI)) (cbrt (/ 4/3 PI))) (* (cbrt (- 1 (* v v))) (cbrt (- 1 (* v v))))) (* (cbrt (sqrt (+ 2 (* (* v v) -6)))) (cbrt (sqrt (+ 2 (* (* v v) -6))))))
484.0ms
(/ (/ (/ 4/3 PI) (- (pow 1 3) (pow (* v v) 3))) (sqrt 1))
439.0ms
(/ (/ (/ 4/3 PI) (- (pow 1 3) (pow (* v v) 3))) (* (cbrt (sqrt (+ 2 (* (* v v) -6)))) (cbrt (sqrt (+ 2 (* (* v v) -6))))))

prune3.3s

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize15.0ms

Local error

Found 4 expressions with local error:

5.3b
(log (- 1 (* v v)))
1.0b
(/ 4/3 PI)
1.0b
(log (/ 4/3 PI))
1.0b
(exp (- (log (/ 4/3 PI)) (log (- 1 (* v v)))))

rewrite14.0ms

Algorithm
rewrite-expression-head
Counts
4 → 64
Calls

4 calls. Slowest were:

11.0ms
(exp (- (log (/ 4/3 PI)) (log (- 1 (* v v)))))
1.0ms
(log (- 1 (* v v)))
1.0ms
(log (/ 4/3 PI))

series348.0ms

Counts
4 → 8
Calls

4 calls. Slowest were:

234.0ms
(exp (- (log (/ 4/3 PI)) (log (- 1 (* v v)))))
114.0ms
(log (- 1 (* v v)))
0.0ms
(/ 4/3 PI)
0.0ms
(log (/ 4/3 PI))

simplify2.0s

Counts
39 → 72
Calls

39 calls. Slowest were:

606.0ms
(+ (exp (- (+ (log (/ 4/3 PI)) (* 2 (log (/ 1 v)))) (log -1))) (+ (/ (exp (- (+ (log (/ 4/3 PI)) (* 2 (log (/ 1 v)))) (log -1))) (pow v 2)) (/ (exp (- (+ (log (/ 4/3 PI)) (* 2 (log (/ 1 v)))) (log -1))) (pow v 4))))
229.0ms
(- (log -1) (+ (* 2 (log (/ 1 v))) (+ (* 1/2 (/ 1 (pow v 4))) (/ 1 (pow v 2)))))
179.0ms
(- (log -1) (+ (* 2 (log (/ -1 v))) (+ (* 1/2 (/ 1 (pow v 4))) (/ 1 (pow v 2)))))

prune1.2s

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes42.0ms

Accuracy

0% (0.0b remaining)

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

bsearch2.0ms