// Sin returns the sine of x. func Sin(x complex128) complex128 { … } // Sinh returns the hyperbolic sine of x. func Sinh(x complex128) complex128 { … } // Cos returns the cosine of x. func Cos(x complex128) complex128 { … } // Cosh returns the hyperbolic cosine of x. func Cosh(x complex128) complex128 { … } // calculate sinh and cosh. func sinhcosh(x float64) (sh, ch float64) { … }