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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

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 distribute-rgt-out--0.1

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

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

Reproduce

herbie shell --seed 2019010 
(FPCore (x)
  :name "Rosa's Benchmark"
  (- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x))))

Details

Time bar (total: 4.8s)Debug log

sample173.0ms

Algorithm
intervals

simplify77.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
77.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))

prune10.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.1b

localize46.0ms

Local error

Found 3 expressions with local error:

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

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
add-cube-cbrt
add-exp-log
add-cbrt-cube
*-un-lft-identity
pow1
add-sqr-sqrt
*-commutative
flip--
pow3
associate-*l*
associate-*r*
diff-log
flip3--
pow-plus
sub-neg
pow2
Counts
3 → 32
Calls
3 calls:
Slowest
7.0ms
(* (* x x) x)
6.0ms
(* 0.12900613773279798 (* (* x x) x))
5.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))

series142.0ms

Counts
3 → 9
Calls
3 calls:
Slowest
79.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))
35.0ms
(* (* x x) x)
27.0ms
(* 0.12900613773279798 (* (* x x) x))

simplify295.0ms

Counts
10 → 41
Calls
10 calls:
Slowest
84.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* 0.12900613773279798 (* (* x x) x))))
62.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
58.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
52.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
10.0ms
(* 0.12900613773279798 (pow x 3))

prune327.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 0.0b

localize18.0ms

Local error

Found 2 expressions with local error:

0.1b
(* 0.12900613773279798 (pow x 3))
0.0b
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
associate-*r*
add-log-exp
add-cube-cbrt
*-un-lft-identity
add-sqr-sqrt
add-exp-log
add-cbrt-cube
pow1
flip--
*-commutative
unpow3
diff-log
flip3--
sub-neg
cube-mult
Counts
2 → 25
Calls
2 calls:
Slowest
4.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
3.0ms
(* 0.12900613773279798 (pow x 3))

series99.0ms

Counts
2 → 6
Calls
2 calls:
Slowest
70.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
29.0ms
(* 0.12900613773279798 (pow x 3))

simplify245.0ms

Counts
11 → 31
Calls
11 calls:
Slowest
91.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* 0.12900613773279798 (pow x 3))))
59.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
38.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
34.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
6.0ms
(* 0.12900613773279798 (pow x 3))

prune228.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.1b
(* 0.12900613773279798 (* x x))
0.1b
(* (* 0.12900613773279798 (* x x)) x)
0.0b
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 (* x x)) x))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
add-log-exp
add-cube-cbrt
add-exp-log
add-cbrt-cube
*-un-lft-identity
pow1
add-sqr-sqrt
*-commutative
flip--
associate-*l*
associate-*r*
diff-log
distribute-rgt-out--
flip3--
sub-neg
Counts
3 → 31
Calls
3 calls:
Slowest
4.0ms
(* (* 0.12900613773279798 (* x x)) x)
2.0ms
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 (* x x)) x))
2.0ms
(* 0.12900613773279798 (* x x))

series87.0ms

Counts
3 → 9
Calls
3 calls:
Slowest
56.0ms
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 (* x x)) x))
19.0ms
(* (* 0.12900613773279798 (* x x)) x)
12.0ms
(* 0.12900613773279798 (* x x))

simplify281.0ms

Counts
11 → 40
Calls
11 calls:
Slowest
64.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
64.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* (* 0.12900613773279798 (* x x)) x)))
50.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
38.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
12.0ms
(- 0.954929658551372 (* 0.12900613773279798 (* x x)))

prune276.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0b

localize5.0ms

Local error

Found 3 expressions with local error:

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

rewrite3.0ms

Algorithm
rewrite-expression-head
Rules
add-cube-cbrt
associate-*r*
*-un-lft-identity
add-sqr-sqrt
add-log-exp
add-exp-log
add-cbrt-cube
sub-neg
pow1
flip--
*-commutative
associate-*r/
flip3--
distribute-lft-in
distribute-rgt-in
Counts
3 → 37
Calls
3 calls:
Slowest
2.0ms
(* x (- 0.954929658551372 (* 0.12900613773279798 (* x x))))
1.0ms
(* 0.12900613773279798 (* x x))
1.0ms
(- 0.954929658551372 (* 0.12900613773279798 (* x x)))

series105.0ms

Counts
3 → 9
Calls
3 calls:
Slowest
64.0ms
(* x (- 0.954929658551372 (* 0.12900613773279798 (* x x))))
28.0ms
(- 0.954929658551372 (* 0.12900613773279798 (* x x)))
13.0ms
(* 0.12900613773279798 (* x x))

simplify606.0ms

Counts
18 → 46
Calls
18 calls:
Slowest
175.0ms
(+ (* 0.954929658551372 0.954929658551372) (+ (* (* 0.12900613773279798 (* x x)) (* 0.12900613773279798 (* x x))) (* 0.954929658551372 (* 0.12900613773279798 (* x x)))))
53.0ms
(* x (- (* 0.12900613773279798 (* x x))))
48.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
47.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
40.0ms
(* (- (* 0.12900613773279798 (* x x))) x)

prune405.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0b

regimes36.0ms

Accuracy

0% (0.1b remaining)

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

bsearch1.0ms

end0.0ms

sample1.2s

Algorithm
intervals