Average Error: 34.1 → 34.1
Time: 30.4s
Precision: 64
Internal Precision: 128
\[\left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)\]
\[e^{\sqrt[3]{\left(\sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right) \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}} \cdot \left(\sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right)}\]

Error

Bits error versus a

Bits error versus c

Derivation

  1. Initial program 34.1

    \[\left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)\]
  2. Using strategy rm
  3. Applied add-exp-log34.1

    \[\leadsto \color{blue}{e^{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}}\]
  4. Using strategy rm
  5. Applied add-cube-cbrt34.1

    \[\leadsto e^{\color{blue}{\left(\sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right) \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}}}\]
  6. Using strategy rm
  7. Applied add-cube-cbrt34.1

    \[\leadsto e^{\left(\sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right) \cdot \sqrt[3]{\color{blue}{\left(\sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right) \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}}}}\]
  8. Final simplification34.1

    \[\leadsto e^{\sqrt[3]{\left(\sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right) \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}} \cdot \left(\sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt[3]{\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right)}\]

Reproduce

herbie shell --seed 2019016 
(FPCore (a c)
  :name "Random Jason Timeout Test 004"
  (fmod (cosh c) (log1p a)))

Details

Time bar (total: 27.8s)Debug log

sample786.0ms

Algorithm
intervals
Results
699×(pre true 80)
243×(body exit 10240)
200×(body nan 80)
91×(body real 80)
67×(body real 1280)
54×(body real 640)
22×(body real 320)
16×(body real 160)
(body real 2560)
(body real 5120)

simplify8.0ms

Counts
1 → 1
Calls
1 calls:
Slowest
8.0ms
(fmod (cosh c) (log1p a))

prune7.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 33.8b

localize12.0ms

Local error

Found 1 expressions with local error:

38.2b
(fmod (cosh c) (log1p a))

rewrite4.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
Counts
1 → 7
Calls
1 calls:
Slowest
1.0ms
(fmod (cosh c) (log1p a))

series16.0ms

Counts
1 → 3
Calls
1 calls:
Slowest
15.0ms
(fmod (cosh c) (log1p a))

simplify15.0ms

Counts
3 → 10
Calls
3 calls:
Slowest
5.0ms
(fmod (cosh c) (log1p a))
5.0ms
(fmod (cosh c) (log1p a))
5.0ms
(fmod (cosh c) (log1p a))

prune175.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 33.8b

localize11.0ms

Local error

Found 3 expressions with local error:

38.2b
(fmod (cosh c) (log1p a))
0.9b
(log (fmod (cosh c) (log1p a)))
0.5b
(exp (log (fmod (cosh c) (log1p a))))

rewrite8.0ms

Algorithm
rewrite-expression-head
Rules
add-cube-cbrt
*-un-lft-identity
log-prod
add-sqr-sqrt
pow1
add-exp-log
exp-prod
add-log-exp
exp-sum
add-cbrt-cube
log-pow
rem-exp-log
rem-log-exp
Counts
3 → 34
Calls
3 calls:
Slowest
4.0ms
(exp (log (fmod (cosh c) (log1p a))))
3.0ms
(log (fmod (cosh c) (log1p a)))
0.0ms
(fmod (cosh c) (log1p a))

series43.0ms

Counts
3 → 9
Calls
3 calls:
Slowest
34.0ms
(log (fmod (cosh c) (log1p a)))
5.0ms
(exp (log (fmod (cosh c) (log1p a))))
5.0ms
(fmod (cosh c) (log1p a))

simplify167.0ms

Counts
21 → 43
Calls
21 calls:
Slowest
23.0ms
(exp (log (* (cbrt (fmod (cosh c) (log1p a))) (cbrt (fmod (cosh c) (log1p a))))))
18.0ms
(log (* (cbrt (fmod (cosh c) (log1p a))) (cbrt (fmod (cosh c) (log1p a)))))
18.0ms
(exp (* (cbrt (log (fmod (cosh c) (log1p a)))) (cbrt (log (fmod (cosh c) (log1p a))))))
16.0ms
(exp (log (sqrt (fmod (cosh c) (log1p a)))))
15.0ms
(exp (sqrt (log (fmod (cosh c) (log1p a)))))

prune500.0ms

Pruning

15 alts after pruning (14 fresh and 1 done)

Merged error: 33.8b

localize12.0ms

Local error

Found 4 expressions with local error:

38.2b
(fmod (cosh c) (log1p a))
38.2b
(fmod (cosh c) (log1p a))
38.2b
(fmod (cosh c) (log1p a))
0.9b
(log (fmod (cosh c) (log1p a)))

rewrite2.0ms

Algorithm
rewrite-expression-head
Rules
add-cube-cbrt
add-exp-log
*-un-lft-identity
pow1
add-sqr-sqrt
add-log-exp
add-cbrt-cube
log-prod
log-pow
rem-log-exp
Counts
4 → 33
Calls
4 calls:
Slowest
1.0ms
(log (fmod (cosh c) (log1p a)))
0.0ms
(fmod (cosh c) (log1p a))
0.0ms
(fmod (cosh c) (log1p a))
0.0ms
(fmod (cosh c) (log1p a))

series26.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
19.0ms
(log (fmod (cosh c) (log1p a)))
3.0ms
(fmod (cosh c) (log1p a))
2.0ms
(fmod (cosh c) (log1p a))
2.0ms
(fmod (cosh c) (log1p a))

simplify67.0ms

Counts
16 → 45
Calls
16 calls:
Slowest
17.0ms
(log (sqrt (fmod (cosh c) (log1p a))))
9.0ms
(log (* (cbrt (fmod (cosh c) (log1p a))) (cbrt (fmod (cosh c) (log1p a)))))
5.0ms
(log (fmod (cosh c) (log1p a)))
4.0ms
(log (fmod (cosh c) (log1p a)))
4.0ms
(log (fmod (cosh c) (log1p a)))

prune861.0ms

Pruning

17 alts after pruning (16 fresh and 1 done)

Merged error: 33.8b

localize13.0ms

Local error

Found 4 expressions with local error:

38.2b
(fmod (cosh c) (log1p a))
38.2b
(fmod (cosh c) (log1p a))
38.2b
(fmod (cosh c) (log1p a))
38.2b
(fmod (cosh c) (log1p a))

rewrite1.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
Counts
4 → 28
Calls
4 calls:
Slowest
0.0ms
(fmod (cosh c) (log1p a))
0.0ms
(fmod (cosh c) (log1p a))
0.0ms
(fmod (cosh c) (log1p a))
0.0ms
(fmod (cosh c) (log1p a))

series10.0ms

Counts
4 → 12
Calls
4 calls:
Slowest
3.0ms
(fmod (cosh c) (log1p a))
2.0ms
(fmod (cosh c) (log1p a))
2.0ms
(fmod (cosh c) (log1p a))
2.0ms
(fmod (cosh c) (log1p a))

simplify40.0ms

Counts
12 → 40
Calls
12 calls:
Slowest
5.0ms
(fmod (cosh c) (log1p a))
5.0ms
(fmod (cosh c) (log1p a))
4.0ms
(fmod (cosh c) (log1p a))
4.0ms
(fmod (cosh c) (log1p a))
3.0ms
(fmod (cosh c) (log1p a))

prune625.0ms

Pruning

18 alts after pruning (16 fresh and 2 done)

Merged error: 33.8b

regimes830.0ms

Accuracy

0% (0.0b remaining)

Error of 34.1b against oracle of 34.0b and baseline of 34.1b

bsearch2.0ms

end0.0ms

sample23.5s

Algorithm
intervals
Results
21228×(pre true 80)
7918×(body exit 10240)
5310×(body nan 80)
2791×(body real 80)
2295×(body real 1280)
1628×(body real 640)
715×(body real 320)
398×(body real 160)
164×(body real 2560)
(body real 5120)