Changed exp to pow

exp is wrong; ought to use pow instead for exponentials.