Average Error: 0.1 → 0
Time: 4.4s
Precision: 64
Internal Precision: 128
\[\left(d1 \cdot \left(\left(\left(\left(\left(d1 \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right) \cdot d1\right) \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right)\right) \cdot d1\]
\[{d1}^{10}\]

Error

Bits error versus d1

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.1
Target0
Herbie0
\[{d1}^{10}\]

Derivation

  1. Initial program 0.1

    \[\left(d1 \cdot \left(\left(\left(\left(\left(d1 \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right) \cdot d1\right) \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right)\right) \cdot d1\]
  2. Taylor expanded around inf 0.1

    \[\leadsto \color{blue}{{d1}^{9}} \cdot d1\]
  3. Taylor expanded around 0 0

    \[\leadsto \color{blue}{{d1}^{10}}\]
  4. Final simplification0

    \[\leadsto {d1}^{10}\]

Reproduce

herbie shell --seed 2019022 
(FPCore (d1)
  :name "FastMath test5"

  :herbie-target
  (pow d1 10)

  (* (* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1)) d1))

Details

Time bar (total: 4.2s)Debug log

sample87.0ms

Algorithm
intervals
Results
74.0ms440×body80valid

simplify80.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
80.0ms
(* (* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1)) d1)

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.1b

localize21.0ms

Local error

Found 4 expressions with local error:

0.1b
(* d1 (* d1 d1))
0.1b
(* (* d1 (* d1 d1)) d1)
0.1b
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))
0.1b
(* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1))

rewrite79.0ms

Algorithm
rewrite-expression-head
Rules
add-exp-log
add-cbrt-cube
pow1
add-log-exp
add-cube-cbrt
*-commutative
*-un-lft-identity
add-sqr-sqrt
associate-*r*
cube-unmult
pow-plus
associate-*l*
cbrt-unprod
pow-prod-up
prod-exp
pow-prod-down
pow2
Counts
4 → 43
Calls
4 calls:
Slowest
43.0ms
(* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1))
31.0ms
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))
3.0ms
(* (* d1 (* d1 d1)) d1)
1.0ms
(* d1 (* d1 d1))

series117.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
39.0ms
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))
38.0ms
(* d1 (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1)) d1))
22.0ms
(* (* d1 (* d1 d1)) d1)
17.0ms
(* d1 (* d1 d1))

simplify476.0ms

Counts
17 → 55
Calls
17 calls:
Slowest
357.0ms
(* (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* (* (* d1 (* d1 d1)) d1) d1)) (* (* (* d1 (* d1 d1)) d1) d1)) (* (* (* d1 d1) (* d1 d1)) (* d1 d1)))
56.0ms
(+ (log (* (* (* d1 (* d1 d1)) d1) d1)) (log (* d1 d1)))
25.0ms
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))
11.0ms
(* (* d1 (* d1 d1)) d1)
9.0ms
(+ (+ (+ 3 1) 1) 2)

prune398.0ms

Pruning

3 alts after pruning (3 fresh and 0 done)

Merged error: 0.0b

localize11.0ms

Local error

Found 1 expressions with local error:

0.1b
(* (pow d1 9) d1)

rewrite4.0ms

Algorithm
rewrite-expression-head
Rules
associate-*l*
add-cube-cbrt
*-un-lft-identity
add-sqr-sqrt
add-log-exp
*-commutative
add-exp-log
add-cbrt-cube
pow-plus
pow1
Counts
1 → 12
Calls
1 calls:
Slowest
4.0ms
(* (pow d1 9) d1)

series37.0ms

Counts
1 → 3
Calls
1 calls:
Slowest
37.0ms
(* (pow d1 9) d1)

simplify8.0ms

Counts
5 → 15
Calls
5 calls:
Slowest
2.0ms
(* (cbrt (pow d1 9)) (cbrt (pow d1 9)))
1.0ms
(sqrt (pow d1 9))
1.0ms
(pow d1 10)
1.0ms
(pow d1 10)
1.0ms
(pow d1 10)

prune83.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0b

localize3.0ms

Local error

Found 0 expressions with local error:

rewrite0.0ms

Algorithm
rewrite-expression-head
Rules
Counts
0 → 0
Calls
0 calls:
Slowest

series0.0ms

Counts
0 → 0
Calls
0 calls:
Slowest

simplify0.0ms

Counts
0 → 0
Calls
0 calls:
Slowest

prune2.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

end0.0ms

sample2.8s

Algorithm
intervals
Results
2.6s14439×body80valid