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
kenny6666 [7]
2 years ago
5

I am trying to create a line of code to calculate distance between two points. (distance=[tex]\sqrt{ (x2-x1)^2+(y2-y1)^2}) My li

ne is point_dist = math.sqrt((math.pow(x2 - x1), 2) + math.pow(y2 - y1), 2) but I am getting an error saying that pow is expecting two arguments and is only getting one. Can anyone help me?
Engineering
1 answer:
k0ka [10]2 years ago
6 0

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.

You might be interested in
(20pts) Air T[infinity] = 10 °C and u[infinity] = 100 m/s flows over a flat plate. Assume that the density of air is 1.0 kg/m3 a
miskamm [114]

Answer:

attached below

Explanation:

8 0
3 years ago
Explain the LWD process why is it important in drilling operations?
barxatty [35]

Answer:

Logging while drilling (LWD) is a technique of conveying well logging tools into the well borehole downhole as part of the bottom hole assembly (BHA). ... In these situations, the LWD measurement ensures that some measurement of the subsurface is captured in the event that wireline operations are not possible.

Explanation:

pls mark brainliest

6 0
2 years ago
State 2 reasons on why blind spot checks are important
Marizza181 [45]

Answer:

How to Test for a Blind Spot . As you have learned, the blind spot is an area on your retina that has no visual receptors. Because of this, there is a tiny gap in your visual field. While your brain usually fills in the missing information so that you don't notice it, this quick and easy test makes it possible to demonstrate the blind spot , Of this, 300 crashes are, sadly, fatal. 2 Accidents are just as likely on Australian roads if blind spots are ignored. Not every car has blind-spot detection, so it's best to educate drivers about the importance of the blind spot to avoid accidents. However, not acknowledging the blind spot when driving isn't just dangerous for other cars on.

Explanation:

8 0
2 years ago
Tech a says you should push the wrench when braking a fastener loose. Tech b says that you should pull the wrench when braking a
Kay [80]

Answer:

tech b because gut feeling

Explanation:

4 0
2 years ago
As Becky was driving "Old Betsy," the family station wagon, the engine finally quit, being worn out after 171,000 miles. It can
andriy [413]

Answer:

1) 4.361 x 10 raised to power 8 revolutions

2) 1.744 x 10 raised to power 9 firings

3) 2.18 x 10 raised to power 8  intake strokes

Explanation:

The step by step explanation is as shown in the attachment

8 0
3 years ago
Other questions:
  • Refectories are one of the types of ceramics that have low melting temperature. a)-True b)-False
    7·1 answer
  • What is Differential Analysis in fluid mechanics?
    13·1 answer
  • 2- A 2-m3 insulated tank containing ammonia at -20 C, 80% quality, is connected by a valve to a line flowing ammonia at 2 MPa, 6
    14·1 answer
  • A multilane highway (two lanes in each direction) is on level terrain. The free-flow speed has been measured at 45 mi/h. The pea
    5·1 answer
  • 1)A wheel is used to turn a valve stem on a water valve. If the wheel radius is 1 foot and the stem, (axle), radius is .5 inches
    10·1 answer
  • Two metallic terminals protrude from a device. The terminal on the left is the positive reference for a voltage called vx (the o
    9·2 answers
  • A cartridge electrical heater is shaped as a cylinder of length L=200mm and outer diameter D=20 mm. Under normal operating condi
    5·1 answer
  • Worth 20 points! Please help ASAP!
    5·1 answer
  • Estimate the maximum expected thermal conductivity for a Cermet that contains 58 vol% titanium carbide (TiC) particles in a coba
    8·1 answer
  • Can someone tell me what car, year, and model this is please
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!