Average Error: 1.0 → 1.0
Time: 3.9s
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 1.0

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

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

Reproduce

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