Average Error: 34.2 → 34.3
Time: 15.2s
Precision: 64
\[\left(\left(\cosh c\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)\]
\[\left(\sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt[3]{\sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}}\right) \cdot \sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}\]
\left(\left(\cosh c\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)
\left(\sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt[3]{\sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}}\right) \cdot \sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}
double code(double a, double c) {
	return fmod(cosh(c), log1p(a));
}
double code(double a, double c) {
	return ((cbrt(fmod((pow(cbrt(sqrt(cosh(c))), 4.0) * (cbrt(sqrt(cosh(c))) * cbrt(sqrt(cosh(c))))), log1p(a))) * cbrt((sqrt(fmod((pow(cbrt(sqrt(cosh(c))), 4.0) * (cbrt(sqrt(cosh(c))) * cbrt(sqrt(cosh(c))))), log1p(a))) * sqrt(fmod((pow(cbrt(sqrt(cosh(c))), 4.0) * (cbrt(sqrt(cosh(c))) * cbrt(sqrt(cosh(c))))), log1p(a)))))) * cbrt(fmod((pow(cbrt(sqrt(cosh(c))), 4.0) * (cbrt(sqrt(cosh(c))) * cbrt(sqrt(cosh(c))))), log1p(a))));
}

Error

Bits error versus a

Bits error versus c

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 34.2

    \[\left(\left(\cosh c\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt34.2

    \[\leadsto \left(\color{blue}{\left(\sqrt{\cosh c} \cdot \sqrt{\cosh c}\right)} \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)\]
  4. Using strategy rm
  5. Applied add-cube-cbrt34.2

    \[\leadsto \left(\left(\sqrt{\cosh c} \cdot \color{blue}{\left(\left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right) \cdot \sqrt[3]{\sqrt{\cosh c}}\right)}\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)\]
  6. Applied add-cube-cbrt34.3

    \[\leadsto \left(\left(\color{blue}{\left(\left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right) \cdot \sqrt[3]{\sqrt{\cosh c}}\right)} \cdot \left(\left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right) \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)\]
  7. Applied swap-sqr34.3

    \[\leadsto \left(\color{blue}{\left(\left(\left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right) \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right)} \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)\]
  8. Simplified34.3

    \[\leadsto \left(\left(\color{blue}{{\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4}} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)\]
  9. Using strategy rm
  10. Applied add-cube-cbrt34.3

    \[\leadsto \color{blue}{\left(\sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}\right) \cdot \sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}}\]
  11. Using strategy rm
  12. Applied add-sqr-sqrt34.3

    \[\leadsto \left(\sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt[3]{\color{blue}{\sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}}}\right) \cdot \sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}\]
  13. Final simplification34.3

    \[\leadsto \left(\sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt[3]{\sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)} \cdot \sqrt{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}}\right) \cdot \sqrt[3]{\left(\left({\left(\sqrt[3]{\sqrt{\cosh c}}\right)}^{4} \cdot \left(\sqrt[3]{\sqrt{\cosh c}} \cdot \sqrt[3]{\sqrt{\cosh c}}\right)\right) \bmod \left(\mathsf{log1p}\left(a\right)\right)\right)}\]

Reproduce

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