pub fn tanh_rrule<S: ScalarAd>(result: S, cotangent: S) -> S
Reverse rule for tanh.
tanh
Takes the forward result tanh(x), not the input x.
tanh(x)
x