powered by
Calculate the gradient of tanh(x) with respect to x.
tanh(x)
x
numeric vector or array, value of x.
numeric vector or array, value of tanh(x).
numeric vector or array, gradient of x.
numeric vector or array, gradient of the operation.