在python等语言里有双曲函数库和反双曲函数库,但是并没有包含所有的双曲函数。以numpy为例子,numpy只提供了sinh、cosh、tanh、arcsinh、arccosh、arctanh六种函数,那么其余的就需要用公式计算了。
转换公式
对于函数库不能直接计算的,我整理出了计算公式:
coth x = 1 tanh x s e c h x = 1 cosh x c s c h x = 1 sinh x a r c c o t h x = a r c t a n ( 1 x ) a r c s e c h x = a r c c o s ( 1 x ) a r c c s c h x = a r c s e c ( 1 x ) \coth x = \frac1{\tanh x} \\ sech\thinspace x = \frac1{\cosh x} \\ csch\thinspace x = \frac1{\sinh x} \\ arccoth\thinspace x = arctan (\frac1x)\\ arcsech\thinspace x = arccos (\frac1x)\\ arccsch\thinspace x = arcsec(\frac1x) cothx=tanhx1sechx=coshx1cschx=sinhx1arccothx=arctan(x1)arcsechx=arccos(x1)arccschx=arcsec(x1)
导数公式
对双曲函数和反双曲函数求导的公式也非常重要,必须要背诵下来。
d d x ( sinh x ) = cosh x d d x ( cosh x ) = sinh x d d x ( tanh x ) = s e c h 2 x d d x ( coth x ) = − c s c h 2 x d d x ( s e c h x ) = − s e c h x t a n h x d d x ( c s c h x ) = − c s c h x c o t h x \frac{d}{dx}(\sinh x)=\cosh x\\ \frac{d}{dx}(\cosh x)=\sinh x\\ \frac{d}{dx}(\tanh x)=sech^2\thinspace x\\ \frac{d}{dx}(\coth x)=-csch^2\thinspace x\\ \frac{d}{dx}(sech x)= -sech\thinspace x \thinspace tanh\thinspace x\\ \frac{d}{dx}(csch x)= -csch\thinspace x \thinspace cot h\thinspace x\\ dxd(sinhx)=coshxdxd(coshx)=sinhxdxd(tanhx)=sech2xdxd(cothx)=−csc