In the past we've been told how to make the perfect cup of tea or toast. Next, roast potatoes. Some swear by the sort of fat and temperature they have to be cooked at. But now some mathematicians and catering students reckon they've cracked it. Hannah Pettifer explains.