Initial attempt at qwt5 formula