The general wavefunction for a particle under uniform force