Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

SCIENCE · INVESTIGATE AND EXPLAIN

Compare gain without assuming bigger is better

Use nominal and offset cases to distinguish tracking, clipping and persistent error.

Learning outcome: Evaluate a gain change against separate time, temperature and energy evidence without claiming universal stability.

Starting recap

Gain multiplies sensed temperature error in kelvin to obtain a power contribution in watts.

All lessons are open directly. Your saved experiments remain when you leave and return.

Try

Nominal gain 2 ends near 29.766°C; gain 12 ends near 30°C but briefly exceeds the target.

Open the experiment

Predict

Predict whether gains 2, 6 and 12 produce different first-interval applied powers when starting at 20°C.

Experiment

Capture nominal gains 2 and 12, then compare the same gains under +2°C offset. Retain all temperature criteria and applied energy, not just final closeness to target.

Test a sampled thermal controller

Worked teaching model · synthetic values · Original fictional one-node device and assigned costs. Uniform temperature, constant heat capacity/conductance/ambient, held heater input and exact exponential propagation within each sample. No spatial gradient, evaporation, radiation law, random noise, active cooling, integral control or physical safety/efficiency/reliability certification. Public cases are exposed teaching practice. Standard hardware and zero correction are fixed; a/b select gain and scenario.

Reset keeps your prediction, captures and practice history.

Trace the observation before judging the controller

Active scenario: Nominal; matched nominal reference uses the same gain, 6 W/K. Both use standard hardware: heat capacity 100 J/K, conductance 1 W/K, initial and ambient temperature 20°C, target 30°C, cost 3 assigned tokens, and twelve 10-second intervals. Correction is fixed at zero.

  1. 1. Select an observationAt command time t, request true temperature at t − 0 s. Negative requested times use the held initial 20°C state at effective time 0; they are not measured negative-time samples.
  2. 2. Form the indication and requestAdd sensor bias 0°C; subtract zero correction. Raw and corrected indications therefore coincide, but can differ from current true temperature. Request 10 W + 6 W/K × (30°C − indication).
  3. 3. Limit and evolveClip requested power to 0–20 W, hold it for 10 s, then propagate the exact one-node thermal model. Zero power is passive cooling toward ambient, not active cooling.

The 10 W feedforward term is fixed, not integral control. A temperature difference of one degree Celsius equals one kelvin. Sensor bias changes the information used by the controller; it does not directly add heat. Delay changes which earlier state is read; clipping changes actual delivered power.

Delay timeline: read the requested and effective times in every command receipt below. In the delayed scenario, commands at 0, 10 and 20 s request −20, −10 and 0 s respectively; all use the initial state. At 30 s the request uses the state at 10 s. Commands occur at 0–110 s; the final true state at 120 s has no new sensor command.

Original fictional one-node device and assigned costs. Uniform temperature, constant heat capacity/conductance/ambient, held heater input and exact exponential propagation within each sample. No spatial gradient, evaporation, radiation law, random noise, active cooling, integral control or physical safety/efficiency/reliability certification. Public cases are exposed teaching practice.

Temperature comparison · fixed axes: 0–120 s and 15–45°C
152025303540450306090120Temperature (°C)Elapsed time (s)

Solid navy: active Nominal true temperature. Long-dashed brown: nominal true temperature at the same gain. Dotted red with circles: active raw and corrected indication at command times. Gray dashes: 30°C target. Pale band: 29–31°C criterion range, required only from 90 s onward.

Lines connect sampled states for comparison; they are not the exact curved path between samples. Indication points are plotted at the time the controller uses them, not the earlier observation time. They can differ from current true temperature; there is no terminal command at 120 s. In the nominal scenario the two true traces coincide.

Active and nominal applied heater power · fixed axes: 0–120 s and 0–20 W
051015200306090120Applied power (W)Elapsed time (s)

Solid navy: active applied power; long-dashed brown: nominal applied power; gray dotted line: active 20 W actuator ceiling. Horizontal segments are held inputs, not a smooth ramp. Requested power is tabulated rather than plotted on the applied-power scale. At least one request is outside 0–20 W; the actuator limits it.

Separate requirements at the same gain and hardware; only the operating scenario differs; judgments use full model precision
Supplied requirementActive NominalNominal reference
Temperature at 90, 100, 110 and 120 s: every value in [29,31]°C29.964, 29.988, 29.996, 29.999 °C
Meets supplied criterion
29.964, 29.988, 29.996, 29.999 °C
Meets supplied criterion
True trajectory peak ≤32°C29.999°C at 120 s
Meets supplied criterion
29.999°C at 120 s
Meets supplied criterion
Applied heater energy ≤2000 J1887.809 J
Meets supplied criterion
1887.809 J
Meets supplied criterion
Resource cost ≤6 tokens3 tokens
Meets supplied criterion
3 tokens
Meets supplied criterion
All four supplied requirementsAll met in this model runAll met in this model run

Each exact held-input interval moves monotonically toward its fixed equilibrium. Therefore interval endpoints bound the continuous peak, and the 90–120 s endpoint checks also bound the temperature between those samples in this particular model. This argument does not extend automatically to a real device or another plant model. Lower energy cannot cancel a failed temperature criterion.

All thirteen true-temperature states for the matched scenarios
Original model states; both runs begin from the same initial condition
Time (s)Active true (°C)Nominal true (°C)Active / nominal held power for next 10 s (W)
020.00000020.00000020.000000 / 20.000000
1021.90325221.90325220.000000 / 20.000000
2023.62538523.62538520.000000 / 20.000000
3025.18363625.18363620.000000 / 20.000000
4026.59359926.59359920.000000 / 20.000000
5027.86938727.86938720.000000 / 20.000000
6029.02376729.02376715.857396 / 15.857396
7029.67407329.67407311.955562 / 11.955562
8029.89118529.89118510.652888 / 10.652888
9029.96367129.96367110.217974 / 10.217974
10029.98787129.98787110.072773 / 10.072773
11029.99595129.99595110.024296 / 10.024296
12029.99864829.998648No next command
Active scenario: all twelve command and energy receipts

Requested observation time and effective sample time are separate fields. Correction is subtracted from the raw indication and is zero here. A request before 0 s uses the held initial state at effective time 0; later effective times identify actual earlier model states. Positive ambient energy is outward; a negative value would mean inward transfer. Displayed rounding may leave a tiny apparent balance difference.

Nominal · command formation and actual plant response
Step index / interval (s)True start → end (°C)Requested / effective observation (s)Raw / correction / corrected (°C)Controller error (K)Requested / applied (W)Request clippedHeater input (J)Stored change (J)To ambient (J)Balance residual (J)
0: 0–1020.000000 → 21.9032520 / 020.000 / 0.000 / 20.00010.00070.000 / 20.000Upper clipping200.000000190.3251649.6748360.00e+0
1: 10–2021.903252 → 23.62538510 / 1021.903 / 0.000 / 21.9038.09758.580 / 20.000Upper clipping200.000000172.21333027.7866700.00e+0
2: 20–3023.625385 → 25.18363620 / 2023.625 / 0.000 / 23.6256.37548.248 / 20.000Upper clipping200.000000155.82506544.1749350.00e+0
3: 30–4025.183636 → 26.59359930 / 3025.184 / 0.000 / 25.1844.81638.898 / 20.000Upper clipping200.000000140.99634959.0036510.00e+0
4: 40–5026.593599 → 27.86938740 / 4026.594 / 0.000 / 26.5943.40630.438 / 20.000Upper clipping200.000000127.57877372.4212270.00e+0
5: 50–6027.869387 → 29.02376750 / 5027.869 / 0.000 / 27.8692.13122.784 / 20.000Upper clipping200.000000115.43804784.5619530.00e+0
6: 60–7029.023767 → 29.67407360 / 6029.024 / 0.000 / 29.0240.97615.857 / 15.857No clipping158.57396365.03057893.5433850.00e+0
7: 70–8029.674073 → 29.89118570 / 7029.674 / 0.000 / 29.6740.32611.956 / 11.956No clipping119.55561621.71123497.8443820.00e+0
8: 80–9029.891185 → 29.96367180 / 8029.891 / 0.000 / 29.8910.10910.653 / 10.653No clipping106.5288767.24855499.2803210.00e+0
9: 90–10029.963671 → 29.98787190 / 9029.964 / 0.000 / 29.9640.03610.218 / 10.218No clipping102.1797432.42001699.7597270.00e+0
10: 100–11029.987871 → 29.995951100 / 10029.988 / 0.000 / 29.9880.01210.073 / 10.073No clipping100.7277330.80795199.9197820.00e+0
11: 110–12029.995951 → 29.998648110 / 11029.996 / 0.000 / 29.9960.00410.024 / 10.024No clipping100.2429620.26974499.9732180.00e+0

Active whole-run ledger: 1887.808894 J heater input = 999.864807 J stored-energy change + 887.944087 J signed transfer to ambient. Model residual: -1.14e-13 J. Energy accounting agreement does not validate the device physically.

Your comparison: predict how a changed observation or actuator limit affects true temperature, then inspect all four criteria. Compare scenarios at the same gain, or compare gains within one scenario. Use the receipt times, sensor indication and requested/applied power to explain a failure before proposing a revision. Passing one public scenario does not establish stability or reliability in other conditions. Repeating this deterministic run checks reproducibility, not field reliability or a new independent trial.

Final true temperature 29.999 degC; heater input 1887.809 J.

Peak 29.999 degC at 120 s; cost 3 assigned tokens. Tail band met; peak limit met; energy budget met; resource budget met. Synthetic model evidence, not a physical prototype or reliability estimate.

Captures preserve recipes and replay their calculated results. They are synthetic model evidence, not physical measurements.

Understand

Gain is a response rule, not a quality score

The proportional gain Kp converts sensed temperature error into a power contribution. It has units W/K: a one-kelvin error contributes 2, 6 or 12 W in the three allowed settings. A larger gain asks the actuator to respond more strongly to the same error, but neither energy use nor requirement compliance follows from that number alone.

Begin with the nominal scenario and write a prediction before comparing gains 2 and 12 W/K. Keep the standard hardware, 20°C start, 20°C ambient, 30°C target and 120-second duration fixed. Compare the entire temperature trace and all four tail samples, not just which final number rounds to 30°C.

Clipping can make different commands identical

At the initial sensed temperature of 20°C, the error is 10 K. With the fixed 10 W feedforward term, gains 2, 6 and 12 request 30, 70 and 130 W respectively. All three exceed the nominal 20 W ceiling, so all apply exactly 20 W in the first interval and reach the same next temperature, about 21.903°C.

This explains why multiplying gain by six does not multiply the initial heating rate by six. The requested-power column and applied-power plot answer different questions. Once the temperature error shrinks, one controller may leave saturation before another, causing their trajectories to separate. Inspect the receipts to find that transition rather than assuming the gain acts without limits.

At sensed 29°C the requests are 12, 16 and 22 W. The first two are delivered without upper clipping; the last is clipped to 20 W. At sensed 31°C the requests are 8, 4 and −2 W; the last is clipped to zero. Zero applied power does not create active cooling: the warm body loses heat to its surroundings through the stated conductance.

Compare nominal performance on several indicators

Nominal gain 2 ends near 29.766220°C, with peak equal to that final value and input energy 1,821.035488 J. Gain 6 ends near 29.998648°C, using 1,887.808894 J. Gain 12 ends near 29.999949°C, but its peak is approximately 30.068294°C, and it uses 1,893.370525 J.

All satisfy the supplied nominal tail band, peak, energy and token criteria. A learner who prioritizes final closeness might prefer a higher gain; one who prioritizes lower input within the permitted band might choose differently. Write the priority explicitly. A close endpoint does not prove less overshoot, less energy, or satisfactory behavior under a changed sensor condition.

The trace lasts only 120 seconds. It does not prove asymptotic stability, behavior for every initial temperature, or tolerance of arbitrary delay. Nor does it estimate a distribution of physical failures. The readings and constants are original deterministic model assumptions.

Increasing gain cannot calibrate the sensor

Now compare the same gains in the +2°C offset scenario. Gain 2 ends near 28.491828°C; gain 12 near 28.153858°C. Both fail the lower tail requirement. Stronger response to a biased reading pushes the true state toward a different operating point; the controller cannot identify the bias merely from its own error signal.

For a paper equilibrium calculation with no clipping or delay, outward transfer is T − 20 watts. The offset reading is T + 2, so the request is 10 + Kp(28 − T). Equating them gives T = 30 − 2Kp/(1 + Kp). At gain 2 the equilibrium is about 28.667°C; at gain 12 it is about 28.154°C. The finite endpoint need not equal equilibrium. This formula applies only where the resulting command is not clipped.

Transfer: change gain at one stated reading

For a hypothetical sensed value of 28.5°C, calculate requests at gains 2 and 12, then their nominal applied powers. Predict whether the ratio of applied powers equals the ratio of gains.

Check the clipped-gain transfer

Error is 1.5 K. Requests are 10 + 2 × 1.5 =13 W and10 + 12 × 1.5 =28 W. Applied powers are 13 and 20 W. Their ratio is 20/13, about 1.54, not the gain ratio 6. Both the fixed feedforward contribution and clipping prevent that proportional shortcut.

Use NIST’s measurement discussion to distinguish calibration evidence from additional controller strength. Return to sensitivity and error for model-comparison language, then investigate sensor delay. A design claim should name the tested gain and scenario instead of declaring that the largest gain is best.

Apply

At true and sensed 20°C, the nominal first-interval applied powers for gains 2, 6 and 12 are:

Public practice checks a specific claim. It does not establish independent mastery.

Explain why increasing gain does not correct sensor calibration and why a finite trace is not an asymptotic stability proof.

Continue

Completion requires a saved prediction, at least one capture and a reflection. Presence checks do not grade your reasoning.

Skipping retains experiments and awards no mastery.

Save a science backup or import one

Science work is stored locally in this browser, separately from mathematics and AI. It does not sync automatically. Use this science-only backup; this checkout's older all-subject export does not include science.

A legacy file is available only when the complete snapshot fits the 36 MB limit. For larger snapshots, prepare a complete file set below; never discard notebooks to make a smaller file.

Matching imported notebook drafts replace their current drafts. Omitted lessons and known first attempts remain. Export your current work first if you want to retain both drafts.

Complete file sets and course backups

A file set can hold more work than one science file. Keep its manifest and every part together. Each file is limited to 36 MB. This format needs this version of LearnAI or a compatible newer version; older versions can use only the legacy single-file backup above.

The set includes every saved science course and global continuation at this moment. Later edits need a new export. A conflicting tab exports its own visible work, which may differ from saved work in another tab.

0 file(s) selected. File order and filenames do not determine identity. Missing, changed or conflicting parts block the entire restore; no good part is applied by itself.

Science storage: loading. No account or remote computation is required.