Mathematical operators, like +,-,*,/, are fundamental in AI, particularly in machine learning algorithms. They're used for calculations in models, data transformations, and optimization techniques. AI relies on these operators to perform arithmetic operations on numerical data, manipulate variables, and define complex mathematical expressions.
Category
📚
LearningTranscript
00:00Welcome back guys, this lecture can be in mathematical operator and order of precedence
00:09which we will learn.
00:10In school, we will learn mathematical operation.
00:14The normal operators are parenthesis and power.
00:21Then we have multiplication and division.
00:25The reason is that this lecture is the precedence and addition and subtraction.
00:34If I am writing a equation, for example, let's say 20 minus 4 multiplied by 2
00:42Basically, if you were in school, you would follow the rule.
00:50For example, you would learn mathematics.
00:54You would like to add multiplication.
00:55You would like to add multiplication.
00:57It means that first of all, 4 multiplied by 2,
01:01and 8 is the result of this result.
01:03This result of 8 is the result of this result of this result of this result of this result of this result of this result.
01:07So, we have to execute.
01:08To see 12.
01:09Okay.
01:10So, this result is the result of this result of this result.
01:13This multiplication and division is above is subtraction and division.
01:18If I add this again, the multiplication will be addition and subtraction.
01:25So, I will write this as well.
01:27So, as you can see, multiplication, addition and subtraction is above.
01:33So, power and parenthesis is basically multiplication and division is above.
01:41So, if I add this plus statement in parenthesis,
01:46then it is 24 multiplied by 2, 48.
01:50So, I will write this as you can see, 48 results.
01:52So, basically, I will write this as well.
01:54Parenthesis and this is power.
02:00This is the multiplication and division.
02:10Okay.
02:11And then we have addition and subtraction.
02:15Okay.
02:16Okay.
02:17Now, these words are normally not required to memorize.
02:24It is a good idea.
02:29If we take this capital, we will write this as well.
02:31So, this is basically the word.
02:33This is basically the word.
02:35P-E-M-D-A-S.
02:38PEMDAS.
02:39Power, exponent.
02:41Sorry.
02:42Parenthesis.
02:43Exponent.
02:44I will write this as power as exponent.
02:46Exponent.
02:47Exponent.
02:48This is basically the multiplication and division.
02:49This is basically the interchangeable.
02:51Division and multiplication are on the same level.
02:54And then we have the same level as well.
02:59So, this is PEMDAS.
03:01By the way, a very interesting photo is made.
03:02That is a very interesting photo.
03:03That I have to show you.
03:04PEMDAS.
03:05P-E-M-D-A-S.
03:06You can understand this as well.
03:07Please excuse my dear Aunt Sally.
03:09Okay.
03:10P-E-M-D-A-S
03:33this 2 ko double star 2 kaar dieta hoon,
03:37toh ab zara aapne note karna hai ke
03:40pahle hemari paranthesis solve hooggi,
03:42thik hai, uske baad exponent solve hoogga,
03:44phir 2 ki power hooggi,
03:45aur jose ke result hoogga,
03:472 ki power 2, 4 hoogga,
03:484 multiply hoogga 24 ke saath,
03:51thik hai,
03:52toh ab mein isko execute kerta hoon,
03:53and then you get the result.
03:56Now, iski jose practical application hai,
03:58woh ye hai ke,
04:00aapne aapne programming ke carrier ke anndar
04:03eek aaisi,
04:04aapne paas bhoot saari aaisi mookya aayenge,
04:06mathematical expressions aayenge,
04:07jinn me aapko,
04:09eek hi expression ke anndar,
04:11ye decide kerna padeega,
04:12kia koon sa element pehle compute ho,
04:13aur koon sa baad mein compute ho,
04:15toh ager aapne woh order of precedence change kerna hai,
04:19toh aapne bos us,
04:20un operators ko parenthesis ke anndar rakhna hai,
04:23kiaunke parenthesis ki,
04:24priority joh hai,
04:26woh sb pe top hai,
04:27yeh dekh rhai hai,
04:28yeh sb se top hai,
04:29toh in case,
04:30aapne paas e complex equation aagay hai,
04:32aur aap chaathe hai,
04:33yaar nai,
04:33merhe paas let's say,
04:34eq equation hai,
04:35two plus three plus two multiplied by this,
04:38toh ager aap kooi bhi element ko,
04:40pahle calculate kerna chaathe hai,
04:42abhi toh python ke anndar,
04:44joh built in order of precedence hai,
04:46woh follow kerega na,
04:47kye,
04:48woh hai,
04:48pam daas please excuse my dear aunt sally,
04:51woh toh ye follow kerega,
04:52however,
04:52ager aap kooi or follow kerana chaathe hai,
04:54toh aapne un operators ko basically,
04:57parenthesis ke anndar rakhna hai,
04:58thik hai,
04:59abh dheekhie,
05:00ke yeh dho parenthesis aagay hai,
05:01yeh solve ho,
05:02yaa phir yeh solve ho,
05:03they are at the same level,
05:04thik hai,
05:05toh yeh haap e slecchur go,
05:06thank you guys,
05:06you chǝ gufront hjärna ki in sh arquğim i tám sowo wē,
05:10ji h�am buong tik tu.
05:12So que cloudец sp darein teliwa,
05:13toh all eso và hẹup ngon ngon ng kadhi,
05:14ngon ngon ngon ngon lòng ngon ngon ngon ngon ngrew,
05:15in sh
05:18chung al ngon ngon ngon ngon ngon ngon ngon ngon ngon ngon ngon ng gauche
05:19dhe eit nin kong th但 yurt achat trd.
05:21chiều ti.
05:22Eh chung ia po dhe eitig d talk sunning,
05:24def trd da ki
05:24rence chi chiap tding kong ta'
05:27in sh dizerled.