Average Error: 0.0 → 0.7
Time: 18.7s
Precision: 64
Internal Precision: 128
\[\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\]
\[(\left(\sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*} \cdot \sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}\right) \cdot \left(\sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}\right) + \left((i \cdot c + \left(x \cdot y\right))_*\right))_*\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus i

Derivation

  1. Initial program 0.0

    \[\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\]
  2. Simplified0.0

    \[\leadsto \color{blue}{(b \cdot a + \left(z \cdot t\right))_* + (i \cdot c + \left(x \cdot y\right))_*}\]
  3. Using strategy rm
  4. Applied add-cube-cbrt0.7

    \[\leadsto \color{blue}{\left(\sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*} \cdot \sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}\right) \cdot \sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}} + (i \cdot c + \left(x \cdot y\right))_*\]
  5. Applied fma-def0.7

    \[\leadsto \color{blue}{(\left(\sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*} \cdot \sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}\right) \cdot \left(\sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}\right) + \left((i \cdot c + \left(x \cdot y\right))_*\right))_*}\]
  6. Final simplification0.7

    \[\leadsto (\left(\sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*} \cdot \sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}\right) \cdot \left(\sqrt[3]{(b \cdot a + \left(z \cdot t\right))_*}\right) + \left((i \cdot c + \left(x \cdot y\right))_*\right))_*\]

Reproduce

herbie shell --seed 2019008 +o rules:numerics
(FPCore (x y z t a b c i)
  :name "Linear.V4:$cdot from linear-1.19.1.3"
  (+ (+ (+ (* x y) (* z t)) (* a b)) (* c i)))

Details

Time bar (total: 17.6s)Debug log

sample119.0ms

Algorithm
intervals

simplify132.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

131.0ms
(+ (+ (+ (* x y) (* z t)) (* a b)) (* c i))

prune16.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize27.0ms

Local error

Found 2 expressions with local error:

0.0b
(+ (fma b a (* z t)) (fma i c (* x y)))
0.0b
(fma i c (* x y))

rewrite8.0ms

Algorithm
rewrite-expression-head
Counts
2 → 29
Calls

2 calls. Slowest were:

7.0ms
(+ (fma b a (* z t)) (fma i c (* x y)))
0.0ms
(fma i c (* x y))

series268.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

230.0ms
(+ (fma b a (* z t)) (fma i c (* x y)))
38.0ms
(fma i c (* x y))

simplify315.0ms

Counts
12 → 35
Calls

12 calls. Slowest were:

155.0ms
(* (exp (fma b a (* z t))) (exp (fma i c (* x y))))
62.0ms
(+ (fma b a (* z t)) (fma i c (* x y)))
30.0ms
(+ (* i c) (+ (* t z) (* x y)))

prune430.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0b

localize21.0ms

Local error

Found 4 expressions with local error:

1.5b
(cbrt (fma b a (* z t)))
1.5b
(cbrt (fma b a (* z t)))
1.5b
(cbrt (fma b a (* z t)))
0.5b
(* (cbrt (fma b a (* z t))) (cbrt (fma b a (* z t))))

rewrite14.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

10.0ms
(* (cbrt (fma b a (* z t))) (cbrt (fma b a (* z t))))
1.0ms
(cbrt (fma b a (* z t)))
1.0ms
(cbrt (fma b a (* z t)))

series608.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

171.0ms
(cbrt (fma b a (* z t)))
167.0ms
(* (cbrt (fma b a (* z t))) (cbrt (fma b a (* z t))))
154.0ms
(cbrt (fma b a (* z t)))
116.0ms
(cbrt (fma b a (* z t)))

simplify3.7s

Counts
41 → 81
Calls

41 calls. Slowest were:

484.0ms
(exp (* -1/3 (+ (* 2 (log (/ -1 a))) (* 2 (log (/ -1 b))))))
416.0ms
(exp (* -1/3 (+ (log (/ 1 b)) (log (/ 1 a)))))
412.0ms
(exp (* -1/3 (+ (log (/ 1 b)) (log (/ 1 a)))))

prune1.5s

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

localize24.0ms

Local error

Found 4 expressions with local error:

1.7b
(cbrt (fma i c (* x y)))
1.7b
(cbrt (fma i c (* x y)))
1.7b
(cbrt (fma i c (* x y)))
0.5b
(* (cbrt (fma i c (* x y))) (cbrt (fma i c (* x y))))

rewrite14.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

10.0ms
(* (cbrt (fma i c (* x y))) (cbrt (fma i c (* x y))))
1.0ms
(cbrt (fma i c (* x y)))
1.0ms
(cbrt (fma i c (* x y)))

series577.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

153.0ms
(* (cbrt (fma i c (* x y))) (cbrt (fma i c (* x y))))
153.0ms
(cbrt (fma i c (* x y)))
138.0ms
(cbrt (fma i c (* x y)))
133.0ms
(cbrt (fma i c (* x y)))

simplify3.5s

Counts
41 → 81
Calls

41 calls. Slowest were:

457.0ms
(exp (* -1/3 (+ (* 2 (log (/ -1 i))) (* 2 (log (/ -1 c))))))
351.0ms
(exp (* -1/3 (+ (log (/ 1 c)) (log (/ 1 i)))))
350.0ms
(exp (* -1/3 (+ (log (/ 1 c)) (log (/ 1 i)))))

prune1.6s

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

localize21.0ms

Local error

Found 2 expressions with local error:

0.0b
(fma i c (* t z))
0.0b
(fma x y (fma i c (* t z)))

rewrite1.0ms

Algorithm
rewrite-expression-head
Counts
2 → 20
Calls

2 calls. Slowest were:

0.0ms
(fma i c (* t z))
0.0ms
(fma x y (fma i c (* t z)))

series109.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

61.0ms
(fma i c (* t z))
48.0ms
(fma x y (fma i c (* t z)))

simplify65.0ms

Counts
6 → 26
Calls

6 calls. Slowest were:

30.0ms
(+ (* i c) (+ (* t z) (* x y)))
24.0ms
(+ (* i c) (+ (* t z) (* x y)))
5.0ms
(+ (* t z) (* i c))

prune311.0ms

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 0b

regimes785.0ms

Accuracy

0% (0.6b remaining)

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

bsearch3.0ms

end0.0ms

sample3.4s

Algorithm
intervals