1 00:00:05,450 --> 00:00:06,410 Hey everyone. 2 00:00:06,920 --> 00:00:11,570 In the last video we have defined the interface and in the studio we go with the mathematical functions 3 00:00:11,930 --> 00:00:14,060 and they're very easy to define you wouldn't understand. 4 00:00:14,060 --> 00:00:15,870 Only by going through once. 5 00:00:15,920 --> 00:00:27,640 So I would simply to add it to numbers a b and then just return A plus B as it then we have subtract 6 00:00:31,480 --> 00:00:39,100 again plus A B and return A minus B. 7 00:00:39,110 --> 00:00:40,970 There we go. 8 00:00:41,020 --> 00:00:44,750 Then we have multiply so one for that one. 9 00:00:45,750 --> 00:00:50,750 A comma B and written is Darby 10 00:00:53,750 --> 00:00:57,130 they will after that one divide. 11 00:00:57,400 --> 00:01:06,980 So Dave for that can equal my B and return a divided by B. 12 00:01:07,960 --> 00:01:16,690 After that when we have more so for that one just more simply a Modi equal maybe. 13 00:01:17,410 --> 00:01:18,370 And right. 14 00:01:18,430 --> 00:01:19,210 So what have we done 15 00:01:22,390 --> 00:01:26,100 a percentage B. 16 00:01:26,100 --> 00:01:29,840 David go with the basic functions after this. 17 00:01:29,920 --> 00:01:32,110 I will also define the end segment at CFR here. 18 00:01:32,470 --> 00:01:35,040 So simply calcium equal maybe. 19 00:01:35,380 --> 00:01:40,600 And how I defined the axiom I would just take the logic of these two and check whether is divisible 20 00:01:40,600 --> 00:01:49,330 by both of these or not so l equal to a if a greater than B a device B. 21 00:01:49,480 --> 00:01:54,730 So again a variable that uses conditional and have two different values based on the condition. 22 00:01:54,730 --> 00:02:02,050 So the one that is greater will be provided to and I will use a loop hip while my L is less than equal 23 00:02:02,050 --> 00:02:06,110 to a start B. 24 00:02:06,300 --> 00:02:12,270 So in that case I will check whether of these like this one is divided by both of these or not. 25 00:02:12,810 --> 00:02:27,780 So if my L reminder with a equal to equal to zero and l reminder B equal to equal to zero. 26 00:02:27,860 --> 00:02:33,290 So this is the condition when this one is divided by both of the numbers then in that case it means 27 00:02:33,290 --> 00:02:35,270 that this one is the LTM. 28 00:02:35,270 --> 00:02:42,080 So in that case I will just return it and by using this one again and again I will get the LC him and 29 00:02:42,080 --> 00:02:49,700 how I will use this one again and again I will just increment the L by one up to the condition I will 30 00:02:49,700 --> 00:02:53,440 reach this point so l purse equal to 1. 31 00:02:53,780 --> 00:02:55,720 So incremental 1 or better. 32 00:02:55,760 --> 00:02:57,560 You can also do less equal to helpless. 33 00:02:58,790 --> 00:03:07,190 They've got the DLC and now the Etsy if simply Etsy if again these two and B and I will define another 34 00:03:07,190 --> 00:03:18,040 variable here that is etch and that will be simply a if my a less than B a device B labial. 35 00:03:18,740 --> 00:03:19,840 And again a loop here. 36 00:03:20,450 --> 00:03:25,280 But this time up to the point when x is greater than equal to 1. 37 00:03:25,330 --> 00:03:28,330 So we need to check the greater than equal to 1. 38 00:03:29,380 --> 00:03:36,130 I hope you have the knowledge of these mathematical formulas and after that one I will check whether 39 00:03:36,130 --> 00:03:39,700 this one right now there we have checked these two. 40 00:03:39,700 --> 00:03:51,350 Now this one is dividing both of these or not so simply a percentage each equal to equal to zero and 41 00:03:52,310 --> 00:04:02,180 b percentage edge equal to equal to C2 so in that condition just return the edge and they David. 42 00:04:02,570 --> 00:04:06,540 And here we will use a decrement edge minus equal to one. 43 00:04:06,800 --> 00:04:10,600 So it will be documented by 1 every time the loop continues. 44 00:04:10,640 --> 00:04:15,230 So there we go with the mathematical operations and hope you get all of these. 45 00:04:15,340 --> 00:04:19,550 So this is about the mathematical operations and just two more steps are left here. 46 00:04:20,410 --> 00:04:22,500 So thanks for watching and I assume the next video.