Preview: The Magic of Gaussian Quadrature - A Billion Times Better than the Next Best Thing

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии •

  • @MathTheBeautiful
    @MathTheBeautiful  4 года назад +3

    Go to LEM.MA/LA for videos, exercises, and to ask us questions directly.

  • @japhatkorowa
    @japhatkorowa 2 года назад +4

    Your voice makes me to understand the concept very clearly.

    • @MathTheBeautiful
      @MathTheBeautiful  2 года назад +5

      Thank you! It's nice when a Russian accent stands for something positive.

  • @bjthinks
    @bjthinks 9 лет назад +96

    This is a great example, but it doesn't tell me anything about how Gaussian Quadrature works under the hood, or where the sampling points or weights come from.

    • @MathTheBeautiful
      @MathTheBeautiful  9 лет назад +16

      +Brian Johnson That's right. It requires a fair deal of linear algebra to explain the technique.

    • @keepsmiling1304
      @keepsmiling1304 8 лет назад +13

      You should recieve the Oscar award of Teaching.Indeed you are an amazing Teacher.Your students are the Luckiest out there...

    • @bencehalmosi8919
      @bencehalmosi8919 5 лет назад +1

      @@MathTheBeautiful you made a video where you say this method exists and good. thx. pls don't waste my time before exam anymore. is this really a lesson?

    • @MathTheBeautiful
      @MathTheBeautiful  4 года назад +8

      @@bencehalmosi8919 ruclips.net/video/65zwMgGZnUs/видео.html

    • @nhanNguyen-wo8fy
      @nhanNguyen-wo8fy 4 года назад +36

      @@bencehalmosi8919 I just don't like the way you talk to our professor like that.
      His lecture mean the world to me and professor don't have the duty to teach me or you.

  • @beatleplayer1011
    @beatleplayer1011 8 лет назад +28

    Well that definitely contributed quite a lot to my excitement for the course. That accuracy is insane....

  • @salsadancer00
    @salsadancer00 9 лет назад +33

    Gauss was a beast!

    • @133839297
      @133839297 Год назад

      Only Euler could stand 1 min in that math fight. 😂

  • @yehoshuakahan7187
    @yehoshuakahan7187 9 лет назад +10

    Thank you for allowing me the chance to benefit from your knowledge.

  • @d1ng1z
    @d1ng1z 4 года назад +5

    Thank you for explaining this simply and precisely. Great stuff!

  • @AdityaSingh-cf1jp
    @AdityaSingh-cf1jp Год назад

    But how do you KNOW that the Gaussian quadrature method is a better approximation than the rectangle method? For that we would have to know the exact area beforehand right?

  • @abajabbajew
    @abajabbajew 10 лет назад +5

    I first learned of Gaussian Quadrature before computers (well, not quite!) but at any rate, I remembered being struck by the lecturer's claim that (for a numerical method) this one was 'exact', which seemed inexplicable. It turns out that GQ is 'exact' but only for polynomials - so if your function IS a polynomial the method is able to find the integral exactly for degree two times the number of sample points used. Here the trancendental function cos^2(x) was still being approximated but in effect by a polynominal of degree 20.
    (Nice demonstration though)

  • @chenweicui7887
    @chenweicui7887 Год назад +2

    Thank you for this perfect introduction! It is really intuitive, appreciate it

  • @Iamherp
    @Iamherp 8 лет назад +6

    I am a 19 year old physics student from the US. Thanks for providing an intuitive and world-class math education for those who cant afford it. Thank you so much.

  • @ozzyfromspace
    @ozzyfromspace 4 года назад +1

    The amazing thing is, I thought the “a billion times better” statement was clickbait, or more likely, just a figure of speech. Turns out it really is that much better, at least in the example he showed us. I’m mind blown, this is amazing! I just came from his three videos on how this all works under the hood, and I’m not disappointed. I’m gonna use Gaussian Quadrature to compute the E&M fields in Maxwells equations for a material whose permittivity and permeability vary in time and space. So excited to give this a try! 😁🎊💯🔥🙌🏽

  • @StephenRayner
    @StephenRayner 10 лет назад +3

    I love these thank you so much! please don't stop these are really good.

  • @rohitsrao
    @rohitsrao 4 года назад +2

    A click baity video title that is actually true! Loved it. Thanks

  • @desharma90
    @desharma90 2 года назад

    Any idea how to use this method for a data set that is not between -1 and 1?

    • @INT41O
      @INT41O 2 года назад

      shifting and scaling

  • @laraschupfer6826
    @laraschupfer6826 4 года назад +1

    Thank you for your work!! Just amazing what you have done for us.

  • @forsakensounds
    @forsakensounds 6 лет назад +2

    Wonderful example ! An astonishing technique ! :O

  • @coffeedotbean
    @coffeedotbean 3 года назад

    I'm leaving my jaw dropped here. I'll come back for it later. Thank you.

  • @melainneescolta5552
    @melainneescolta5552 4 года назад

    hello. how did you get the x and w values for each in gaussian quadrature

  • @AJ-et3vf
    @AJ-et3vf 2 года назад

    Awesome video! Thank you!

  • @Frank_The_Tank22
    @Frank_The_Tank22 7 лет назад +2

    That was so awesome!

  • @SlykeThePhoxenix
    @SlykeThePhoxenix 9 лет назад

    Is there anyway to calculate those numbers? Or can you do a video on it? I haven't been through your videos yet if you have, I will check though.

    • @MathTheBeautiful
      @MathTheBeautiful  9 лет назад +3

      SlykeThePhoxenix No, that will come later in the course in the Part on Inner Products.

    • @MathTheBeautiful
      @MathTheBeautiful  4 года назад +1

      ruclips.net/video/65zwMgGZnUs/видео.html

  • @alexbenjamin5823
    @alexbenjamin5823 10 лет назад +1

    Fantastic lecture!

  • @zxLoneWolf
    @zxLoneWolf 4 года назад

    Very informative, thanks

  • @sigmatau8231
    @sigmatau8231 4 года назад

    super excited...

    • @MathTheBeautiful
      @MathTheBeautiful  4 года назад

      And with good reason! (Also see ruclips.net/video/65zwMgGZnUs/видео.html where this topic is developed)

  • @JaanuMoorthy
    @JaanuMoorthy 4 года назад

    Thank you sir

  • @rubayettanveer3479
    @rubayettanveer3479 5 лет назад

    Good. Keep it up.

  • @sollovesflowers4899
    @sollovesflowers4899 3 года назад

    4:19

  • @moularaoul643
    @moularaoul643 3 года назад

    Perfect!!!

  • @gustavlotz5415
    @gustavlotz5415 3 года назад

    awesome

  • @alfonshomac
    @alfonshomac 10 лет назад +3

    wow, that's crazy!

  • @ivanzagar8672
    @ivanzagar8672 7 лет назад +1

    Tell me more X3

  • @anirudhkarumuri4341
    @anirudhkarumuri4341 2 месяца назад

    The last column should be f(x) *w and not f(x) 😅

  • @kartickmanna8466
    @kartickmanna8466 7 лет назад +2

    My GOD ... Mathematics shows the way to all the Sciences ...........

  • @kitsVideo
    @kitsVideo 8 лет назад +1

    Yeah but 10 points with Gaussian quadrature with that much floating point arithmetic it is way more computationally intensive than approximating by left point rectangles, which makes the example misleading with regards to how useful gaussian quadrature actually is.

    • @MathTheBeautiful
      @MathTheBeautiful  8 лет назад +1

      Why would you say it's more computationally intensive? I think it's about the same amount of computation since each method evaluates the function 10 times.

    • @kitsVideo
      @kitsVideo 8 лет назад

      Wrong word, sorry. I meant computationally expensive.
      Floats, especially high precision ones require more cycles(I am referring to the csubi*f(xsubi) part of the calculation here.), so from a computer hardware perspective Gaussian quadrature cannot compute an equal n in approximately the same number of cycles.
      That being said Gaussian quadrature is still faster(fewer cycles) for equal precision, because you need fewer operations. Ergo you could get the same precision with n=2 or 3 compared to a 10 point numerical integration using left points.
      What I am getting at is that from a numerical computing perspective either method can reach arbitrary precision simply by increasing n, so the real question is which one gets the most precision for the fewest cycles.
      I wasn't trying to say Gaussian quadrature is a bad solution, in fact it is strictly superior in any case I can think of, but that it is not as superior as a simple n=10 comparison for both would make it seem.

    • @MathTheBeautiful
      @MathTheBeautiful  8 лет назад

      I don't quite follow the details of your argument, but it sounds like an interesting point.
      Another common way to look at it is this: the rectangle rule is exact only for 0-th degree polynomials, while the 10-point Gaussian is exact for up to 19-th degree polynomials.
      I'm guessing Gaussian quadrature may take twice the flops for the same number of sampling points, which doesn't really offset the spectacularly higher convergence rate.

    • @scitwi9164
      @scitwi9164 7 лет назад

      I don't quite get it either: In both cases there are 10 points, 10 evaluations of the function, and 10 floating-point multiplications + 9 additions. The only difference between them is how you choose the points and their weights, which at most could require twice as much work, but the algorithmic complexity is still the same, and this is quite good for a million-times improvement in precision.

    • @SpaghettiToaster
      @SpaghettiToaster 6 лет назад

      Brian Durbin the quality of a numerical approximation that was invented 200 years ago is not to be evaluated in terms of how fast specific current cpu architectures can compute it. That's preposterous.

  • @faiz_uddin
    @faiz_uddin 2 года назад

    Math is really very beautiful..Thumbs up to @MathTheBeautiful

  • @mueez.mp4
    @mueez.mp4 2 года назад

    4:20