EI EI Exponential Integral Function Usage Computes the exponential integral function for real arguments. The ei function takes only a single argument y = ei(x) where x is either a float or double array. The output vector y is the same size (and type) as x.