function f = normdens(x)
% f = normdens(x) calculates the density of X at x, X is N(0,1) random variable.
%      
%  f(x) = 1/sqrt(2*pi)* e^(-(x^2)/2).
%

% Written by Ulf Brannlund, April 23, 1993

f = 1/sqrt(2*pi)* exp(-(x.^2)/2);
