Menu

(Solved) : 1 Math Import Sin Cos Atan2 Radians Degrees Sqrt 2 Class Force Def Init Self Magnitude Ang Q35607249 . . .

1 from math import sin, cos, atan2, radians, degrees, sqrt 2 class Force: def init_(self, magnitude, angle): self.magnitude m

I should get result #

103.1
-14.0

but my result is

90

0

how can I fix this plz?

1 from math import sin, cos, atan2, radians, degrees, sqrt 2 class Force: def init_(self, magnitude, angle): self.magnitude magnitude self.angle angle def get_horizontal (self): horizontal self.magnitude cos (radians(self.angle)) return horizontal 10 def get_vertical (self): vertical self.magnitude sin(radians (self.angle)) return vertical def get_angle (self, use_degrees True): if use_degrees True: 14 15 16 17 return self.angle else: return radians(self.angle) 19 def find_net_force(L_force): 20 21 total horizontale total verticale for i in L_force: total_horizontal+i.get_horizontal() total_vertical +i.get_angle) 25 26 27 net_magnitude sqrt (total_horizontal * 2 total_vertical net_magnitude round(net_magnitude, 1) net_angle degrees (atan2 (total_vertical, total_horizontal)) net _angle round (net_angle,1) return Force(net_magnitude, net_angle) 2) 29 30 31 32 force 1 Force(50, 90) 33 force_2 Force(75, -90) 34 force-3= Force(98J0) 35 forces [force 1, force2, force 3] 36 net force find_net_force(forces) 37 print (net_force.magnitude) 38 print(net_force.get_angleO) Show transcribed image text

Expert Answer


Answer to 1 Math Import Sin Cos Atan2 Radians Degrees Sqrt 2 Class Force Def Init Self Magnitude Ang Q35607249 . . .

OR