Food and Sun: Wolfram Language Recipe Graphs for the Solar Eclipse
At Wolfram Research, we are excited for the April 8 total solar eclipse and plan to observe this extraordinary event in several ways. Read about the science and math of this rare phenomenon in Stephen Wolfram’s new book, Predicting the Eclipse: A Multimillennium Tale of Computation, and then find eclipse specifics for your location with the Wolfram precision eclipse website. Now that you know why and where, prepare for your upcoming watch party with these Sun-related recipes using two new functions from the Wolfram Function Repository: RecipeGraph and NutrientComparisonBarChart.
RecipeGraph relies on a large language model (LLM) to help create a graph of the ingredients and instructions for a recipe. The recipe ingredients and instructions form the vertices of the graph. The edges (lines connecting the vertices) represent the flow of the preparation and cooking process. Each ingredient connects to the instruction in which it is used. NutrientComparisonBarChart creates a dual bar chart comparing the calories and macronutrients (protein, carbohydrates, fat and fiber) in a list of foods.