def f1(x,returntype=LINALGMAXFLOAT): ''' Fist derivative of sigmoid ''' x = np.float128(x) return sexp(\ -np.logaddexp(ZERO128,-x)\ -np.logaddexp(ZERO128,x), returntype=returntype)