* The first derivative of sinh(x) is cosh(x), so the absolute error
* in the result is cosh(x)*errx, and the relative error is coth(x)*errx = errx/tanh(x)
*/
//double eps = Math.tanh(x.doubleValue()); // removed by l.bruninx, 2012-03-19
//MathContext mc = new MathContext(err2prec(0.5 * x.ulp().doubleValue() / eps)); // removed by l.bruninx, 2012-03-19
return resul.round(mc);
}
else {
BigDecimal xhighpr = scalePrec(x, 2);
/* Simple Taylor expansion, sum_{i=0..infinity} x^(2i+1)/(2i+1)! */
BigDecimal resul = xhighpr;