Calculating Pi with random numbers out of an vintage calculator from the 80s

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • It has become a tradition to celebrate 3/14 as Pi Day. And in honor of Pi, you can either bake an pie, or calculate the number Pi by yourself. Following this tradition, I will try to determine Pi with my old programmable calculator from the 80s.
    The CASIO FX-700P has 2KB RAM, works with a clock frequency of 455kHz and can be programmed in BASIC. Patience and well optimized code are the prerequisites for successful calculations of such tasks.
    Links to the videos from Matt Parker and Dianna Cowern:
    Calculating π with Avogadro's Number
    "Stand-up Maths" Matt Parker und Steve Mould
    • Calculating π with Avo...
    Calculating Pi with Darts
    "Physics Girl" Dianna Cowern und "Veritasium" Derek Muller
    • Calculating Pi with Darts
    #piday #BASIC #math #programming #STEM

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

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

    I like your style. Clear and no nonsense. (I enjoy the theatrics that some educational channels do, but the quiet understated humour is also excellent.)

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

      Thank you, I am very pleased!

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

    Nice

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

    That said, I'm confused about multiplying by 4. You seemed to be calculating values only in one quadrant. Or were you allowing for all values between 1 and -1?

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

      I only use numbers between 0 and 1. So only for the quadrant and the circle section. The area of this section of the circle is one fourth of the area of the whole circle. The area of the whole circle is calculated from A=pi*r².
      So for the circle section we get A=(pi*r²)/4
      That is where the 4 comes from.
      If you use the whole circle, then the area of the full square is A=4*r²
      And there is the 4 again. So it doesn't matter if you do the calculation with just the circle section and the quadrant, or with the whole circle and the full square. You need the multiplication with 4 in both cases.

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

      @@electricidea Thanks. And this is probably why I shouldn't watch educational videos when I'm half asleep!

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

    First!

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

      Congratulations! The candidate wins as many washing machines as he can carry. ;-)