How Some Formulas for π Are Faster Than Others

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • PDF link if you want a more detailed explanation:
    drive.google.c...
    Visit our site to access all the PDF's:
    dibeos.wordpre...
    Our goal is to be the #1 math channel in the world. Please, give us your feedback, and help us achieve this ambitious dream.
    ---
    Some great books for learning math or physics
    www.amazon.com...
    Need a VPN?
    go.nordvpn.net...
    🐦 Follow me on X: x.com/dibeoluca
    📸 Follow me on Instagram: / lucadibeo
    🧵 Follow me on Threads: www.threads.ne...
    😎 Become a member to have exclusive access:
    / @dibeos
    📈 Check out my Udemy courses (you may find something that interests you 😉): www.udemy.com/...
    📊 Do you need a consultation on Math & Physics, or do you know somebody who does? I might be helpful! Our email: dibeos.contact@gmail.com
    🥹 Consider supporting us on Patreon:
    www.patreon.co...

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

  • @dibeos
    @dibeos  Месяц назад +2

    PDF link if you want a more detailed explanation:
    drive.google.com/file/d/1RaMVsYpmJANzJnvaNh6feCCsvhvfZ2_S/view?usp=sharing

    • @renengan25
      @renengan25 Месяц назад +2

      Buen video 👍🏻

  • @anderskallberg7969
    @anderskallberg7969 Месяц назад +45

    But you didn't answer why some formulas are faster at converging, just that some are faster

    • @dibeos
      @dibeos  Месяц назад +10

      @@anderskallberg7969 well, we did show exactly how some are faster. The reason is because the terms you choose at each iteration (after multiplied by the previous one) produces an error (last formula of the video) that is less than another formula’s error

    • @dibeos
      @dibeos  Месяц назад +5

      @ well, I’m sorry that your expectations were not met. We really tried and thought it was the answer you are asking for. Next time we will be more precise

    • @dibeos
      @dibeos  Месяц назад +4

      @ thanks, well at least now we know something you guys actually want so we can make a video on that 😅

    • @xNinj4xHD
      @xNinj4xHD Месяц назад +1

      @@dibeos i thought it was cool thank you for the video

    • @geronimoste1298
      @geronimoste1298 Месяц назад

      what a shame, feel like i lost my time

  • @JaybeePenaflor
    @JaybeePenaflor Месяц назад +1

    I’m so happy to have found your channel! Subscribed!

  • @DadundddaD
    @DadundddaD Месяц назад +11

    Somebody used three dots. Other mathematicians: woah! what an invention!

    • @dibeos
      @dibeos  Месяц назад

      @DadundddaD 😂😂😂 yeah, it was exactly how I imagined it

  • @Vovik-fz4tx
    @Vovik-fz4tx Месяц назад +16

    but second formula doesn't use square root computations, which have higher computational costs. So, in practical applications, we should compare amount of basic arithmetic operations (which can be performed by the processor)

    • @dibeos
      @dibeos  Месяц назад +5

      @@Vovik-fz4tx Hm… yeah, good point. It’s a balance between operation cost and convergence speed

    • @lavyagaur6293
      @lavyagaur6293 Месяц назад

      How does a square root have higher computations

    • @DaedalusCommunity
      @DaedalusCommunity Месяц назад +1

      ​@@lavyagaur6293 In order to compute a square root, you have to approximate the solution of the equation x*x - 2 = 0, using algorithms such as Newton's method or the bisection method. Those algorithms can take many steps to reach a good approximation of a square root, so we say they have a higher computational complexity.

    • @lavyagaur6293
      @lavyagaur6293 Месяц назад

      @DaedalusCommunity thanks

    • @Druxorey
      @Druxorey Месяц назад

      @@lavyagaur6293 Calculating a square root is more complex and computationally expensive than basic operations such as addition, subtraction or multiplication due to the iterative nature of the algorithms used. Calculating square roots requires a more elaborate sequence of steps, often involving successive approximations or numerical methods. The same idea used in the video to calculate PI has to be performed multiple times each time you want to calculate a square root, making it one of the most computationally expensive mathematical operations.

  • @bradzoltick6465
    @bradzoltick6465 Месяц назад +1

    I loved it. Thanks for making these videos.

  • @nizogos
    @nizogos Месяц назад +1

    More generally one could say that the irrational and trancedental nature of π makes it easier to be approximated from irrationals (e.g sqrt(2) ) rather than rationals , that's why one formula is better than the other.However,in the more efficient formula one has to approximate irrational square roots ,which are taken for granted in the scope of calculating π and in practice they aren't and they need approximations themselves.Don't know which of these is more efficient after taking this into account

  • @someguy-k2h
    @someguy-k2h Месяц назад +7

    That was fun. Are there other approximations that are even more efficient?
    What I would love to see is the thought process behind discovering these infinite series. Were they intending to find this? Were they just messing around and happened to notice the usefulness? Is there a best process or even a formula for finding these kinds of approximations? What do these approximations tell us about pi?

    • @dibeos
      @dibeos  Месяц назад +5

      @@someguy-k2h The most efficient formula for approximating π is probably the Chudnovsky formula, but I’m not really sure. Historically, the first formula was discovered using nested radicals when exploring infinite series and geometric relationships in polygons inscribed in circles. The second formula was derived from insights in calculus and infinite series, starting with integrals for sine functions and their relationships. We have detailed proofs in the PDF link. If you have a good understanding of Calculus 1, it should be enough to study them. But yeah, both were methodical: Viete (first formula) worked from geometric principles, while Wallis looked for patterns in integrals. They didn’t directly aim for π but sort of “stumbled” upon it

    • @someguy-k2h
      @someguy-k2h Месяц назад +1

      @@dibeos Thank you so much for replying, and quickly. I know the Chudnovsky algorithm, from the Chudnovsky brothers. It's based on the famous Ramanujan-Sato series. I can easily see how a nested sum of increasing polygons can get you to π, but it's very interesting to me that this number which is used to describe the curvature of space-time pops up in so many strange places. I will read the PDF. Thank you for the response and the detailed content. You guys got my subscription.

    • @dibeos
      @dibeos  Месяц назад +1

      @ thanks for the new videos ideas haha

  • @meeharbin4205
    @meeharbin4205 Месяц назад +3

    Ramanujan tho...

  • @ssdegfteghytr166
    @ssdegfteghytr166 Месяц назад +2

    Interesting video that deserves more views

    • @dibeos
      @dibeos  Месяц назад

      @@ssdegfteghytr166 thanks!!! Please let us know what kind of videos you’d like to see in the channel

  • @Druxorey
    @Druxorey Месяц назад +1

    Good video, however I want to make a clarification, as a student in computer science, I can say that the conclusion you reached is quite incorrect, requiring fewer iterations does not imply that it is more efficient, since calculating square roots is much more computationally expensive than multiplying. So although it seems like many more operations, for a computer probably (the experiment has to be performed, so I cannot fully affirm it) the second formula is faster and more precise.
    Except for that small detail, the rest of the video seems extremely interesting to me.

    • @dibeos
      @dibeos  Месяц назад

      @Druxorey thanks for the clarification :)

  • @joshuawhitworth6456
    @joshuawhitworth6456 Месяц назад +1

    I been using the Leibnitz formula which was actually discovered by someone else. If you take the products of each iteration and add them together in triangle fashion you will get pi. I have calculated pi to 26 digits using this method. You can start at any number and end at any number. The father in you start the more powerful your formula will be. If you add them together in triangle fashion you will get a number very close to pi. But no matter how far you calculate you will never reach the end. It's fun to do in your spare time. I would like to know more about the new method discovered by the string theorists. I see the formula but I don't know how to work it yet.

    • @dibeos
      @dibeos  Месяц назад

      @@joshuawhitworth6456 wow, it sounds really cool. I’ll search more about it

  • @mahmoudalbahar1641
    @mahmoudalbahar1641 Месяц назад +1

    Second comment, and I am thankful for your efforts in making these great videos, and I highly love pi and transcendental numbers.

    • @dibeos
      @dibeos  Месяц назад +1

      @@mahmoudalbahar1641 that’s awesome!!! 😎 there is more coming in the next week…

  • @felixbouvet1746
    @felixbouvet1746 Месяц назад +1

    Merci pour cette excellente vidéo j'ai bien compris les formules vous avez bien expliqué vous êtes en anglais et c'est traduit en français et je suis content de l'exploitant de l'exponentielle

    • @dibeos
      @dibeos  Месяц назад

      @@felixbouvet1746 Merci beaucoup ! Nous sommes ravis que la vidéo vous ait plu. Pourriez-vous nous dire quel type de vidéo vous aimeriez voir sur la chaîne, s’il vous plaît ?

    • @felixbouvet1746
      @felixbouvet1746 Месяц назад +1

      @@dibeos p parler de l'équation de schrodinger's

  • @simondobes8570
    @simondobes8570 Месяц назад +1

    I stumbled upon this channel purely by accident. Amazing videos! The PDF file you provided is really nice. May I ask, where are you guys from? Keep up the good work.

    • @dibeos
      @dibeos  Месяц назад +1

      @@simondobes8570 we are glad that you enjoy our content! Well, this is always a hard question for us, but here we go: I (Luca) was born and grew up in Brazil. Since my family, from both father’s side and mother’s side, are of Italian origin, I’m Italian and Brazilian, and learned Italian from a very young age. Sofia was born in Ukraine, but spent most of her life in LA (in the US) and Moscow (in an American High School). For a few years now we have been living in Italy 😎

    • @simondobes8570
      @simondobes8570 Месяц назад +1

      @dibeos Ohh that's wonderful! Thank you for your reply and I wish you all the best :D
      Cheers

  • @Mariosergio61
    @Mariosergio61 Месяц назад +2

    What I want to know is what these sequences have in relation to the ratio between the length of the circumference and the diameter.
    They seem like totally different and independent things.

    • @dibeos
      @dibeos  Месяц назад +1

      @@Mariosergio61 yeah, we honestly don’t have the answer for this question. But let me think about it… maybe there is a cool geometrical connection between them and a circle somehow… 🤔

    • @dibeos
      @dibeos  Месяц назад

      @@Mariosergio61 well, if you see the formula written in the PDF (involving cosines) of the first one (Viete), maybe we can relate each iteration to the lengths of the sides of a polygon inscribed in a circle. The more iterations, the better is the approximation to perimeter of the circle. I don’t know… it is just an idea, but we need to check whether it works or not… 🤔

  • @carbajalromerofernandoulis1053
    @carbajalromerofernandoulis1053 Месяц назад +1

    Use an irational number to calculate another irational number, got it. Regards from Mexico

    • @dibeos
      @dibeos  Месяц назад

      @@carbajalromerofernandoulis1053 yep, not the best approximation in the world

  • @DaedalusCommunity
    @DaedalusCommunity Месяц назад +1

    Nice video! Loved the explanation and animations.
    (EDIT: the rest of the comment is no longer relevant, as the name was changed)
    I have just one objection, I think the title is a bit misleading. In the video, you only compare the convergence speed of the two algorithms empirically, by showing that one of them can achieve a certain precision faster than the other one. You did not quite go into **why** it is that one is faster than the other, you simply performed an experiment that shows that, indeed, one does converge at a faster rate. Showing "why" one algorithm converges faster than another would involve providing a proof, or at least an intuition, of why one iteration of the better algorithm is able to improve an intermediate solution more than one iteration of the worse algorithm would, or something along these lines.
    I suppose a more accurate title would be "Some Formulas for π Are Faster Than Others", as it is indeed what you brilliantly discuss in the video.

    • @dibeos
      @dibeos  Месяц назад

      @@DaedalusCommunity hi! Thanks for the tip, we really appreciate it. Many people said that. We just changed from “why” to “how”, but please tell us: do you think that “some” would still be more appropriate? 🤔

    • @DaedalusCommunity
      @DaedalusCommunity Месяц назад +1

      @@dibeos Hi again! I think with "how" it's much better!

  • @plenus2017
    @plenus2017 7 дней назад

    Considering other formulas, which is the one that requires less iterations? Please somebody tell me

  • @austinlincoln3414
    @austinlincoln3414 Месяц назад

    How to graph the Riemann zeta function on the complex plane? I can only find graphing calculators that include the real parts

  • @sherifffruitfly
    @sherifffruitfly Месяц назад +1

    Uh did I miss it or is that a horrible conclusion.
    If the "faster" way required 30000 calculations each iteration while the "slower" way only 3, a radically different conclusion would be reached.
    Where's the flop count?

    • @Druxorey
      @Druxorey Месяц назад

      That's because he mistakenly assumed that fewer iterations means greater efficiency, which is incorrect.

  • @saull287
    @saull287 21 день назад

    Aproximation... That's the thing, are all the digits exact? Clearly you need many factors to even get close, so when it gets relevant? This looks more theoretic and dangerously innacurate, than any good pi generator 🤔
    'Coz you can approximate infinitelly and never get to the value, or oscilate around it ot other kinds of not-getting-there apptoximations 😮

  • @BabatopeFagbenle-rk6jy
    @BabatopeFagbenle-rk6jy Месяц назад +1

    Lovely 🌹

  • @Speed85
    @Speed85 Месяц назад +2

    I want a pin just pin my comment

    • @dibeos
      @dibeos  Месяц назад +1

      @Speed85 hahahah sorry but we can pin only one comment and we need to pin the comment with the pdf link 😬

    • @Speed85
      @Speed85 Месяц назад +2

      Sorry but I want to learn more In mathematics

  • @medelb_w4
    @medelb_w4 Месяц назад +1

    1st comment

    • @dibeos
      @dibeos  Месяц назад

      Very well done 👍🏻