📱 SOCIAL MEDIA ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ / jomakaze / jomakaze / jomakaze
Пікірлер: 2 100
@jomakaze4 жыл бұрын
Check out my second channel: kzfaq.info/love/WhwybsQg-EeBJpsqtmbscw for snackable educational content
@Ultrajamz4 жыл бұрын
Joma Tech what laptop or screen are you using to draw? Ipad? What might you recommend to do the same thing using linux/windows machines?
@ppcamps4 жыл бұрын
God damn, man I found your channel today, I loved it the way that you put some funny things in videos, congrats! I thxs 4 this tip
@daxi-yw8ui4 жыл бұрын
Hey bro calm down that's called Montecarlo and it's a procedure literally everybody knows and my computer science teacher gave me this shit First day of second year High school
@freemind.d27144 жыл бұрын
There have onther way to do so, and generate one point only use the random function once : ) 1: Take 1 as fixed radius, Hand choose a circle angle N ( any angle value with in (0, 180] ) Loop: (Reapet 2~3, get as many point as possible) 2: Use uniformly distributed random function generate number 0~1 and multiply it by N as random angle 3: Draw the point on polar coordinate system, format: (radius, angle) 4: Calculate the distance between two adjacent points and add them up to approximate Arc length ("adjacent " can be done easily by ordering the x, y value of coordinate) 5: Because: Arc length = N/180·πr, and r = 1; so: π ≈ approximate Arc length * 180 / N More point we have, the smaller N we use, better the approximation we get, as this kind of prerequisite the only thing we can do is approximation.
@tisonludovic68583 жыл бұрын
num_point_total will be n 😉. You should try with 3 or more dimensions. Monte Carlo is made for bigger dimensions.
@Waiel3 жыл бұрын
My favorite interview question is *“What’s your name?”*
@moustafadarwish36743 жыл бұрын
and i sometimes get it wrong
@DrRAZI993 жыл бұрын
Thats a pretty hard question
@user-cb8ti1db2e3 жыл бұрын
Such a tough question.
@namenotavailable99893 жыл бұрын
Too bad. My name is harder to pronounce.
@pipedownandeatyourpudding29863 жыл бұрын
its my favorite as well, but it can get difficult at times
@beachego26543 жыл бұрын
It was actually really funny when he was 'acting' to be smart saying 'oh, you didn't know the formula to the area of a circle?' and then the next shot is a view of his computer screen looking up the area of the circle. It was clever how he did that transition ha.
@SO-fb4ef3 жыл бұрын
I didn't even realise 😂😂😂
@TimBoundy3 жыл бұрын
It was so well done that I didn't even notice it
@arminbond23363 жыл бұрын
😂😂😂
@vraycool3 жыл бұрын
What the- 😂😂😂 didn't realize that!
@bali58903 жыл бұрын
I was about to call you captain obvious but seems like many people didn´t realize it so the comment is fine.
@hylash54443 жыл бұрын
I feel like he only made this video to flex on us, especially his Patrick drawing skills
@aaryashah24623 жыл бұрын
He does that in every video
@jgfiugdiugiud91323 жыл бұрын
@@aaryashah2462 true lol
@ansadahmad19583 жыл бұрын
If you have been watching his videos you would know he is a major flexer😂but the good kind
@Phoenix-hd1tk3 жыл бұрын
Man, i am so dumb.
@paolosalgo6987 Жыл бұрын
bruh. the boy is not humble and i love it.
@joeface4483 жыл бұрын
"Fuckin' idiot..." made me almost cry from laughing so hard. You bastard, gotta call me out like that xD
@nathanmagro9283 жыл бұрын
It was funny, he had the equation looked up in google on his screen
@zilberorph98793 жыл бұрын
Through jokes its clear who's full of shit.
@docbrown20453 жыл бұрын
Yeah I felt offended too, but also I laughed like never before.
@goodguysaladshendelzare19193 жыл бұрын
@Nathan Magro hahahahahaha wth
@Ledeblogger3 жыл бұрын
Long time I didn’t laugh with yt video
@Ben-xj6su4 жыл бұрын
They asked me this at my interview for "assistant to the cashier" at McDonald's. I aced it.
@YunisRajab4 жыл бұрын
Lmao the whole interview should be can you count and stand a lot?
@steelfalconx20004 жыл бұрын
Damn you're a cashier's assistant!? Jealous!
@vancekangyishu4 жыл бұрын
@@steelfalconx2000 assistant to the cashier
@oregano27713 жыл бұрын
@@vancekangyishu Dwight.
@theakatsuki21133 жыл бұрын
He is kidding ,he actually knows it
@jorgevasquezang4 жыл бұрын
3:04 I needed to pause the video because I was laughing too hard
@arthurcasillas29124 жыл бұрын
Same, lol
@ameenurrahmankhan69334 жыл бұрын
Same here 😂😂😂😂😂
@daniel-fich4 жыл бұрын
I didn't even realize at first. That's amazing
@daniel-fich4 жыл бұрын
@Haze The Space Commie Look at his monitor at 3:04 ...
@Tom604 жыл бұрын
Same 🤣
@Anshuhd3 жыл бұрын
I felt like I was being humiliated this whole time
@antibulletdodger1013 жыл бұрын
lol same here
@sproutdood3 жыл бұрын
When you realize he actually searched up for circle area formula. 😂😂😂
@bjorn17243 жыл бұрын
Did you like it? "50 shades of Joma Tech"-like?
@jhay_vine50833 жыл бұрын
Bro 😂😂
@Dew_-km7gr3 жыл бұрын
3:01 my math teacher every time I ask him something 😂😔👌
@pukhatozhimo3 жыл бұрын
Lol, I'm a math teacher. 😂😂
@Andreas924 жыл бұрын
3:04 googling the formula lmao, nice touch
@pominchuang4624 жыл бұрын
lol
@escanorescanor90254 жыл бұрын
"Oh U didn't know? Fucking idiot"
@l.12444 жыл бұрын
Pointing out the obvious makes it unfunny.
@tekneiq4 жыл бұрын
He got the joke boys, pack it up.
@hl72974 жыл бұрын
@@l.1244 I didn't pay attention to that detail so his comment's still relevant
@chaulenguyenminh25383 жыл бұрын
7:32 Actually 2.92 is closer to Pi than 3.6
@enki79523 жыл бұрын
thats called the BrAiN GaMeS
@Luis-Torres3 жыл бұрын
Oh you didn't know? *chuckles* idiot.
@darienrafaelmarquezvazquez76943 жыл бұрын
@@Luis-Torres "Google: What is more close to pi, 2.92 or 3.6????????????????"
@mathnetic75113 жыл бұрын
I saw that too. Xd
@Priestessfly3 жыл бұрын
damn brilliant
@vejovim3 жыл бұрын
Please do more of these 10 minute videos with interesting questions and their answers! This would be a great format to learners. As soon as you posed the question, I hopped on pycharm and coded it up! It was fun!
@rohitniroula3 жыл бұрын
5:32 that googling google to go to Google killed me 🤣🤣🤣🤣
@Dgsrgv4 жыл бұрын
honestly, sometimes i find it really hard to tell whether joma is actually being serious to straight up trolling. Cuz him having a serious face can easily fool someone gullible like me.
@barryrims90984 жыл бұрын
That's cuz ur stupid it's ok
@Dgsrgv4 жыл бұрын
@@barryrims9098 its ok i know u aint got friends
@Dgsrgv4 жыл бұрын
@@choiceindot its ok i know your a low energy human being trying to find the meaning of your existence ill just give it to you
@Dgsrgv4 жыл бұрын
@@choiceindot your actually an idiot lol
@Dgsrgv4 жыл бұрын
@@choiceindot you implicitly admitted you`re an idiot lol nice job idiot
@yogendraadhikari42753 жыл бұрын
If someone asks me this kind of question, I would just walk away...
@jhay_vine50833 жыл бұрын
Facts bro 😂😂😂
@faizanali1933 жыл бұрын
To be honest, If someone applies for data scientist positions and doesn't even know the basic Monte Carlo, then he should definitely walk away. So many ML/DL junkies wanna be a data scientist these days, can't even pass a basic statistics test...
@stm12p2 жыл бұрын
@@faizanali193 who the hell claims themselves DS guy if they don't know Monte Carlo? i mean, you could do it without any coding skill.
@va9if3 жыл бұрын
I thought he wasn't serious when he said "calculate π"
@tyto1254 жыл бұрын
This dude is flexed so hard that youtube had no other choice but to recommend this to everyone
@tiankaixiong23404 жыл бұрын
That's like the very first example any professor would show when teaching about Monte Carlo.
@TrioLOLGamers4 жыл бұрын
My teacher inserted that in an exercise for the test... It was cool, but later I discovered that he copied everything in the tests from forums... So he knew only few things... Not as teacher at the University
@CamaradaArdi4 жыл бұрын
@@TrioLOLGamers at least here in Spain you have to be a doctor to be a professor
@TrioLOLGamers4 жыл бұрын
@@CamaradaArdi really?
@srgk264 жыл бұрын
@@CamaradaArdi Isn't that how it is everywhere?
@srgk264 жыл бұрын
@@jarolrivera640 I suppose you're from the US? Don't know how it is there, I know PhD students also teach but didn't know they're called professors too. I'm in the UK, and here only a fraction of PhD holders even have a chance of possibly becoming professor. It's the highest "rank" you can have in the academic ladder, and even that's not tenured. If you don't produce results in a certain time, you'll be asked to leave. Though by that time, you're probably quite crazy about the field you would probably produce results. With regard to lecturing, at research intensive universities would normally be working for at least 5-10 years or so to be a lecturer. Not sure if this is a good setup but that's how it is here.
@ShibayanMondal3 жыл бұрын
2:58 The greatest sense of humour I have ever seen!
@vasiliynkudryavtsev3 жыл бұрын
Fun fact is that you don't need the random function to compute with this technique. Just using points on the grid would result the same. E.g. double loop for x and y. The finer the grid - the more precise is the result.
@bastiaan91273 жыл бұрын
That's what I was thinking. Regular grids should even be slightly more accurate than random numbers. But be careful to exclude two of the four borders. Starting off with random numbers is probably just to confuse applicants, or test their ability to generalize and simplify.
@fruitygranulizer5402 жыл бұрын
yea but the point of the original question is to find pi with a bunch of seemingly ranodm numbers. if the question mentioned a grid, its a bit easier to come up with the solution.
@jeffery_tang10 ай бұрын
you would have to deal with edge cases like what if the point was right on the line, but that's probably a trivial solution to it
@abeecee4 жыл бұрын
More of these pls I love them, also the coding explanations really help beginners. Love u joma
@jdmaine510844 жыл бұрын
Dude... this is the second video of yours I've watched, and so far they're both hilarious. I genuinely thought you were calling me an idiot, and then the next cut shows the area of a circle Google results on screen hahaha.
@lexus71543 жыл бұрын
Omg, i love this guy!! I'm a data science major and I am so happy I stumbled across your channel. I'm gonna sign up with your services.
@IgnisZephyr3 жыл бұрын
There is another way (more computing intensive though), you can transform the numbers into integer and check if they are coprime. The probability that two integers are coprime is equal to 6/π^2. And boom, you have a solution that is way longer to run
@kolbstar3 жыл бұрын
That's using a lot more than just a uniform random variable generator. You're using multiplication, square root, and the definition of coprime.
@StrangerHappened2 жыл бұрын
@@kolbstar the random generator is already ridiculously overboard, unnecessary and slow for pi calculation. So the root comment is just upping the game. And I am sure there are ways to calculate pi that are even slower. There HAS to be a competition for the slowest algorithm.
@kolbstar2 жыл бұрын
@@StrangerHappened I planted a tree in my back yard. I will wait for it to grow to maturity, cut it down, dry it, put it on a lathe to make a rod, then measure its circumference and diameter.
@thaituanly89552 жыл бұрын
how bout - Using a presentation of a circle (center (0,0), r = 1) in a cartesian coordinate system (which would be x^2 + y^2 = r^2) - Find the area that is bound by the circle in the first quarter and the x and y axis using integral, and this area would be 1/4 of a circle - Calculate Pi from that area This way (if works) will require 0 call for random(), and gives you constant runtime + better accuracy.
@astronemir2 жыл бұрын
@@StrangerHappened that’s not true the random generator is a pretty damn good empirical way of calculating pi.
@Oscarrudnas4 жыл бұрын
I was going to comment: I could learn this all day if you would teach it. And then joma academia. Nice thanks
@omegacon44 жыл бұрын
This was a outstanding video. Thanks for making it. I'm just starting to learn Python so appreciate the coding segment in this video as well.
@Hyttelus3 жыл бұрын
This was literally one of the exam question in a programming and microcontroller course I took this semester.
@jepoyburner3 жыл бұрын
This is the classic Monte Carlo introduction problem. Ptsd to my thesis days.
@TrueZenquiorra4 жыл бұрын
Hey Joma! I really loved this content, gonna share with my friends to blow their minds.
@mgancarzjr3 жыл бұрын
When you're finished, you can show them another way and name-drop Euler for extra credit. double x = 0; for(int i = 1; i < some_limit; i++) { x += 1 / (i * i) } print(sqrt(x * 6)); // fixed by Eutu Salli The other, modern, fast formulas (Ramunajan and Chudnovsky) include polynomials and factorials. This would either require using libraries or writing your own functions.
@thaituanly89552 жыл бұрын
how bout - Using a presentation of a circle (center (0,0) r = 1) in a cartesian coordinate system (which would be x^2 + y^2 = r^2) - Find the area that is bound by the circle in the first quarter and the x and y axis using integral, and this area would be 1/4 of a circle - Calculate Pi from that area This way (if works) will require 0 call for random(), and gives you constant runtime.
@mgancarzjr2 жыл бұрын
@@thaituanly8955 the integral of sqrt(r^2 - x^2)dx is 0.5 * (x * sqrt(r^2 - x^2) + r^2 * arctan(x / sqrt(r^2 - x^2))) Assuming you can pull this formula out of your head or derive it (I cannot), the arctan() function becomes a problem. If you can't code an arctan function, you'll need to rely on a math library. If you can access the math library, looking up pi will be far faster. Converting to the polar coordinate system creates a far easier integration and avoids arctan, but then you're integrating in radians which require the use of pi.
@mgancarzjr2 жыл бұрын
@@thaituanly8955 you can do a Reimann sum where you accumulated the areas of very thin rectangles from 0 to 1 whose heights are the sqrt(1 - x.position^2). The issue with that is the same issue with the Monte Carlo simulation in that you're calling a sqrt function n times which is slow.
@etusax2 жыл бұрын
Are you sure your formula there is correct? I implemented your solution and got results pretty far from pi (around 7,7). I'm pretty sure I triple checked the implementation to be correct.
@mgancarzjr2 жыл бұрын
@@etusax you are correct. It should be sqrt(x * 6). I posted a link to a working implementation on an online compiler/debugger, but KZfaq deleted the post. I must be on a naughty list.
@badunius_code3 жыл бұрын
8:40 you could also calculate root mean square of M estimates of size N, and get better precision while maintaining O(n + m) complexity
@wristocrat Жыл бұрын
Easily the funnest programming tutorial I've ever seen, great information too
@AashishMishra_Nygma4 жыл бұрын
1:40 to 1:43 can cure depression, end wars and achieve world peace
@AashishMishra_Nygma4 жыл бұрын
don't believe me? click it back to back
@gabrielrezcp17883 жыл бұрын
@@AashishMishra_Nygma shure i do
@TheJustinmulli4 жыл бұрын
Better solution without the random function (could suggest both solutions, although they never said use the random function anyway) Calculate the area under the first quadrant of the unit circle curve using a riemann sum and multiply it by 4 x = np.linspace(0,1,1000) pi_approx = sum(np.sqrt(1-x**2)*x[1])*4 Also for the solution using the random function just create arrays of random numbers and perform the operations once instead of looping: x = random(n) y = random(n) pi_approx = (sum(x**2+y**2
@MoritzWallis3 жыл бұрын
This is super smart. Never would have thought of this.
@javand862 жыл бұрын
The fact that I'm doing my homework and its a very similar problem to this, so I'm using it for a reference. So glad I watched this earlier, great content man!
@Governorrr4 жыл бұрын
Joma: *gives function total number of points as n* Joma: *proceeds to calculate total number of points as num_point_total*
@phamtuanbinh96553 жыл бұрын
@Light Myst :v Then why won't he name the func param like that. It's simply because of the order of his thoughts.
@icaruscorp15293 жыл бұрын
I think it’s probably a habit from working on bigger projects, where a single letter variable isn’t really a good idea if multiple people work on it
@tutankhamen50803 жыл бұрын
Legit happens to me
@soumojitchowdhury1513 жыл бұрын
@@icaruscorp1529 but its a waste of time. You are passing n to the function and also counting it in side the loop, it adds extra computation for literally no reason
@bo17age2 жыл бұрын
you got me b*tch!
@firepro204 жыл бұрын
I really love learning from this channel, it makes learning complicated stuff fun, with a perfect blend of humour. Also, I really like that Patrick, let the artist know it's great work, whoever it might be.
@macplays44503 жыл бұрын
Your videos are awesome man!
@jomardomingos78863 жыл бұрын
Your sense of humor is great!
@danielfournier60153 жыл бұрын
My first thought was to use the randomly generated points to do numerical integration. I had to first generate points, then sort them, then integrate numerically using trapezoidal sums (average of upper and lower sums). Since i used a simple sorting algorithm that would be in n^2 time it doesn’t seem to be a very efficient solution. I like the way you did it without getting overly complicated. I’ve spent so much time doing heavy pure maths proofs so my brain must have been stuck up there and missed the easier solution. Good job!
@Philgob Жыл бұрын
how the fuck is this your first thought
@amaizel3 жыл бұрын
This is one of the first cases of Monte Carlo you learn! Very simple and elegant solution to estimate Pi. The funny thing is that you can do the same calculation using a cardboard, a baby powder and a scale!
@--.--3 жыл бұрын
OMG! This was so useful and also very fun, thanks!
@yourfuneral2 жыл бұрын
I like the content and appreciate how you guide through the act of creation in a way that shows quick and easy how to connect dots, where to look and how to improve, and all in a funny, entertaining and overall very polished looking way. I feel betrusted in my intellect but yet not overestimated :D First content I saw of yours was the apple-type blinds commercial on your other channel.
@muhammadwasi54604 жыл бұрын
Dude this man is my favourite...except he shows up on my interview day lamo..i'm dead...
@PriyanshGupta29064 жыл бұрын
This is called the Montecarlo simulation
@abdelrhmandameen22153 жыл бұрын
This was very satisfying thanks.
@Whiteleon132 жыл бұрын
Bro your humor is real epic love it, not even cringe
@pablogarin4 жыл бұрын
in python: use command help('modules') to see all modules installed, use command help(module) to see documentation, use command dir(module) to see available commands
@marceloaugusto78304 жыл бұрын
or just use google....
@braer2402 жыл бұрын
I swear I laugh the most watching your videos. So many programming/coding/tech channels try to be funny and it’s just awkward. But joma always delivers
@mitch7w3 жыл бұрын
This was great thanks!
@mionszu2 жыл бұрын
Wow, I remember that. I had it once in my high school classes. Good to know it can be an interview question
@pmoe74 жыл бұрын
I genuinely died when he searched up the area of the circle 😂😂😂
@saisagar56394 жыл бұрын
Yes
@thelastilluminati69593 жыл бұрын
why are you still alive then
@legohexman28583 жыл бұрын
@@thelastilluminati6959 because he was revived by the funny
@angry_moose943 жыл бұрын
Hey btw if anyone is trying to plot the points in the circle graph like I did, remember that the points range from 0-1. So only in the upper right quadrant. If you want to plot them in a full circle, you have to change the range from -1 to 1.
@Concon2373 жыл бұрын
Great video! This is a nice example of a Monte Carlo method, pretty cool :)
@otaviovasconcelos63153 жыл бұрын
Man I love your videoooss!!!
@carlavntr4 жыл бұрын
What kind of program do you use to draw like that? Thank you you're awesome
@jeremyshaw14 жыл бұрын
Interesting question, thanks! This took me way longer to program than it should have (nearly 30min in C). I did learn that floats can get less precise as the numbers get more massive (which I somehow forget; it's obvious), and to use doubles in this case. My INT_MAX iterations got me to 3.141575.
@soumojitchowdhury1513 жыл бұрын
That logic of thinking with the graph is where the main clue is... Awesome idea
@jaycee66892 жыл бұрын
I actually understood this omg. Thanks Joma!!! thanks for the vid might also add that youre “weirdly” entertaining like you know how to do it somehow
@bryanfeliciano41023 жыл бұрын
I look at coding interview questions everytime I wanna feel stupid Edit: I learned python, javascript,and c++ and algos still make me feel stupid 😂.
@modellking3 жыл бұрын
tbh most usual interview questions are easy at companies outside of FANG and where the bosses understand anything about engineering. (Had some during the last year)
@Heroseuss3 жыл бұрын
Lmaoo
@DrRAZI993 жыл бұрын
Lol
@bryanfeliciano41023 жыл бұрын
@@DrRAZI99 glad that made you giggle 😂
@nyb_ok3 жыл бұрын
Its ok. Noone can know everything.
@luchodasavage3 жыл бұрын
I don't even like math, but can't stop watching videos of this dude
@mattbown3 жыл бұрын
Watching your video, and following along makes me feel smarter lol Thanks for the content
@DieFear3 жыл бұрын
I really love this kind of videos
@tarunpatel81683 жыл бұрын
Joma you are amazing, I laughed hard at 5:30 😂😂 Amazing content too
@OpannapO2 жыл бұрын
agree with u 😂
@nikolatesla399 Жыл бұрын
😂😂
@stevenspearman56974 жыл бұрын
5:27 - You went to google.com to google google and clicked on the first google link to take you to google. BIG BRAIN!
@anubhavagrawal39633 жыл бұрын
Teaching recursion for free. 😌
@net2cn2 жыл бұрын
I've done this on my TI graphing calculator back when I was in high school and it was a ton of fun learning about the Monte Carlo method.
@l.meyers33482 жыл бұрын
“Fuckin idiot”…both makes me laugh and cry. Genius, just genius!
@calvintran65443 жыл бұрын
6:08 when he typed in x^2 first before x**2 😂 gets me every time
@calosth4 жыл бұрын
All the knowledge inside this piece of humor, I had to stop and laugh for every joke. Really well done 👏🏼
@cryto-alex58693 жыл бұрын
Pretty cool. Thanks
@Os-ir9wt3 жыл бұрын
Great content!
@jamiejackson21443 жыл бұрын
Instead of using another variable incrementing for total points, you can directly use "n" which came as input argument.
@ellmango Жыл бұрын
lmao
@odikuhschrank79363 жыл бұрын
Hey! I wanted to add a little side note for those that are interested in the maths behind it. Lets imagine that we are throwing arrows at a square of side length 1 (Lets call it "A"). Then the Probability of our arrow landing in the Part of the circle that intersects the square (Lets call it "C") is: Area(C) / Area(A) = pi/4 / 1 = pi/4. Now let X_k be a random variable, with X_k : [0,1)^2 -> {0 , 1} | (x, y) -> { 1, if |(x,y)| < 1 ; 0 in any other case We therefore have: P(X_k = 1) = pi/4, P(X_k = 0) = 1 - pi/4 => Expected Value: E(X_k) = P(X_k = 1) * 1 + P(X_k = 0) * 0 = pi/4 X_k represents our k-th throw. You get 1$ if your arrow lands in the circle and 0$ if it doesnt. We now use the "Weak law of large numbers" which states that 1/N * ( sum(X_k) from 1 to N ) -> E(X_k). Here we are just taking the mean of all our payments gained from throwing arrows. This converges (in probability) towards E(X_k) = pi/4. By using the markov-inequality we can even calculate the minimum number of throws we need to have a certain probality that we are closer than a>0 to pi, for any a>0.
@ganges66613 жыл бұрын
Thanks for creating this video 😊
@ShresthGupta17123 жыл бұрын
bro i like your searching style lol you are awesome bro :)
@hashimalsmael33963 жыл бұрын
3:04 I see what you did there I nearly died laughing LMFAO
@Glendragon3 жыл бұрын
first number: 3.6 (0,46 away) second number: 2.92 (0,22 away) Joma: "that is not more accurate"
@rahulmascarenhas13703 жыл бұрын
Helping me more than college... Thanks man
@0Kyren3 жыл бұрын
He made it so easy to understand
@bogdns3 жыл бұрын
num_point_total is really useful( “n” is useless)
@johmarjac4 жыл бұрын
Jesus, you got me when searching in google for google lmao.. i spit in my cereal
@CharlesSmith-vk8co3 жыл бұрын
You have a great sense of humour,really can relate to it :D
@albertoz.4733 жыл бұрын
Love your sense of humor 😅👍 Great video, as usual 😊
@UmarMash4 жыл бұрын
3:04 i lit laughed so hard... after all the bragging....lol
@ameysawant23014 жыл бұрын
Why no one is talking about how funny at the same time educational his videos are😂😂😂😂😂😂😂😂😂 !!!! You are doing a great job JOMA ✨✨✨✨🔥🔥🔥🔥🔥
@ariadnamartinleon42173 жыл бұрын
please, do more videos like this one, with actual coding, it helps a lot!
@DanishRaza-ji2du3 жыл бұрын
This guy is hilarious. Loving it Joma
@francoisa32314 жыл бұрын
You can actually just divide by n
@jomakaze4 жыл бұрын
Yea oops
@3lietechhack6464 жыл бұрын
How? Could you please explain?
@francoisa32314 жыл бұрын
nb_loop = 10000000 nb_point = 0 x = 0 y = 0 for _ in range(nb_loop): y = x x = random.uniform(0,1) if x**2 +y**2
@Hellopiermy4 жыл бұрын
Super fast way: from numpy import sum, random as r N = 10000 (your choice) sum(r.rand(N)**2 + r.rand(N)**2 < 1) * 4.0 / N
@felipemotorhead4 жыл бұрын
It doesn't matter, I'm not going to write any of these calcs for my applications anyways
@callforjhed4 жыл бұрын
when he started typing "p" in google all the search results and auto texts were blurred and the titles are long and there are dashes and xs and stuffs.... 😆 just kidding. nice video by the way cheers!
@saimyintmyat93733 жыл бұрын
Pork 😂😂😂😂
@kiminotoriko61783 жыл бұрын
That's awesome solution! I never thought that, I mean out of my guess.. Awesome!
@Sufal_Ghosh3 жыл бұрын
Just awesome bro.
@toaderadrian31464 жыл бұрын
2:58 ,my brain after exams
@frankpujo80733 жыл бұрын
2:52 don't mind me, just wanted the golden moment of the video to replay
@smitraichura66513 жыл бұрын
Please make a series of these type of questions
@davelogan772 жыл бұрын
You make me laugh more lately than most comedians.. :-)
@ikersanchez82223 жыл бұрын
3:05 I genuinly almost shit myself just by laughing lmao
@tristunalekzander56083 жыл бұрын
The question doesn't even say you need to use the random function to solve it.