....................................
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:
define the problem, do background research and specify requirements
Answer:
e = 3.97*10^-4
Explanation:
1.8 mm = 0.0018 m
2.6*10^4 mm = 26 m
Elongation is The ratio between the stretched length and the original length.
e = L/L0
This is calculated with Hooke's law:
e = σ/E
Where
σ: normal stress
E: elastic constant
σ = P/A
Where
P: normal load
A: cross section
A = π/4 * d^2
Therefore:
e = P / (A * E)
e = 4 * P / (π * d^2 * E)
e = 4 * 290 / (π * 0.0018^2 * 207*10^9) = 3.97*10^-4
Answer: False
Explanation:
The statement that "a person hired by a pharmaceutical company to streamline the company’s drug production process would most likely be an electrical engineer" is false.
An electrical engineer is an engineer that designs, and tests electrical equipment like smartphones, electric motors, etc. The person designs equipments which makes use of electricity or electronics.
He or she doesn't streamline the company’s drug production process, this can be the role played by the production manager.