Average Error: 0.5 → 0.5
Time: 3.6s
Precision: binary64
\[\frac{{c}^{h}}{{c}^{h} + {k}^{h}}\]
\[\frac{{c}^{h}}{{c}^{h} + {k}^{h}}\]
\frac{{c}^{h}}{{c}^{h} + {k}^{h}}
\frac{{c}^{h}}{{c}^{h} + {k}^{h}}
double code(double c, double h, double k) {
	return ((double) (((double) pow(c, h)) / ((double) (((double) pow(c, h)) + ((double) pow(k, h))))));
}
double code(double c, double h, double k) {
	return ((double) (((double) pow(c, h)) / ((double) (((double) pow(c, h)) + ((double) pow(k, h))))));
}

Error

Bits error versus c

Bits error versus h

Bits error versus k

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.5

    \[\frac{{c}^{h}}{{c}^{h} + {k}^{h}}\]
  2. Final simplification0.5

    \[\leadsto \frac{{c}^{h}}{{c}^{h} + {k}^{h}}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (c h k)
  :name "(/ (pow c h) (+ (pow c h) (pow k h)))"
  :precision binary64
  (/ (pow c h) (+ (pow c h) (pow k h))))