Verifying Bernoulli's energy equation