5.2 Inner product (applications)