Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

image text in transcribed

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)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

What is the meaning of the term competitive intelligence ?

Answered: 1 week ago