Simulation of a hydrogen atom in a laser field using the time-dependent variational principle.