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:
a) Please see attached copy below
b) 0.39KJ
c) 20.9‰
Explanation:
The three process of an air-standard cycle are described.
Assumptions
1. The air-standard assumptions are applicable.
2. Kinetic and potential energy negligible.
3. Air in an ideal gas with a constant specific heats.
Properties:
The properties of air are gotten from the steam table.
b) T₁=290K ⇒ u₁=206.91 kj/kg, h₁=290.16 kj/kg.
P₂V₂/T₂=P₁V₁/T₁⇒ T₂=P₂T₁/P₁ = 380/95(290K)= 1160K
T₃=T₂(P₃/P₂)⁽k₋1⁾/k =(1160K)(95/380)⁽⁰°⁴/₁.₄⁾ =780.6K
Qin=m(u₂₋u₁)=mCv(T₂-T₁)
=0.003kg×(0.718kj/kg.k)(1160-290)K= 1.87KJ
Qout=m(h₃₋h₁)=mCp(T₃₋T₁)
=0.003KG×(1.005kj/kg.k(780.6-290)K= 1.48KJ
Wnet, out= Qin-Qout = (1.87-1.48)KJ =0.39KJ
c)ηth= Wnet/W₍in₎ =0.39KJ/1.87KJ = 20.9‰
Answer:
Bottom-up Estimation
Explanation:
Bottom-up estimation is a type of project cost estimation that considers the cost of individual project activities and finally sums them up or finds the aggregates. The summation gives an idea of what the entire project will cost.
This is an effective way of estimating the cost of a project as it evaluates the costs on a wholistic basis. It also considers the tiniest details during the estimation process. The process moves from the simpler details to the more complicated details.
Answer:
the answer how you analyzs the problwm