A Spanish scientist has developed an equation that describes the dynamics of cats' movements near humans.