1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Shtirlitz [24]
3 years ago
9

Assign point_dist with the distance between point (x1, y1) and point (x2, y2). the calculation is: distance = squarerootof( (x2

- x1)2 + (y2 - y1)2 ). sample output for the given program:
Mathematics
1 answer:
MissTica3 years ago
8 0
<span>import math def calculateDistance(x1,y1,x2,y2): dist = math.sqrt((x2 - x1)**2 + (y2 - y1)**2) return dist distance = calculateDistance(2,4,6,8) print distance</span>
You might be interested in
Whats its the result Of 25099.506/4.45?
777dan777 [17]
\dfrac{25099.506}{4.45} \ \text{Divide} 

<span>Shift the decimal points of both 25099.506 and 4.45 to the right by 2 decimal places. 
</span>
<span>(This is needed to convert 4.45 to 445, since long division must divide by a whole number.) 
</span>
\text{Set up the long division.}&#10;

\text{Calculate 2509 divided by 445, which is 5 with a remainder of 284.}
<span>
</span>\text{ Bring down 9, so that 2849 is large enough to be divided by 445.}

\text{Calculate 2849 divided by 445, which is 6 with a remainder of 179.} &#10;

\text{Bring down 5, so that 1795 is large enough to be divided by 445.}

\text{Calculate 1795 divided by 445, which is 4 with a remainder of 15.}

\text{Bring down 06, so that 1506 is large enough to be divided by 445.&#10;}

\text{Calculate 1506 divided by 445, which is 3 with a remainder of 171.}

\text{Bring down 0, so that 1710 is large enough to be divided by 445.}

\text{Calculate 1710 divided by 445, which is 3 with a remainder of 375.}

\text{Bring down 0, so that 3750 is large enough to be divided by 445.}

\text{Calculate 3750 divided by 445, which is 8 with a remainder of 190.}

\text{Bring down 0, so that 1900 is large enough to be divided by 445.}

\text{Calculate 1900 divided by 445, which is 4 with a remainder of 120.}

\text{Bring down 0, so that 1200 is large enough to be divided by 445.}

\text{Calculate 1200 divided by 445, which is 2 with a remainder of 310.}

<span>Therefore, 25099.506 ÷ 4.45 ≈ 5640.33842</span>

8 0
3 years ago
Pls find x, has to do with trig and answer has to be in radical form
MrMuchimi
I don’t have a calculator with me use sine 20divided by Sin(60) will give you x
7 0
3 years ago
Read 2 more answers
What is the domain of a function?
Gnom [1K]
The domain of a function is the set of all possible x-values which will make the function “work”, and will output real
y-values
4 0
3 years ago
Read 2 more answers
Find the equation of the line.
Grace [21]

Answer:

m:-\frac{1}{3}

Step-by-step explanation:

Pick two points (0,5) and (3,4)

use the formula to find slope: \frac{y2-y1}{x2-x1}

Insert values: \frac{4-5}{3-0}

m:-\frac{1}{3}

:-)

7 0
3 years ago
When a fraction of 12 is taken away from 17, what remain exceed one-third of seventeen by six.
vova2212 [387]
X - the fraction

17- 12x=\frac{1}{3} \times 17+6 \\&#10;17-12x=\frac{17}{3}+6 \\&#10;-12x=\frac{17}{3}+6-17 \\&#10;-12x=\frac{17}{3}-11 \\&#10;-12x=\frac{17}{3}-\frac{33}{3} \\&#10;-12x=-\frac{16}{3} \\&#10;x=-\frac{16}{3} \times (-\frac{1}{12}) \\&#10;x=\frac{16}{36} \\&#10;x=\frac{4}{9}

The fraction is 4/9.
5 0
3 years ago
Other questions:
  • Aramis showed the division of 6p2 + 9p + 3 by 3p.
    7·2 answers
  • How can you quickly determine the number of roots a polynomial will have by looking at the equation?
    8·2 answers
  • Complete the expression below to create an expression equal to 72 + 45<br> (8 + 5)
    6·1 answer
  • QUES
    13·1 answer
  • Can you help me with the 3 questions
    13·1 answer
  • an investment has been losing money at a rate of 4% per year. the value of the investment now is $75,000. what will be the value
    14·1 answer
  • The height of adult males on a given South Pacific Island is approximately normally distributed with mean 65 inches and standard
    15·1 answer
  • A frog leaps 2 feet. The highest point in the jump is 6 inches. Assume the frog starts at (0, 0). Write a quadratic function in
    10·1 answer
  • The area of the circle is 25 square centimeters.
    9·1 answer
  • Solve the system of equations by elimination.<br> -X + y = -13 <br>-8x - 4y = -8​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!