Computing hyperbolic tangent and sigmoid functions using stochastic logic | IEEE Conference Publication | IEEE Xplore