Part of eval main bdd945f six, agent version bdd945f
A body of 5 kg is pushed by two forces at right angles to each other, 8 N and 6 N. How strongly does it accelerate, in m/s²?
expects 2 m/s²
draft 24: failed in solution.rb, line 12 — NameError: two_forces_at_right_angles chooses a root of #<struct Physics::Pointing size=#<Physics::Whole:0x0000789597ee9008 @name=#<struct Physics::Instance quantity=:net_force, variable=:F_net, owner=:body, qualifiers={during: :pushed}, labels={body: "", pusher1: "p1", pusher2: "p2", pushed: ""}>, @written=#<struct Physics::Instance quantity=:net_force, variable=:F_net, owner=:body, qualifiers={during: :pushed}, labels={body: "", pusher1: "p1", pusher2: "p2", pushed: ""}>>>, which none of its laws name
1solve :two_forces_at_right_angles, using: NewtonsSecondLaw do2 objects :body, :pusher1, :pusher23 axes :x, :y45 body.goes(:pushed)67 take mass: body.mass8 take force1: body.force(by: pusher1, during: pushed).magnitude9 take force2: body.force(by: pusher2, during: pushed).magnitude1011 deduce_from "two forces at right angles to each other", body.net_force(during: pushed).magnitude => sqrt(force1**2 + force2**2)12 deduce_from "two forces at right angles to each other", body.net_force(during: pushed).direction => :unknownNameError: two_forces_at_right_angles chooses a root of #<struct Physics::Pointing size=#<Physics::Whole:0x0000789597ee9008 @name=#<struct Physics::Instance quantity=:net_force, variable=:F_net, owner=:body, qualifiers={during: :pushed}, labels={body: "", pusher1: "p1", pusher2: "p2", pushed: ""}>, @written=#<struct Physics::Instance quantity=:net_force, variable=:F_net, owner=:body, qualifiers={during: :pushed}, labels={body: "", pusher1: "p1", pusher2: "p2", pushed: ""}>>>, which none of its laws name1314 acceleration = body.acceleration.magnitude15 answer acceleration:, in: "m/s2"1617 conclusion "The two forces are perpendicular, so the resultant is their vector sum; Newton's second law gives the acceleration."18end