Average Error: 0.1 → 0.1
Time: 5.5s
Precision: 64
Internal Precision: 128
\[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
\[(0.954929658551372 \cdot x + \left(\left(\left(-0.12900613773279798\right) \cdot \left(x \cdot x\right)\right) \cdot x\right))_*\]

Error

Bits error versus x

Derivation

  1. Initial program 0.1

    \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
  2. Using strategy rm
  3. Applied associate-*r*0.1

    \[\leadsto 0.954929658551372 \cdot x - \color{blue}{\left(0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x}\]
  4. Using strategy rm
  5. Applied fma-neg0.1

    \[\leadsto \color{blue}{(0.954929658551372 \cdot x + \left(-\left(0.12900613773279798 \cdot \left(x \cdot x\right)\right) \cdot x\right))_*}\]
  6. Final simplification0.1

    \[\leadsto (0.954929658551372 \cdot x + \left(\left(\left(-0.12900613773279798\right) \cdot \left(x \cdot x\right)\right) \cdot x\right))_*\]

Reproduce

herbie shell --seed 2019004 +o rules:numerics
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))

Details

Time bar (total: 5.1s)Debug log

sample193.0ms

Algorithm
intervals

simplify231.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

231.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))

prune27.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.3b

localize71.0ms

Local error

Found 1 expressions with local error:

0.3b
(fma (- 0.12900613773279798) (pow x 3) (* 0.954929658551372 x))

rewrite3.0ms

Algorithm
rewrite-expression-head
Counts
1 → 10
Calls

1 calls. Slowest were:

2.0ms
(fma (- 0.12900613773279798) (pow x 3) (* 0.954929658551372 x))

series166.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

166.0ms
(fma (- 0.12900613773279798) (pow x 3) (* 0.954929658551372 x))

simplify226.0ms

Counts
3 → 13
Calls

3 calls. Slowest were:

103.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
79.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
43.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))

prune97.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.2b

localize10.0ms

Local error

Found 3 expressions with local error:

0.3b
(* 0.12900613773279798 (* (* x x) x))
0.1b
(* (* x x) x)
0.0b
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))

rewrite9.0ms

Algorithm
rewrite-expression-head
Counts
3 → 40
Calls

3 calls. Slowest were:

4.0ms
(* 0.12900613773279798 (* (* x x) x))
3.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))
2.0ms
(* (* x x) x)

series74.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

40.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))
17.0ms
(* 0.12900613773279798 (* (* x x) x))
17.0ms
(* (* x x) x)

simplify440.0ms

Counts
12 → 49
Calls

12 calls. Slowest were:

128.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* 0.12900613773279798 (* (* x x) x))))
89.0ms
(fma (- (* (* x x) x)) 0.12900613773279798 (* (* (* x x) x) 0.12900613773279798))
60.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))

prune377.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

localize16.0ms

Local error

Found 3 expressions with local error:

0.2b
(* 0.12900613773279798 (* x x))
0.2b
(* (* 0.12900613773279798 (* x x)) x)
0.0b
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 (* x x)) x))

rewrite14.0ms

Algorithm
rewrite-expression-head
Counts
3 → 39
Calls

3 calls. Slowest were:

6.0ms
(* (* 0.12900613773279798 (* x x)) x)
5.0ms
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 (* x x)) x))
2.0ms
(* 0.12900613773279798 (* x x))

series123.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

73.0ms
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 (* x x)) x))
28.0ms
(* (* 0.12900613773279798 (* x x)) x)
21.0ms
(* 0.12900613773279798 (* x x))

simplify504.0ms

Counts
13 → 48
Calls

13 calls. Slowest were:

102.0ms
(fma (- x) (* 0.12900613773279798 (* x x)) (* x (* 0.12900613773279798 (* x x))))
88.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* (* 0.12900613773279798 (* x x)) x)))
84.0ms
(fma 0.954929658551372 x (- (* x (* 0.12900613773279798 (* x x)))))

prune308.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

localize6.0ms

Local error

Found 2 expressions with local error:

0.2b
(* 0.12900613773279798 (* x x))
0.2b
(* (* 0.12900613773279798 (* x x)) x)

rewrite7.0ms

Algorithm
rewrite-expression-head
Counts
2 → 22
Calls

2 calls. Slowest were:

3.0ms
(* 0.12900613773279798 (* x x))
3.0ms
(* (* 0.12900613773279798 (* x x)) x)

series42.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

26.0ms
(* (* 0.12900613773279798 (* x x)) x)
16.0ms
(* 0.12900613773279798 (* x x))

simplify27.0ms

Counts
6 → 28
Calls

6 calls. Slowest were:

5.0ms
(* 0.12900613773279798 (pow x 3))
5.0ms
(* 0.12900613773279798 (pow x 3))
5.0ms
(* 0.12900613773279798 (pow x 3))

prune257.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.0b

regimes56.0ms

Accuracy

0% (0.1b remaining)

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

bsearch6.0ms

end0.0ms

sample1.8s

Algorithm
intervals