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:
True
Explanation:
This is a true fact because From the time you are born to around the time you turn 30, your muscles grow larger and stronger.
Answer:
(a) 0.12924
(b) Taking into consideration significance level of 0.05 yet the value of p is greater than 0.05, it suggests that the coin is fair hence the coin can be used at the beginning of any sport event.
Explanation:
(a)
n=200 for fair coin getting head, p= 0.5
Expectation = np =200*0.5=100
Variance = np(1 - p) = 100(1-0.5)=100*0.5=50
Standard deviation,
Z value for 108,
P( x ≥108) = P( z >1.13)= 0.12924
(b)
Taking into consideration significance level of 0.05 yet the value of p is greater than 0.05, it suggests that the coin is fair hence the coin can be used at the beginning of any sport event.
It is important because now a days we all need help from engineers