Hyperbolic Tangent Activation Function - Coding problem | OneNoughtOne