Mathematical modeling of recipe