tanh#

static vectorious.tanh(x)#

Returns the hyperbolic tangent of each element of x.

Arguments:
Returns:

NDArray

Examples:

import { tanh } from 'vectorious/core/tanh';

tanh([1, 2, 3]); // => array([0.7615941762924194, 0.9640275835990906, 0.9950547814369202])