the women bobbed a curtsey as he walked by , creating a rather nice sine wave effect which the greatest mathematician on the disc , had he not at this moment been occupied by being hit with a stick and shouted at by a small man wearing what appeared to be a nightshirt , might well have appreciated .