Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,500 --> 00:00:01,710
What is going on, guys?
2
00:00:01,730 --> 00:00:08,060
And welcome back to another video, another exercise in our amazing programming chorus.
3
00:00:08,480 --> 00:00:10,780
My name is Vlad PVCs Alphatech.
4
00:00:10,790 --> 00:00:19,070
And in this exercise, what we are going to do is to write a program that calculates the distance between
5
00:00:19,070 --> 00:00:21,780
given to between two given points.
6
00:00:22,130 --> 00:00:25,430
So, for example, suppose that you have two points.
7
00:00:25,880 --> 00:00:32,110
The first point is X1 wife one and the second point is x2 y2.
8
00:00:32,150 --> 00:00:38,600
OK, just two points that simply have an X value and a Y value.
9
00:00:39,230 --> 00:00:47,570
And what you have to do is to find the distance between these two points by using the following formula.
10
00:00:48,410 --> 00:00:53,840
So that's a formula to calculate the distance between two given points.
11
00:00:54,980 --> 00:00:55,430
Yes.
12
00:00:55,430 --> 00:01:03,170
You you've seen this, this example, at least this explanation somewhere on your math class.
13
00:01:03,620 --> 00:01:10,760
But just a quick reminder how you do it and you simply take the value of the first point, which is
14
00:01:10,760 --> 00:01:11,430
X1.
15
00:01:11,480 --> 00:01:17,450
Let me get here my laser so you get the value of X1, you subtract with x2.
16
00:01:17,450 --> 00:01:19,220
So x1 minus x2.
17
00:01:19,640 --> 00:01:21,500
All of that is the power of two.
18
00:01:21,590 --> 00:01:28,130
Plus you take the value of Y one minus Y two and also in the power of two.
19
00:01:28,460 --> 00:01:34,360
And then you sum up both of the results and you apply a square root on the result.
20
00:01:34,550 --> 00:01:40,850
And this gives you the distance between the first point and the second point.
1945
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.