You will write three functions that read an Ellingham diagram with numbers. A line is a pair (a, b), meaning in kJ per mole of oxygen gas.
The idea. A reducer works on an oxide when its line lies below the oxide's line at that temperature. Two lines cross where .
Your tasks.
dg(line, T).crossing(line1, line2). It returns the temperature where the two lines meet.can_reduce(reducer, oxide, T). It returns True when the reducer's line is lower than the oxide's line at T.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…