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

Error

Bits error versus a

Bits error versus c

Derivation

  1. Initial program 34.3

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

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

    \[\leadsto e^{\log \color{blue}{\left({\left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}^{1}\right)}}\]
  6. Applied log-pow34.3

    \[\leadsto e^{\color{blue}{1 \cdot \log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}}\]
  7. Applied exp-prod34.3

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

    \[\leadsto {\color{blue}{e}}^{\left(\log \left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)\right)}\]
  9. Using strategy rm
  10. Applied add-sqr-sqrt34.3

    \[\leadsto {e}^{\left(\log \color{blue}{\left(\sqrt{\left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)} \cdot \sqrt{\left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right)}\right)}\]
  11. Applied log-prod34.3

    \[\leadsto {e}^{\color{blue}{\left(\log \left(\sqrt{\left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right) + \log \left(\sqrt{\left(\left(\cosh c\right) \bmod \left(\log_* (1 + a)\right)\right)}\right)\right)}}\]
  12. Applied unpow-prod-up34.3

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

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

Reproduce

herbie shell --seed 2018365 +o rules:numerics
(FPCore (a c)
  :name "Random Jason Timeout Test 004"
  (fmod (cosh c) (log1p a)))

Details

Time bar (total: 5.4s)Debug log

start890.0ms

Algorithm
intervals

setup26.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 32.9b

localize31.0ms

Local error

Found 1 expressions with local error:

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

rewrite4.0ms

Algorithm
rewrite-expression-head
Counts
1 → 9
Calls

1 calls. Slowest were:

1.0ms
(fmod (cosh c) (log1p a))

series16.0ms

Counts
1 → 3
Calls

1 calls. Slowest were:

15.0ms
(fmod (cosh c) (log1p a))

simplify16.0ms

Counts
3 → 12
Calls

3 calls. Slowest were:

5.0ms
(fmod (cosh c) (log1p a))
5.0ms
(fmod (cosh c) (log1p a))
5.0ms
(fmod (cosh c) (log1p a))

prune188.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 32.8b

localize8.0ms

Local error

Found 3 expressions with local error:

37.4b
(fmod (cosh c) (log1p a))
0.5b
(log (fmod (cosh c) (log1p a)))
0.5b
(exp (log (fmod (cosh c) (log1p a))))

rewrite9.0ms

Algorithm
rewrite-expression-head
Counts
3 → 40
Calls

3 calls. Slowest were:

5.0ms
(exp (log (fmod (cosh c) (log1p a))))
3.0ms
(log (fmod (cosh c) (log1p a)))
0.0ms
(fmod (cosh c) (log1p a))

series34.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

27.0ms
(log (fmod (cosh c) (log1p a)))
5.0ms
(fmod (cosh c) (log1p a))
2.0ms
(exp (log (fmod (cosh c) (log1p a))))

simplify129.0ms

Counts
21 → 49
Calls

21 calls. Slowest were:

20.0ms
(exp (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 (sqrt (log (fmod (cosh c) (log1p a)))))

prune598.0ms

Pruning

15 alts after pruning (15 fresh and 0 done)

Merged error: 32.8b

localize4.0ms

Local error

Found 3 expressions with local error:

37.4b
(fmod (cosh c) (log1p a))
0.6b
(pow E (log (fmod (cosh c) (log1p a))))
0.5b
(log (fmod (cosh c) (log1p a)))

rewrite3.0ms

Algorithm
rewrite-expression-head
Counts
3 → 40
Calls

3 calls. Slowest were:

1.0ms
(pow E (log (fmod (cosh c) (log1p a))))
1.0ms
(log (fmod (cosh c) (log1p a)))
0.0ms
(fmod (cosh c) (log1p a))

series90.0ms

Counts
3 → 9
Calls

3 calls. Slowest were:

69.0ms
(pow E (log (fmod (cosh c) (log1p a))))
18.0ms
(log (fmod (cosh c) (log1p a)))
3.0ms
(fmod (cosh c) (log1p a))

simplify173.0ms

Counts
20 → 49
Calls

20 calls. Slowest were:

19.0ms
(log (* (cbrt (fmod (cosh c) (log1p a))) (cbrt (fmod (cosh c) (log1p a)))))
15.0ms
(log (sqrt (fmod (cosh c) (log1p a))))
14.0ms
(sqrt (log (fmod (cosh c) (log1p a))))

prune671.0ms

Pruning

22 alts after pruning (22 fresh and 0 done)

Merged error: 32.8b

localize26.0ms

Local error

Found 4 expressions with local error:

37.4b
(fmod (cosh c) (log1p a))
37.4b
(fmod (cosh c) (log1p a))
0.5b
(log (sqrt (fmod (cosh c) (log1p a))))
0.5b
(log (sqrt (fmod (cosh c) (log1p a))))

rewrite7.0ms

Algorithm
rewrite-expression-head
Counts
4 → 54
Calls

4 calls. Slowest were:

3.0ms
(log (sqrt (fmod (cosh c) (log1p a))))
2.0ms
(log (sqrt (fmod (cosh c) (log1p a))))
0.0ms
(fmod (cosh c) (log1p a))

series93.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

44.0ms
(log (sqrt (fmod (cosh c) (log1p a))))
40.0ms
(log (sqrt (fmod (cosh c) (log1p a))))
5.0ms
(fmod (cosh c) (log1p a))
4.0ms
(fmod (cosh c) (log1p a))

simplify218.0ms

Counts
26 → 66
Calls

26 calls. Slowest were:

16.0ms
(log (* (cbrt (sqrt (fmod (cosh c) (log1p a)))) (cbrt (sqrt (fmod (cosh c) (log1p a))))))
16.0ms
(log (sqrt (* (cbrt (fmod (cosh c) (log1p a))) (cbrt (fmod (cosh c) (log1p a))))))
15.0ms
(log (sqrt (sqrt (fmod (cosh c) (log1p a)))))

prune1.2s

Pruning

26 alts after pruning (25 fresh and 1 done)

Merged error: 32.8b

regimes954.0ms

Accuracy

0% (0.0b remaining)

Error of 34.3b against oracle of 34.3b and baseline of 34.3b

bsearch2.0ms