## -*- texinfo -*-
## @deftypefn {Function File} {}@var{a} = dlogsig (@var{n})
## @code{logsig} is the derivative of the non-linear transfer function logsig used to train
## neural networks.
## This function can be used in newff(...) to create a new feed forward
## multi-layer neural network.
##
## @end deftypefn

## @seealso{logsig,tansig}

## Author: Mithil Leua


function a = dlogsigm(n)

tmp = 1./(1+exp(-n));
a = tmp*(1-tmp);

endfunction
