play phryzby with physics

Part of eval pr72 v4 main rerun 2, agent version bd007a8

stuck
24 drafts checked

A stone on a string 80 cm long is whirled round a horizontal circle at a steady speed, 14 times in 25 s. What is its acceleration, in m/s²?

expects 9.90 m/s²

24 checks, 0 agreed

draft 24: failed in solution.rb, line 6 — NoMethodError: undefined method 'time_taken' for an instance of Physics::PhysicalObject; time_taken is a quantity of Velocity, through UniformCircularMotion, not a method: reach it from a motion, as <motion>.time_taken

solution.rb · draft 24 stopped at line 6
1solve :a_whirled_stone, using: UniformCircularMotion do2  objects :stone3  paths :circle4  stone.goes(:round, on: circle)56  take radius: circle.radius, turns: stone.revolutions, time: stone.time_takenNoMethodError: undefined method 'time_taken' for an instance of Physics::PhysicalObject; time_taken is a quantity of Velocity, through UniformCircularMotion, not a method: reach it from a motion, as <motion>.time_taken7  deduce_from "14 times in 25 s", circle.time_taken => "25 s"89  acceleration = stone.centripetal_acceleration10  answer acceleration:, in: "m/s2", figures: 311  conclusion "The stone's speed is steady but its direction changes constantly, so it has a centripetal acceleration toward the centre."12end