f(x) = tanh(x)
List<double> tanh(List<double> val) { val.asMap().forEach((i, v) => val[i] = mathutils.tanh(val[i])); return val; }