A simple model of the thyroid uses levels where 1 is the normal level. TSH falls as the thyroid hormone rises. The thyroid makes hormone in proportion to TSH and to its capacity, and a little hormone is cleared at every step. You will build the loop and find where it settles.
The idea. A negative feedback loop settles at a steady level. A smaller capacity, as in a lack of iodine, settles at a lower hormone level and a higher TSH.
Your tasks.
tsh_from. It gives TSH as divided by .step. The thyroid makes capacity * tsh. The new level is the old level plus times the difference between the amount made and the old level.settle. It starts at a level of , applies step times and gives the final level.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…