Approximations. The engineering way.

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 พ.ย. 2024

ความคิดเห็น • 519

  • @Hempujonsito
    @Hempujonsito 3 ปีที่แล้ว +1039

    "for calculation purposes, let asume this cow is perfectly round"

    • @thepiratepeter4630
      @thepiratepeter4630 3 ปีที่แล้ว +62

      @@danielyuan9862 Considering the digestive system, isn't a cow more related to a donut?

    • @lucaokino6776
      @lucaokino6776 3 ปีที่แล้ว +25

      let’s assume this cat is a cube

    • @sleepycritical6950
      @sleepycritical6950 3 ปีที่แล้ว +6

      @@thepiratepeter4630 but aren't there more than one orifice?

    • @thepiratepeter4630
      @thepiratepeter4630 3 ปีที่แล้ว +2

      @@sleepycritical6950 But the other orifices aren't "tubes"

    • @sleepycritical6950
      @sleepycritical6950 3 ปีที่แล้ว

      @@thepiratepeter4630 still counted. A sphere with a hole is no longer a sphere. A torus with a hole on the surface is also not a torus.

  • @Nylspider
    @Nylspider 3 ปีที่แล้ว +949

    "Approximations"
    Oh cool
    "The Engineering way"
    _oh boi this is gonna be good_

    • @blankblank9621
      @blankblank9621 3 ปีที่แล้ว

      Google Play Store Search : jumpjump

    • @blankblank9621
      @blankblank9621 3 ปีที่แล้ว

      Fun And Surprising Game is here.

    • @blankblank9621
      @blankblank9621 3 ปีที่แล้ว +1

      playtime is short but,

    • @blankblank9621
      @blankblank9621 3 ปีที่แล้ว

      only 1 dollar cost is snack cost. This Is Jump Game Adventure. Great BGM And GRAPHIC Is In the Game. Please Enjoy. jumpjump game is Fun.

    • @blankblank9621
      @blankblank9621 3 ปีที่แล้ว

      Thank you

  • @深夜-l9f
    @深夜-l9f 3 ปีที่แล้ว +443

    I'm an engineer
    I see approximation
    I click

  • @johnchessant3012
    @johnchessant3012 3 ปีที่แล้ว +454

    Fun fact: The number of correct digits roughly *doubles* with each iteration of Newton's method. So for example you could compute 1 billion digits of sqrt(17) with about 30 iterations.

    • @rsa5991
      @rsa5991 3 ปีที่แล้ว +70

      While this is true, it only works when you already know at least one correct digit. If the initial guess is way off, you'll only get halfway closer to the solution. That's why having a good initial guess is important.

    • @livedandletdie
      @livedandletdie 3 ปีที่แล้ว +11

      The number of correct digits, depends on how tight the margins are. If the margins are loose or tight, you'll have to vary your input. Sometimes a single digit input works sometimes a handful will.

    • @Naverb
      @Naverb 3 ปีที่แล้ว +5

      The relevant theorem here is that there is a small domain about any attractive fixed point in which convergence is quadratic.

    • @AirshipToday
      @AirshipToday 2 ปีที่แล้ว +2

      @@rsa5991 yes but we know the first digit of every square root

    • @biglexica7339
      @biglexica7339 2 ปีที่แล้ว +1

      @@Naverb proof?

  • @rentristandelacruz
    @rentristandelacruz 3 ปีที่แล้ว +271

    I'm only at 0:16 and I'm already having numerical computing class flashbacks (took that class ten years ago). Netwon Raphson, Regula Falsi, Runge-Kutta. It's all coming back.

    • @omgmaster9985
      @omgmaster9985 3 ปีที่แล้ว +14

      Gauss-Seidel, Picard aaaaah

    • @jpheitman1
      @jpheitman1 3 ปีที่แล้ว +14

      Just finished it two weeks ago...
      AAAHHHHH

    • @Lynx-vi3bi
      @Lynx-vi3bi 3 ปีที่แล้ว +14

      Bisection method :D

    • @alexandroskarypidis1891
      @alexandroskarypidis1891 3 ปีที่แล้ว +9

      I learned FORTRAN in uni when doing this stuff! I'd forgotten I once knew FORTRAN!

    • @moriarteaa4692
      @moriarteaa4692 3 ปีที่แล้ว

      Just had this Yesterday 😂

  • @adityachk2002
    @adityachk2002 3 ปีที่แล้ว +228

    Math never fails to surprise me, I could not even think such a thing could exist

    • @Simpson17866
      @Simpson17866 8 หลายเดือนก่อน

      The original special case for square roots is called "The Babylonian Method" because it was invented by a Greek mathematician living in Egypt.
      I think it was named by an engineer who decided "Greece and Egypt ≈ Babylon"

  • @Cralcker
    @Cralcker 3 ปีที่แล้ว +117

    We’re doing this in my calc class rn and I swear to god you explain it better than my professors

  • @RC32Smiths01
    @RC32Smiths01 3 ปีที่แล้ว +85

    "Why be right when you can approximate?"

    • @livedandletdie
      @livedandletdie 3 ปีที่แล้ว +10

      Why get a girlfriend when you can get a proxy mate.

  • @davidbeckham2715
    @davidbeckham2715 3 ปีที่แล้ว +80

    Please keep making these so I can make it through college.

  • @JTCano42
    @JTCano42 3 ปีที่แล้ว +109

    The Forbidden Math

  • @iangolsby8471
    @iangolsby8471 3 ปีที่แล้ว +30

    That square root approximation is elegantly simple. Each guess is just the average of the previous guess, and the number over that previous guess. As you approach the root, it becomes the average of the root and the number over the root (number over root is the root). So beautiful

  • @kazuhoshiinoue2695
    @kazuhoshiinoue2695 3 ปีที่แล้ว +397

    Mathematicians: We need exact solutions!
    Engineers: Nah, "close enough" is good enough.

    • @billferner6741
      @billferner6741 3 ปีที่แล้ว +14

      Right! We first determined what percentage is acceptable, then we stopped iterating. Btw, they went to the moon with calculating with a slide ruler, only 3 decimals, with estimation, 4.

    • @justyourfriendlyneighborho903
      @justyourfriendlyneighborho903 ปีที่แล้ว +2

      But those numbers are irrational, we will never have an exact solution, the estimation becomes synonymous with the exact value for any actual application and for anything abstract we just keep it as is, sqrt(a)

    • @DaTimmeh
      @DaTimmeh 6 หลายเดือนก่อน

      Applied Mathematicians: We need to get exactly close enough!

  • @theoreticalphysics3644
    @theoreticalphysics3644 3 ปีที่แล้ว +627

    Ah, the fundamental theorem of engineering.

    • @Ryanisthere
      @Ryanisthere 3 ปีที่แล้ว +60

      2 = e = π =3
      this is the first thing you learn in engineering college

    • @vendettaanonimous5545
      @vendettaanonimous5545 3 ปีที่แล้ว +2

      @@Ryanisthere haahhahahhahhahha awesome😁😁😁😂😂😂 engineer for ever😎😎😎

    • @vendettaanonimous5545
      @vendettaanonimous5545 3 ปีที่แล้ว +15

      and sin(x) = x 😂😂

    • @black_jack_meghav
      @black_jack_meghav 3 ปีที่แล้ว +8

      @@Ryanisthere i don't quite get these jokes. Aren't engineers got to be precise so that buildings don't fall off and circuits don't burn? Using pi=3 would be a fukin travesty, right?

    • @Ryanisthere
      @Ryanisthere 3 ปีที่แล้ว +3

      @@black_jack_meghav r/woooosh

  • @rbpict5282
    @rbpict5282 3 ปีที่แล้ว +50

    That's a really cool formula

  • @PapaFlammy69
    @PapaFlammy69 3 ปีที่แล้ว +574

    Nice Clock and Watch, where can I get one of deeze, Zach? :^D

    • @ViratKohli-jj3wj
      @ViratKohli-jj3wj 3 ปีที่แล้ว +28

      Hi Papa flammy

    • @Raren789
      @Raren789 3 ปีที่แล้ว +11

      Papa

    • @tathagatmani
      @tathagatmani 3 ปีที่แล้ว +11

      father

    • @sharpman5772
      @sharpman5772 3 ปีที่แล้ว +11

      Daddy

    • @youssofa.8208
      @youssofa.8208 3 ปีที่แล้ว +8

      I would highly recommend them you can get them on stemerch.com :) papa flammy

  • @jacktorborg9862
    @jacktorborg9862 3 ปีที่แล้ว +15

    I had to use the newton raphson method in my engineering career a few years ago to approximate a function (solving a Civil Engineering equation backwards with multiple square roots in weird places) that otherwise converges on a few nonreal/negative answers and one real, positive one I was looking for. I never thought I would actually apply it in my life when I learned it, but it felt so cool to have a real world application for it! Made me realize that weird, theoretical math part of my degree wasn't quite such a waste of time after all!

  • @kyrond
    @kyrond 3 ปีที่แล้ว +19

    I did a Bachelors thesis partly on this, when I finally got how it worked when I saw it, it was almost magical.

  • @benthayermath
    @benthayermath 3 ปีที่แล้ว +14

    We ❤ approximations!
    Honestly, sometimes wanting an exact solution is lazy. People don't realize how much math goes into designing numerical methods and proving their convergence and stability.

    • @bobh6728
      @bobh6728 3 ปีที่แล้ว +1

      Most square roots can only be approximations since they are irrational. There is no exact solution unless you write with the square root symbol. If you want to use just digits it is going to an approximation. To anyone who says “just use a calculator”, guess what? The calculator uses an algorithm to find the square root up to the number of digits the calculator can work with.

  • @mastershooter64
    @mastershooter64 3 ปีที่แล้ว +16

    dude I was just expecting to get some stuff like pi = 3 = 3 or g^2 = 10 or something like that, but I actually learned a lot!

  • @aenesturan
    @aenesturan 3 ปีที่แล้ว +77

    first law of engineering: everything is linear

  • @billferner6741
    @billferner6741 3 ปีที่แล้ว +6

    Interesting topic! This reminds me on programming in BASIC interpreter 40 years ago. At that time the value of PI was not implemented, the solution was : 4*arctan(1), which gave PI with the accuracy of devise's BASIC.

  • @foxtrot8325
    @foxtrot8325 3 ปีที่แล้ว +17

    Zach : It's possible to get stuck in an infinite loop.
    Float error : IT'S MY TIME TO SHINE

  • @braxtonclaflin1818
    @braxtonclaflin1818 3 ปีที่แล้ว +14

    We’re literally on this exact topic in calculus right now

  • @ssquarkgaming1405
    @ssquarkgaming1405 2 ปีที่แล้ว +4

    What a great video 👌
    It would have been such a great starting point for me a while back when I was writing GPU algorithms for fast square and cube roots of float 32 and float 64 values.
    Managed to get them super fast combining Taylor series expansions, the power laws and the good old Newton raphson iteration. If I remember correctly, about 3ns to compute cube root to fp64 precision.

  • @sameerkamath1239
    @sameerkamath1239 3 ปีที่แล้ว +3

    Really cool to see these real world applications- the way you teach math makes it fun and interesting!

  • @machinedgod
    @machinedgod 3 ปีที่แล้ว +4

    Quickly becoming my favorite youtube channel!

  • @FranzBiscuit
    @FranzBiscuit 3 ปีที่แล้ว +3

    The effort put into these videos is just amazing. And the educational content, truly first class. Keep up the good work Zach!

  • @DeGuerre
    @DeGuerre 3 ปีที่แล้ว

    The way your computer calculates square roots (assuming it's a recent computer) is using a related method, Goldschmidt's algorithm. Let Y be an approximation to sqrt(n). Set:
    x_0 = Y*n
    h_0 = Y*0.5
    And iterate:
    r_i = 0.5 - x_i * h_i
    x_{i+1} = x_i + x_i * r_i
    h_{i+1} = h_i + h_i * r_i
    Then x_i converges to sqrt(n) and y_i converges to 1/2sqrt(n). As hinted at in the video, some approximations have advantages over others. In this case, the advantage is that the "inner loop" is three copies of the same operation a + b * c, called a "fused multiply-add". This saves on circuitry compared to Newton-Raphson methods.

  • @moncefkarimaitbelkacem1918
    @moncefkarimaitbelkacem1918 3 ปีที่แล้ว +12

    quality content
    as always

  • @davidhicks8290
    @davidhicks8290 3 ปีที่แล้ว +2

    Numerical analysis is the coolest class of functions that have already been written for you

  • @LaserFur
    @LaserFur 3 ปีที่แล้ว +2

    long ago I wrote a integer Square root on a DSP processor. It used the DSP's single cycle multiplier to create the square. then it compared it and set one output bit. after 16 loops I had a 16 bit result.

  • @Lunamana
    @Lunamana 3 ปีที่แล้ว +2

    I have a Numerical Analysis midterm in 8 hours so i clicked on this as soon as i saw it in my sub box, thanks ^^

  • @aceroadholder2185
    @aceroadholder2185 3 ปีที่แล้ว +1

    Some approximations are quite good. If you use 22/7 for the value of Pi then on a 100 ft. diameter circle the circumference error is ~one and a half inches.

  • @CellarDoor-rt8tt
    @CellarDoor-rt8tt 3 ปีที่แล้ว

    Just to contribute an interesting point here. Arguably the most significant piece of evidence we have when it comes the global regularity problem for the Navier Stokes equations is Terence Tao’s work on the subject. His biggest paper on the subject showed that for an approximated form of the Navier Stokes equations (one that has been averaged in an extremely specific and accurate way) blow up results occur.
    The relevance of this is two fold
    1. This may very well be one of if not the most complicated approximations ever thereby showing how approximations are an important part of math and science at every level
    And 2. It shows that even pure mathematicians can use approximations to create partial progress on the toughest problems ever. That result was huge as it showed both that there is a possible pathway toward a full solution and it also showed that any attempt at proving global regularity in the positive would require methods which delve into the finer nonlinear structures with the full pde that got averaged out in the approximation. In many ways, this paper is why most of the community believes that global regularity for Navier Stokes is going to be solved in the negative whenever it happens.

  • @ArmaanDK
    @ArmaanDK ปีที่แล้ว

    Thank you for bringing context to an otherwise "insignificant" topic covered for 15 mins in a first year calculus course! I thought I hated math, but I've just been missing out on how much fun it can be once you wrap your head around the concepts

  • @gastonhebert9967
    @gastonhebert9967 3 ปีที่แล้ว

    Doing it at engineering school, and very happy to find it on TH-cam ! Thanks

  • @shrideepgaddad8721
    @shrideepgaddad8721 3 ปีที่แล้ว +4

    Holy crap thanks for explaining this, the random pdfs that I found on the internet are confusing as hell.

  • @daviddabeegukabassima8232
    @daviddabeegukabassima8232 ปีที่แล้ว

    As an Engineer I relate to these useful approximations. Thank you so much for theses examples and explanations!

  • @kairostimeYT
    @kairostimeYT 3 ปีที่แล้ว +16

    Applied Numerical Methods. I don't remember the exact name but I remember a technique which converts a definite integral to two (or natural number) terms. Gauss quadrature rule, was it? I honestly was intrigued by this method.

  • @danieljulian4676
    @danieljulian4676 3 ปีที่แล้ว

    Right after watching this video, I listened to Bob Dylan singing "Queen Jane Approximately" from "Blonde On Blonde". Dylan really sucks at rigorous explanation, and Newton-Raphson is also well-presented elsewhere ad nauseam. I understand that going beyond the basics is more difficult, which makes producing lots of videos less likely, and maybe no one will ever even look for the next steps. That is the dilemma of the youtube STEM educator, and is in large part why MIT's OCW series and similar stuff exists and is valuable. That said, it's great that you are reaching out to learners who are just starting out. Well done, man. L'chaim.

  • @TheDecooledaan
    @TheDecooledaan 3 ปีที่แล้ว +2

    Great timing. I'm starting my numerical analysis class at uni tomorrow

  • @KurdstanPlanetarium
    @KurdstanPlanetarium 3 ปีที่แล้ว

    There is a better equation for finding the square root: Xn+1 = A/2 + C/2A, where A is our first estimation and later subsequent numbers as we go for solving X2 and so on... If we get our first estimation near the true value (that shouldn't be too difficult), we can solve the square root of C in 2 - 3 lines only !!

  • @iGR8soccer
    @iGR8soccer 3 ปีที่แล้ว +1

    could have used this video last semester during numerical methods. you explained it better in 14 minutes than my prof did in 3 lectures

  • @jessstuart7495
    @jessstuart7495 3 ปีที่แล้ว +1

    Chebyshev Approximations are also very useful.

  • @AdityaKumar-ij5ok
    @AdityaKumar-ij5ok 3 ปีที่แล้ว +1

    Everyone in comments section: it was about time that you decided to finally make a video this

  • @feuerrm
    @feuerrm 3 ปีที่แล้ว +1

    Looking forward to a video about Numerical Analysis, I'm taking it in the fall!

  • @EmperorSaistone
    @EmperorSaistone 3 ปีที่แล้ว

    Absolutely beautiful. I learned that stuff year ago at the university, but you described it so so much better.

  • @caelank5544
    @caelank5544 3 ปีที่แล้ว

    This is so incredibly helpful. I literally had a numerical analysis assignment last week where we had to use Newton Raphson

  • @juliusteo
    @juliusteo 3 ปีที่แล้ว +1

    I took numerical analysis in uni (I think it was called numerical methods) and they recommended to have two scientific calculators to iterate calculations more efficiently (if we're not going to bring our laptops to use excel in class)

  • @danielyuan9862
    @danielyuan9862 3 ปีที่แล้ว

    The thing is, if you take x_{n+1}=1+1/(x_n), you'll eventually converge to the golden ratio, but if you use newton's method on f(x)=x^2-x-1, you have x_{n+1}=((x_n)^2+1)/(2*x_n-1), and if you try this, you'll also reach the golden ratio, but it's MUCH faster. This is because, as the approximation gets closer to the correct answer, the graph more closely resembles a line, and since newton's method assumes the graph is a line for every step. The rate at which you reach the answer increases drastically.

  • @matthewao
    @matthewao 3 ปีที่แล้ว +3

    approximations the engineering way: 𝝅=e=3, g=10m/s²=9=𝝅²=e²

  • @vjekokolic9057
    @vjekokolic9057 3 ปีที่แล้ว

    11:53 both solutions of the equation are the golden ratio, but one is the longer side/shorter side and the other one is the reciprical, shorter side/longer side

  • @wubbalubbadubdub6489
    @wubbalubbadubdub6489 3 ปีที่แล้ว

    Newton’s root find method!
    1) x=sqrt(c)
    2) x^2 - c = 0
    3) f(x) = x^2 - c. Now let’s solve for what value of x does f(x) = 0.
    4) use Newton’s method: x_{n} = x_{n-1} - [ f( x_{n-1} ) / f’( x_{n-1} ) ) ] where f’ is the first derivative of f.
    Note... the order of convergence is quadratic but not in all cases.

  • @dylgir1332
    @dylgir1332 3 ปีที่แล้ว

    Yas! You posted something on your OG profile! LIT 🔥

  • @slartbarg
    @slartbarg 3 ปีที่แล้ว +5

    Numerical Methods was one of the more rigorous and work-intensive courses in my mechanical engineering workload so far

  • @JonathanMandrake
    @JonathanMandrake 2 ปีที่แล้ว

    Another example of numerical approximations of things that are hard to arithmetically calculate is a matrix inverse. Similar to the iteration pf the square root, there is a simple iteration process that leads to a good approximation of the matrix inverse, which takes way longer to compute than the square root, both on a camculator and by hand

  • @justinmccoy4270
    @justinmccoy4270 3 ปีที่แล้ว +2

    The quake 3 fast inverse square root video got me into watching these kinds of videos. Now that's a meme you'll want to see.

  • @AK56fire
    @AK56fire 3 ปีที่แล้ว +2

    Very awesome video Zack.. Keep up the good work..

  • @bgggeometry6082
    @bgggeometry6082 2 ปีที่แล้ว +1

    Fundamental theorem of engineering:
    pi = e
    pi = 3
    e=2
    e^x = x^2 + 1
    √x = x
    sin(x) = 1

  • @dakkadakka4036
    @dakkadakka4036 3 ปีที่แล้ว

    Im currently taking a numerical analysis course right now, this 10 minute video made more sense than the whole class has this semester -.-

  • @TylinaVespart
    @TylinaVespart 3 ปีที่แล้ว

    Damn it's been ages since I did maths "properly", but this was really accessible and a good reminder of how it all slots together. Thank you!

  • @rubenlarochelle1881
    @rubenlarochelle1881 3 ปีที่แล้ว +1

    0:00 I've been studying and practicing English for the last 22 of my 25 years of age, but only now I found out that, unlike my mother tongue, English has two separate words for clocks and watches, despite I've known and used both words for years now.

  • @MusiXificati0n
    @MusiXificati0n 3 ปีที่แล้ว

    This video would have been glorious half a year ago... Had a University course in evolutionary game theory and literally all of it was linear approximation because biological/evolutionary models are only estimations and I did not understand what a fixed point was. Seems so easy now...
    Thanks a lot!

  • @mahdialhassan6802
    @mahdialhassan6802 2 ปีที่แล้ว

    Dude, I really have to watch all your videos about engineering’s stuff. im in my second year and there is a lot of things i have to be familiar with

  • @roberthuntley1090
    @roberthuntley1090 ปีที่แล้ว

    One that I can remember (I picked it up from one of Clive Sinclair's companies) is that Pi to 6 decimal places is 355/113. Dates back to the early calculators of the 70s, before scientific calculators were available at affordable prices.
    BTW - 3550001/1130001 does this to 8 decimal places.

  • @Sam-he3ks
    @Sam-he3ks 3 ปีที่แล้ว

    You should definitely talk about the finite element method. Approximating differential equations is a huge deal in engineering (especially civil/mechanical/aerospace)

  • @rajbunsha8834
    @rajbunsha8834 3 ปีที่แล้ว

    I heard about it before but was thinking why isn't it too famous thanks for elaborating it. I always wanted to know more about it keep it up😀😀😀👍👍🙏🙏

  • @clastastic
    @clastastic 3 ปีที่แล้ว

    I read this under the heading computational methods
    TODAY!!

  • @vincentdavis8960
    @vincentdavis8960 3 ปีที่แล้ว +1

    Great video! I was wondering if you would mention the Quake fast inverse square root and then bam! Awesome. Keep up the great work!

  • @marsp2691
    @marsp2691 3 ปีที่แล้ว +8

    Just proof lim (xn)n=sqrt(c) but that wouldn’t be engineering style

  • @C0MPLEXITY
    @C0MPLEXITY 3 ปีที่แล้ว

    Thanks a lot for the amazing info dude, it's satisfying to get stuff explained by you

  • @MrMoore0312
    @MrMoore0312 3 ปีที่แล้ว

    Thanks for the timely video and inspiration! Just finished related rates in Stewart's calculus and the literal next section is linear approximations. Loved this video and can't wait to be thoroughly confused by that coming numerical analysis video lol

  • @sunnohh
    @sunnohh 3 ปีที่แล้ว

    That was one of the coolest videos about a table on my calculus book that I took as magic

  • @udaysrivastava1957
    @udaysrivastava1957 3 ปีที่แล้ว

    Please make videos like this.
    It was a wonderful video.

  • @wendolinmendoza517
    @wendolinmendoza517 2 ปีที่แล้ว

    10:43 that iteration method is just computing the finite simple continued fractions of the golden ratio, and will converge to its simple continued fraction.
    A great opportunity to bring up that topic :D

  • @HypercopeEmia
    @HypercopeEmia 2 ปีที่แล้ว

    i also have an amazing aproximation technique it's done like this "hmm root of 17 has to be more then 4 since 4^2 =16 but less then 5 since 5^2=25, it's closer to 4 so for all intents and purposes it's 4"

  • @marklu5521
    @marklu5521 3 ปีที่แล้ว +1

    Wait a minute… back in calc 1 I only learned (f(x-h) + f(x)) / hunt holy crap this brought me a whole new meaning lol

  • @MrRickyw01
    @MrRickyw01 3 ปีที่แล้ว

    This reminds me of another kind of approximation. Take 50% of a number. In the first iteration, let's call it a distance e.g., 1", the first iteration is 1/2", then 1/4", then 1/8", next 1/16". Notice that the distance covered in just 4 iterations is almost 94% of the total distance of 1. This same logical/simple process applies to almost any subject. If you are learning to play a musical instrument, your skills will increase exponentially in the beginning. However, if your objective is to become an expert, the skill level will increase very slowly, after the 4th iteration. Therefore, from a business point of view, one must define the point of diminishing returns.

  • @soyoltoi
    @soyoltoi 3 ปีที่แล้ว +1

    Diophantine approximation is a surprisingly interesting area of number theory too.

  • @onstantinosameranis4674
    @onstantinosameranis4674 3 ปีที่แล้ว

    there are some really cool algorithms. First order methods that use only the derivative and second order methods that need fewer iterations but are damn expensive. @Zach Star Please make a video on gradient descent. Hopefully some of the my students will see the simple version and we can move directly into the more involved variants. There is plain gradient descent, smooth gradient descent, accelerated gradient descent, mirror descent, coordinate descent, BFGS and L-BFGS.

  • @aidanokeeffe7928
    @aidanokeeffe7928 3 ปีที่แล้ว +7

    Thank you for making this. A needed response to all the cringey "pi=e=3" memes!

  • @Pedritox0953
    @Pedritox0953 3 ปีที่แล้ว +1

    Awesome video!

  • @FromLake
    @FromLake ปีที่แล้ว

    Thank you very much for this video.

  • @naswinger
    @naswinger 3 ปีที่แล้ว

    can't wait for the numerical analysis examples that took way longer than expected :-)

  • @makkusaiko
    @makkusaiko 2 ปีที่แล้ว

    Finally, i good way of writing down Heron's method

  • @nix_
    @nix_ 3 ปีที่แล้ว +35

    I remember doing this in maths. Just not sure if it was GCSE or A-level.
    Edit: It was A-level

    • @SaiyaraLBS
      @SaiyaraLBS 3 ปีที่แล้ว +1

      YESS i just remembered toooooo

    • @SaiyaraLBS
      @SaiyaraLBS 3 ปีที่แล้ว

      I think it was Fp2 ?

    • @SaiyaraLBS
      @SaiyaraLBS 3 ปีที่แล้ว

      or Fp1

  • @Ry____
    @Ry____ 3 ปีที่แล้ว +1

    I’m an engineer and I can say with experience that eyeballing data and using google will take you far in your career

  • @raybroomall8383
    @raybroomall8383 3 ปีที่แล้ว

    I believe the 4th dimension may not be as rational as we think. Here's why:
    There is the smallest Pythagorean triplet as 3,4,5. and the similar set for cubes, 3,4,5,6. But when we consider a Pythagorean quadruple in the 4th dimension, and stipulating that the set has a constant difference, there is no such set. It is provable using the cyclic set generated by (a^n) mod 10. When n = 4 the cyclic set is 0,1,6,1,6,5,6,1,6,1,0. This is not a Group. No set of 4 consecutive elements will sum to the next consecutive element. i.e. 3^4+4^4+5^4 +6^4 ~= 7^4 And no matter what 4 consecutive elements used they will not sum to the 4th power of the fifth consecutive element.
    Given that an inductive proof might be used to prove the converse without ever performing the calculation, how do we know that the metric on a space, the square root of the sum of the squares is indeed true for dimensions greater than 3.

  • @bittubabu4178
    @bittubabu4178 2 ปีที่แล้ว

    ooh boi i am going through these in my current semester and already coded the fn for iterattive method and newton raphson, loved to know more on it😊

  • @tomcarroll6744
    @tomcarroll6744 ปีที่แล้ว

    Good stuff. Nice job.

  • @ARKGAMING
    @ARKGAMING 3 ปีที่แล้ว

    The clock looks awesome

  • @jannegrey
    @jannegrey 3 ปีที่แล้ว

    I only learned something similar I think. It was based on Taylor series and you got out of it the approximate value after iteration and how big the error was.
    I don't remember it very well - it was years ago - but I think if you wanted to know for example sqrt(10) - you just used sqrt(9) and sqrt(16) - so basically bracketed a number, or used (I don't remember if you needed bigger and smaller, or just 1 number that was close and knows) an easy number with the same function (in this case sqrt(x)) to start approximation. Sorry - I learned it, while learning Calculus. It looks a bit like the second method in 12:25 - but I'm not 100% certain.

  • @cesaramaro6933
    @cesaramaro6933 3 ปีที่แล้ว +2

    I went through the first 4 minutes of this just thinking huh, this reminds me a lot of Newton-Rhapson that I learned last summer in Numerical Comp.

  • @lalero88
    @lalero88 3 ปีที่แล้ว

    %without negative numbers and more stuff
    guess=3;
    num=5.12;
    x_prev=0;
    x=1/2*(guess+num/guess); % first guess
    for i=1:10
    x_prev=x; % save the previous result (xn, x(n+1),......,x(n+10))
    x=1/2*(x_prev+num/x_prev); % calculate x(n+1)
    end
    without negative numbers

  • @duncanmcneill7088
    @duncanmcneill7088 3 ปีที่แล้ว +1

    If only I’d been more curious when my Tutor at university (back in 1978) said “sometimes the iterative method doesn’t settle on a stable solution - if it doesn’t then just pick a different starting point and try again...” then I might be a billionaire by now.

  • @OMARYassin1
    @OMARYassin1 3 ปีที่แล้ว

    A decent introduction to Numerical Analysis

  • @patrickforsyth9880
    @patrickforsyth9880 3 ปีที่แล้ว

    great vid as always

  • @universalalgorithm3263
    @universalalgorithm3263 2 ปีที่แล้ว

    To simplify calculations let e = 3, pi = 3, and 3 = 2.9!

  • @thespuditron9387
    @thespuditron9387 3 ปีที่แล้ว +1

    Ok, so I just tried the square root formula on excel and it is so damn satisfying.

  • @servvo
    @servvo 3 ปีที่แล้ว +1

    "what we've been seeing is called the Newton-Raphson Method, or sometimes just called Newton's method" Fs in chat for raphson