function tanh(a) b = exp(a) c = 1.0/b tanh = (b-c)/(b+c) return end