A simple formula for calculating quantal expectation values without the use of wave functions