Average Error: 0.8 → 0.8
Time: 4.0s
Precision: binary64
\[\frac{\sinh \left(k \cdot \left(1 - x\right)\right)}{\sinh k}\]
\[\frac{\sinh \left(k \cdot \left(1 - x\right)\right)}{\sinh k}\]
\frac{\sinh \left(k \cdot \left(1 - x\right)\right)}{\sinh k}
\frac{\sinh \left(k \cdot \left(1 - x\right)\right)}{\sinh k}
double code(double k, double x) {
	return ((double) (((double) sinh(((double) (k * ((double) (1.0 - x)))))) / ((double) sinh(k))));
}
double code(double k, double x) {
	return ((double) (((double) sinh(((double) (k * ((double) (1.0 - x)))))) / ((double) sinh(k))));
}

Error

Bits error versus k

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.8

    \[\frac{\sinh \left(k \cdot \left(1 - x\right)\right)}{\sinh k}\]
  2. Final simplification0.8

    \[\leadsto \frac{\sinh \left(k \cdot \left(1 - x\right)\right)}{\sinh k}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (k x)
  :name "(/ (sinh (* k (- 1 x))) (sinh k))"
  :precision binary64
  (/ (sinh (* k (- 1.0 x))) (sinh k)))