Pulse function

See impulse.