Answer:
point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))
Explanation:
The distance formula is the difference of the x coordinates squared, plus the difference of the y coordinates squared, all square rooted. For the general case, it appears you simply need to change how you have written the code.
point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))
Note, by moving the 2 inside of the pow function, you have provided the second argument that it is requesting.
You were close with your initial attempt, you just had a parenthesis after x1 and y1 when you should not have.
Cheers.
Answer:
See attachment and explanation.
Explanation:
- The following question can be solved better with the help of a MATLAB program as follows. The code is given in the attachment.
- The plot of the graph is given in attachment.
- The code covers the entire spectrum of the poly-tropic range ( 1.2 - 1.6 ) and 20 steps ( cases ) have been plotted and compared in the attached plot.
Explanation:
a motorcycle Motor is made out of iron