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.
Location of the class depends on satiation
Answer:
distance = 22.57 ft
superelevation rate = 2%
Explanation:
given data
radius = 2,300-ft
lanes width = 12-ft
no of lane = 2
design speed = 65-mph
solution
we get here sufficient sight distance SSD that is express as
SSD = 1.47 ut + ..............1
here u is speed and t is reaction time i.e 2.5 second and a is here deceleration rate i.e 11.2 ft/s² and g is gravitational force i.e 32.2 ft/s² and G is gradient i.e 0 here
so put here value and we get
SSD = 1.47 × 65 ×2.5 +
solve it we get
SSD = 644 ft
so here minimum distance clear from the inside edge of the inside lane is
Ms = Rv ( 1 - ) .....................2
here Rv is = R - one lane width
Rv = 2300 - 6 = 2294 ft
put value in equation 2 we get
Ms = 2294 ( 1 - )
solve it we get
Ms = 22.57 ft
and
superelevation rate for the curve will be here as
R = ..................3
here f is coefficient of friction that is 0.10
put here value and we get e
2300 =
solve it we get
e = 2%
Answer:
Yes
Explanation:
If the Ajax representative fails to correct the previous statement this can cause misrepresentation.