Javascript ~ sinh cosh

function cosh(arg)
{
    return (Math.exp(arg) + Math.exp(-arg))/2;
}

function sinh(arg)
{
    return (Math.exp(arg) - Math.exp(-arg))/2;
}



http://phpjs.org/functions/sinh:516

http://phpjs.org/functions/cosh:374

沒有留言: