Average Error: 0.0 → 0.0
Time: 2.5s
Precision: 64
Internal Precision: 128
\[x.re \cdot y.im + x.im \cdot y.re\]
\[(x.re \cdot y.im + \left(x.im \cdot y.re\right))_*\]

Error

Bits error versus x.re

Bits error versus x.im

Bits error versus y.re

Bits error versus y.im

Derivation

  1. Initial program 0.0

    \[x.re \cdot y.im + x.im \cdot y.re\]
  2. Simplified0.0

    \[\leadsto \color{blue}{(x.re \cdot y.im + \left(x.im \cdot y.re\right))_*}\]
  3. Final simplification0.0

    \[\leadsto (x.re \cdot y.im + \left(x.im \cdot y.re\right))_*\]

Reproduce

herbie shell --seed 2019002 +o rules:numerics
(FPCore (x.re x.im y.re y.im)
  :name "_multiplyComplex, imaginary part"
  (+ (* x.re y.im) (* x.im y.re)))

Details

Time bar (total: 2.1s)Debug log

sample55.0ms

Algorithm
intervals

simplify10.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

10.0ms
(+ (* x.re y.im) (* x.im y.re))

prune11.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.0b

localize9.0ms

Local error

Found 1 expressions with local error:

0.0b
(fma x.re y.im (* x.im y.re))

rewrite0.0ms

Algorithm
rewrite-expression-head
Counts
1 → 10
Calls

1 calls. Slowest were:

0.0ms
(fma x.re y.im (* x.im y.re))

series28.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

28.0ms
(fma x.re y.im (* x.im y.re))

simplify10.0ms

Counts
3 → 13
Calls

3 calls. Slowest were:

5.0ms
(+ (* y.re x.im) (* y.im x.re))
4.0ms
(+ (* y.re x.im) (* y.im x.re))
0.0ms
0

prune114.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

localize7.0ms

Local error

Found 1 expressions with local error:

0.0b
(fma y.re x.im (* y.im x.re))

rewrite0.0ms

Algorithm
rewrite-expression-head
Counts
1 → 10
Calls

1 calls. Slowest were:

0.0ms
(fma y.re x.im (* y.im x.re))

series28.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

28.0ms
(fma y.re x.im (* y.im x.re))

simplify10.0ms

Counts
3 → 13
Calls

3 calls. Slowest were:

5.0ms
(+ (* y.re x.im) (* y.im x.re))
4.0ms
(+ (* y.re x.im) (* y.im x.re))
0.0ms
0

prune134.0ms

Pruning

2 alts after pruning (0 fresh and 2 done)

Merged error: 0b

regimes222.0ms

Accuracy

0% (0.0b remaining)

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

bsearch1.0ms

end0.0ms

sample1.5s

Algorithm
intervals