Average Error: 0.1 → 0
Time: 10.5s
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. Using strategy rm
  3. Applied pow20.1

    \[\leadsto \left(d1 \cdot \left(\left(\left(\left(\left(d1 \cdot \left(d1 \cdot d1\right)\right) \cdot d1\right) \cdot d1\right) \cdot \color{blue}{{d1}^{2}}\right) \cdot d1\right)\right) \cdot d1\]
  4. Applied cube-unmult0.1

    \[\leadsto \left(d1 \cdot \left(\left(\left(\left(\color{blue}{{d1}^{3}} \cdot d1\right) \cdot d1\right) \cdot {d1}^{2}\right) \cdot d1\right)\right) \cdot d1\]
  5. Applied pow-plus0.1

    \[\leadsto \left(d1 \cdot \left(\left(\left(\color{blue}{{d1}^{\left(3 + 1\right)}} \cdot d1\right) \cdot {d1}^{2}\right) \cdot d1\right)\right) \cdot d1\]
  6. Applied pow-plus0.1

    \[\leadsto \left(d1 \cdot \left(\left(\color{blue}{{d1}^{\left(\left(3 + 1\right) + 1\right)}} \cdot {d1}^{2}\right) \cdot d1\right)\right) \cdot d1\]
  7. Applied pow-prod-up0.1

    \[\leadsto \left(d1 \cdot \left(\color{blue}{{d1}^{\left(\left(\left(3 + 1\right) + 1\right) + 2\right)}} \cdot d1\right)\right) \cdot d1\]
  8. Simplified0.1

    \[\leadsto \left(d1 \cdot \left({d1}^{\color{blue}{7}} \cdot d1\right)\right) \cdot d1\]
  9. Taylor expanded around inf 0

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

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

Runtime

Time bar (total: 10.5s)Debug logProfile

start258.0ms

Algorithm
intervals

setup98.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)
0.1b
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))

rewrite35.0ms

Algorithm
rewrite-expression-head
Counts
4 → 44
Calls

4 calls. Slowest were:

22.0ms
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))
7.0ms
(* (* (* d1 (* d1 d1)) d1) d1)
3.0ms
(* (* d1 (* d1 d1)) d1)

series93.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

31.0ms
(* (* (* d1 (* d1 d1)) d1) d1)
28.0ms
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))
20.0ms
(* d1 (* d1 d1))

simplify495.0ms

Counts
18 → 56
Calls

18 calls. Slowest were:

388.0ms
(* (* (* (* (* (* d1 (* d1 d1)) d1) d1) (* (* (* d1 (* d1 d1)) d1) d1)) (* (* (* d1 (* d1 d1)) d1) d1)) (* (* (* d1 d1) (* d1 d1)) (* d1 d1)))
65.0ms
(+ (log (* (* (* d1 (* d1 d1)) d1) d1)) (log (* d1 d1)))
17.0ms
(* (* (* (* d1 (* d1 d1)) d1) d1) (* d1 d1))

prune451.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize12.0ms

Local error

Found 3 expressions with local error:

0.1b
(* (pow d1 7) d1)
0.0b
(* d1 (* (pow d1 7) d1))
0.0b
(* (* d1 (* (pow d1 7) d1)) d1)

rewrite18.0ms

Algorithm
rewrite-expression-head
Counts
3 → 30
Calls

3 calls. Slowest were:

11.0ms
(* (* d1 (* (pow d1 7) d1)) d1)
5.0ms
(* d1 (* (pow d1 7) d1))
2.0ms
(* (pow d1 7) d1)

series90.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

38.0ms
(* (* d1 (* (pow d1 7) d1)) d1)
34.0ms
(* d1 (* (pow d1 7) d1))
18.0ms
(* (pow d1 7) d1)

simplify16.0ms

Counts
11 → 39
Calls

11 calls. Slowest were:

2.0ms
(* (cbrt (pow d1 7)) (cbrt (pow d1 7)))
1.0ms
(sqrt (pow d1 7))
1.0ms
(pow d1 9)

prune272.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
Counts
0 → 0
Calls

0 calls. Slowest were:

series0.0ms

Counts
0 → 0
Calls

0 calls. Slowest were:

simplify0.0ms

Counts
0 → 0
Calls

0 calls. Slowest were:

prune3.0ms

Pruning

1 alts after pruning (0 fresh and 1 done)

Merged error: 0b

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

  :herbie-target
  (pow d1 10)

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