From 01ab9f96814f931002659709e4349c544b7a32bd Mon Sep 17 00:00:00 2001 From: Drew Lewis Date: Tue, 27 Oct 2026 13:03:43 +0000 Subject: [PATCH] Fix wording --- .../exercises/outcomes/AD/AD3/generator.sage | 12 +++--------- .../calculus/exercises/outcomes/AD/AD3/template.xml | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/source/calculus/exercises/outcomes/AD/AD3/generator.sage b/source/calculus/exercises/outcomes/AD/AD3/generator.sage index 356b5238a..e6f0d2dc4 100644 --- a/source/calculus/exercises/outcomes/AD/AD3/generator.sage +++ b/source/calculus/exercises/outcomes/AD/AD3/generator.sage @@ -50,14 +50,10 @@ class Generator(BaseGenerator): heightperson=round(uniform(4.8,6.5),1) personspeed=round(uniform(1,3),1) - shadowdirection="up" - persondirection=choice(["light", "wall"]) - if persondirection=="wall": - shadowdirection="down" + path, shadowdirection = choice([("from a light on the ground towards a wall", "down"), + ("away from a wall towards a light on the ground", "up") ]) dHdtround=round(lighttowall*personspeed*heightperson/disttolight^2,2) - # numshadow=lighttowall*personspeed - # denomshadow=disttolight^2 name = choice(["Cory","Mr. Feeny","Amy","Eric","Shawn","Morgan","Topanga"]) if choice([True, False, False]): @@ -78,11 +74,9 @@ class Generator(BaseGenerator): "disttowall": disttowall, "heightperson": heightperson, "personspeed": personspeed, - "persondirection": persondirection, + "path": path, "shadowdirection": shadowdirection, "dHdtround": dHdtround, - # "numshadow": numshadow, - # "denomshadow": denomshadow, "name": name, "pronoun1": pronoun1, "pronoun2": pronoun2 diff --git a/source/calculus/exercises/outcomes/AD/AD3/template.xml b/source/calculus/exercises/outcomes/AD/AD3/template.xml index b339dfaf6..01a1be630 100644 --- a/source/calculus/exercises/outcomes/AD/AD3/template.xml +++ b/source/calculus/exercises/outcomes/AD/AD3/template.xml @@ -37,7 +37,7 @@

- {{name}} is {{heightperson}} ft tall, and is walking in a straight line from a light on the ground toward the {{persondirection}} at a rate of {{personspeed}} ft/sec. At the moment {{pronoun1}} {{disttolight}} ft away from the light (and {{disttowall}} ft from the wall), how fast is the height of {{pronoun2}} shadow changing? In which direction is the shadow changing? + {{name}} is {{heightperson}} ft tall, and is walking in a straight line {{path}} at a rate of {{personspeed}} ft/sec. At the moment {{pronoun1}} {{disttolight}} ft away from the light (and {{disttowall}} ft from the wall), how fast is the height of {{pronoun2}} shadow changing? In which direction is the shadow changing?