>>> import numpy as N >>> N.tanh(N.pi*1j/2) 16331778728383844j Is this the desired behavior? (I.e., why doesn't this return N.inf or N.nan?) DG