Average Error: 0.2 → 0.1
Time: 5.0s
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 - 0.12900613773279798 \cdot {x}^{3}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[0.954929658551372 \cdot x - 0.12900613773279798 \cdot \left(\left(x \cdot x\right) \cdot x\right)\]
  2. Taylor expanded around -inf 0.1

    \[\leadsto \color{blue}{0.954929658551372 \cdot x - 0.12900613773279798 \cdot {x}^{3}}\]
  3. Final simplification0.1

    \[\leadsto 0.954929658551372 \cdot x - 0.12900613773279798 \cdot {x}^{3}\]

Reproduce

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

Details

Time bar (total: 4.7s)Debug log

sample247.0ms

Algorithm
intervals

simplify53.0ms

Counts
1 → 1
Calls

1 calls. Slowest were:

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

prune6.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.1b

localize44.0ms

Local error

Found 3 expressions with local error:

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

rewrite18.0ms

Algorithm
rewrite-expression-head
Counts
3 → 32
Calls

3 calls. Slowest were:

7.0ms
(* (* x x) x)
5.0ms
(* 0.12900613773279798 (* (* x x) x))
4.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))

series110.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

72.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (* (* x x) x)))
21.0ms
(* (* x x) x)
16.0ms
(* 0.12900613773279798 (* (* x x) x))

simplify288.0ms

Counts
10 → 41
Calls

10 calls. Slowest were:

109.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* 0.12900613773279798 (* (* x x) x))))
56.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
42.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))

prune257.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

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

rewrite4.0ms

Algorithm
rewrite-expression-head
Counts
2 → 25
Calls

2 calls. Slowest were:

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

series77.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

62.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
16.0ms
(* 0.12900613773279798 (pow x 3))

simplify208.0ms

Counts
11 → 31
Calls

11 calls. Slowest were:

83.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* 0.12900613773279798 (pow x 3))))
33.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
32.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))

prune202.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

localize9.0ms

Local error

Found 2 expressions with local error:

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

rewrite13.0ms

Algorithm
rewrite-expression-head
Counts
2 → 25
Calls

2 calls. Slowest were:

7.0ms
(* (* 0.12900613773279798 x) (* x x))
5.0ms
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 x) (* x x)))

series85.0ms

Counts
2 → 6
Calls

2 calls. Slowest were:

58.0ms
(- (* 0.954929658551372 x) (* (* 0.12900613773279798 x) (* x x)))
27.0ms
(* (* 0.12900613773279798 x) (* x x))

simplify720.0ms

Counts
10 → 31
Calls

10 calls. Slowest were:

396.0ms
(* (* (* (* 0.12900613773279798 x) (* 0.12900613773279798 x)) (* 0.12900613773279798 x)) (* (* (* x x) (* x x)) (* x x)))
119.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* (* 0.12900613773279798 x) (* x x))))
61.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))

prune243.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.0b

localize8.0ms

Local error

Found 3 expressions with local error:

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

rewrite19.0ms

Algorithm
rewrite-expression-head
Counts
3 → 31
Calls

3 calls. Slowest were:

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

series90.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

59.0ms
(- (* 0.954929658551372 x) (* (* (* 0.12900613773279798 x) x) x))
20.0ms
(* (* (* 0.12900613773279798 x) x) x)
11.0ms
(* (* 0.12900613773279798 x) x)

simplify311.0ms

Counts
12 → 40
Calls

12 calls. Slowest were:

89.0ms
(/ (exp (* 0.954929658551372 x)) (exp (* (* (* 0.12900613773279798 x) x) x)))
64.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))
46.0ms
(- (* 0.954929658551372 x) (* 0.12900613773279798 (pow x 3)))

prune259.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

regimes40.0ms

Accuracy

0% (0.1b remaining)

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

bsearch2.0ms

end0.0ms

sample1.4s

Algorithm
intervals