Average Error: 0.0 → 0.0
Time: 6.8s
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))_* + (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. Final simplification0.0

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

Reproduce

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

sample148.0ms

Algorithm
intervals

simplify122.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

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

prune15.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

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

rewrite7.0ms

Algorithm
rewrite-expression-head
Counts
2 → 29
Calls

2 calls. Slowest were:

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

series282.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

232.0ms
(+ (fma b a (* z t)) (fma i c (* x y)))
49.0ms
(fma i c (* x y))

simplify294.0ms

Counts
12 → 35
Calls

12 calls. Slowest were:

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

prune561.0ms

Pruning

3 alts after pruning (2 fresh and 1 done)

Merged error: 0.0b

localize10.0ms

Local error

Found 1 expressions with local error:

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

rewrite0.0ms

Algorithm
rewrite-expression-head
Counts
1 → 10
Calls

1 calls. Slowest were:

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

series38.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

38.0ms
(fma i c (* t z))

simplify10.0ms

Counts
3 → 13
Calls

3 calls. Slowest were:

5.0ms
(+ (* t z) (* i c))
5.0ms
(+ (* t z) (* i c))
0.0ms
0

prune181.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0.0b

localize18.0ms

Local error

Found 1 expressions with local error:

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

rewrite0.0ms

Algorithm
rewrite-expression-head
Counts
1 → 10
Calls

1 calls. Slowest were:

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

series31.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

31.0ms
(fma t z (* i c))

simplify20.0ms

Counts
3 → 13
Calls

3 calls. Slowest were:

9.0ms
(+ (* i c) (* t z))
9.0ms
(+ (* i c) (* t z))
1.0ms
0

prune219.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0.0b

regimes746.0ms

Accuracy

0% (0.0b remaining)

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

bsearch2.0ms

end0.0ms

sample3.4s

Algorithm
intervals