quick and easy calculate a bunch of optical functions