Average Error: 0.0 → 0.7
Time: 17.2s
Precision: 64
Internal Precision: 128
\[\left(\left(x \cdot y + z \cdot t\right) + a \cdot b\right) + c \cdot i\]
\[(b \cdot a + \left(z \cdot t\right))_* + \left(\sqrt[3]{(i \cdot c + \left(y \cdot x\right))_*} \cdot \sqrt[3]{(i \cdot c + \left(y \cdot x\right))_*}\right) \cdot \sqrt[3]{(i \cdot c + \left(y \cdot x\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 (b \cdot a + \left(z \cdot t\right))_* + \color{blue}{\left(\sqrt[3]{(i \cdot c + \left(x \cdot y\right))_*} \cdot \sqrt[3]{(i \cdot c + \left(x \cdot y\right))_*}\right) \cdot \sqrt[3]{(i \cdot c + \left(x \cdot y\right))_*}}\]
  5. Final simplification0.7

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

Reproduce

herbie shell --seed 2019007 +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: 16.5s)Debug log

sample96.0ms

Algorithm
intervals

simplify80.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

80.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

localize29.0ms

Local error

Found 3 expressions with local error:

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

rewrite9.0ms

Algorithm
rewrite-expression-head
Counts
3 → 39
Calls

3 calls. Slowest were:

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

series347.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

258.0ms
(+ (fma b a (* z t)) (fma i c (* x y)))
45.0ms
(fma b a (* z t))
44.0ms
(fma i c (* x y))

simplify276.0ms

Counts
15 → 48
Calls

15 calls. Slowest were:

110.0ms
(* (exp (fma b a (* z t))) (exp (fma i c (* x y))))
54.0ms
(+ (fma b a (* z t)) (fma i c (* x y)))
29.0ms
(+ (* i c) (+ (* t z) (* x y)))

prune678.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.0b

localize21.0ms

Local error

Found 4 expressions with local error:

1.8b
(cbrt (fma i c (* x y)))
1.8b
(cbrt (fma i c (* x y)))
1.8b
(cbrt (fma i c (* x y)))
0.6b
(* (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)))

series630.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

184.0ms
(* (cbrt (fma i c (* x y))) (cbrt (fma i c (* x y))))
154.0ms
(cbrt (fma i c (* x y)))
148.0ms
(cbrt (fma i c (* x y)))
144.0ms
(cbrt (fma i c (* x y)))

simplify3.4s

Counts
41 → 81
Calls

41 calls. Slowest were:

382.0ms
(exp (* -1/3 (+ (log (/ 1 c)) (log (/ 1 i)))))
376.0ms
(exp (* -1/3 (+ (log (/ 1 c)) (log (/ 1 i)))))
359.0ms
(exp (* -1/3 (+ (* 2 (log (/ -1 i))) (* 2 (log (/ -1 c))))))

prune1.3s

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 4 expressions with local error:

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

rewrite9.0ms

Algorithm
rewrite-expression-head
Counts
4 → 69
Calls

4 calls. Slowest were:

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

series539.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

148.0ms
(cbrt (fma b a (* z t)))
140.0ms
(* (cbrt (fma b a (* z t))) (cbrt (fma b a (* z t))))
134.0ms
(cbrt (fma b a (* z t)))
118.0ms
(cbrt (fma b a (* z t)))

simplify3.3s

Counts
41 → 81
Calls

41 calls. Slowest were:

433.0ms
(exp (* -1/3 (+ (log (/ 1 b)) (log (/ 1 a)))))
366.0ms
(exp (* -1/3 (+ (log (/ 1 b)) (log (/ 1 a)))))
330.0ms
(exp (* -1/3 (+ (* 2 (log (/ -1 a))) (* 2 (log (/ -1 b))))))

prune1.5s

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0.0b

regimes738.0ms

Accuracy

0% (0.6b remaining)

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

bsearch4.0ms

end0.0ms

sample3.5s

Algorithm
intervals