Sir Hermann Bondi , an astronomer and mathematician whose ideas about cosmology shaped an important theory about the origin of the universe , and who later became a leading science adviser to the British government , died last Saturday in Cambridge , England .