• vaguerant@fedia.io
    link
    fedilink
    arrow-up
    150
    arrow-down
    1
    ·
    1 day ago

    I understand why this is wrong (order of operations dictates the division happens first, so it’s really 25 - 1 = 24), but why is it funny? I don’t mean “This isn’t funny,” I think I’m just missing the joke.

      • Psythik@lemmy.world
        link
        fedilink
        English
        arrow-up
        11
        arrow-down
        5
        ·
        edit-2
        22 hours ago

        The fuck is a “factorial”? They didn’t teach me that one in high school math and I couldn’t afford college.

          • rumba@lemmy.zip
            link
            fedilink
            English
            arrow-up
            1
            ·
            3 hours ago

            In High School education, Factorials are generally part of the curriculum, but they’re one of those things you get one section on, it shows up on one test, then in common usage, you never see it again. In many schools, someone could have been out for a day, gotten two answers wrong on a test, and never have known it. Then in my school, unless you were heading on a math track, you’d hardly even touch Calculus to see it actually used anywhere.

        • BreadstickNinja@lemmy.world
          link
          fedilink
          English
          arrow-up
          13
          ·
          edit-2
          20 hours ago

          Factorial means n! = (n)(n-1)(n-2)… etc. down to 1, where n is a positive integer. It’s used to calculate the different number of configurations of a set of elements, mainly in combinatorics.

          Like if you have four different objects and you want to know how many different configurations you can order them in, you have four choices for the first object, then three for the second, then two for the third, then one for the final slot. So the answer is 4 x 3 x 2 x 1 = 24 = 4!.

            • pyre@lemmy.world
              link
              fedilink
              English
              arrow-up
              2
              ·
              edit-2
              24 minutes ago

              the most tangible and direct application is how many different ways you can order x many items.

              eg. how many different ways can you order 3 items?

              let’s say you have these 3 items: 🍏🫐🍒

              the first one can be any one of the three, so you have 3 options. that’s 3 different ways to start your order. let’s write that down:

              3

              now for the second one. whichever one you picked for first position will be unavailable, so you’ll have 2 options this time. this is true for each first pick separately, so you multiply the possible number of first picks by the possible number of second picks:

              3 x 2

              now for the third item, since two of the three are already picked, you only have one left, which means not much to choose. you just multiply the 1:

              3 x 2 x 1

              of course multiplying by 1 doesn’t change anything but as we mentioned there was no option this time, once you pick the second fruit the third is also auto-picked, so the third item doesn’t add to our number.

              so the final answer seems to be:

              3 x 2 x 1 = 6

              is that true? might feel like there should be more ways but let’s test it; can’t be that complicated:

              1. 🍏🫐🍒
              2. 🍏🍒🫐
              3. 🫐🍏🍒
              4. 🫐🍒🍏
              5. 🍒🍏🫐
              6. 🍒🫐🍏

              here you go. you can extrapolate this logic to any number. four items would’ve followed the same sequence starting with 4 and have 1 less option with each pick, so 4 x 3 x 2 x 1. and that’s also 4!

            • Hamartiogonic@sopuli.xyz
              link
              fedilink
              English
              arrow-up
              1
              ·
              12 hours ago

              Makes things shorter.

              In the applications mentioned by other people, you run into calculations that would look really messy and confusing. Things like 5•4•3•2•1 can be shorted to just 5! Imagine writing the full version of 123!

            • HMitsuha@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              3
              ·
              17 hours ago

              There are lots of applications, so I’ll give you three

              Factorials are used in the Taylor Series to approximate trigonometric (sine, cosine, etc) and the exponential function. This can help speed up calculations.

              In probability and statistics, if you want to find how many different ways a deck of cards can be shuffled, the answer is 52! Because the first card can be any of the 52, the second can be any of the remaining 51, and so on until the last card. Building upon this concept results in ways to model data like the binomial distribution , which is simply “how many successes will i get if i do this trial a certain number of times”. E.g. If I flip a coin 100 times, how many times will it be heads?

              In computer science, the complexity of a program is compared to functions like the factorial, exponential, quadratic, etc. to visualize it’s performance given the size of the input, n. E.g. a program of linear time complexity is denoted as O(n), and as n increases, we expect the time for the program to finish to increase linearly. For a factorial time complexity, O(n!), we expect the time to complete to increase a lot compared to O(n)

        • Dearth@lemmy.world
          link
          fedilink
          English
          arrow-up
          20
          arrow-down
          4
          ·
          21 hours ago

          Im sorry your highschool curriculum failed to teach you. I learned factorals in jr highschool

          • neons@lemmy.dbzer0.com
            link
            fedilink
            English
            arrow-up
            3
            ·
            edit-2
            4 hours ago

            4 factorial (written as 4!) is 4•3•2•1

            I think this example explains it perfectly lol

            Edit: using • instead of * to avoid markdown

            • ClamDrinker@lemmy.world
              link
              fedilink
              English
              arrow-up
              3
              ·
              edit-2
              4 hours ago

              Just a small correction in case you didn’t know, but your answer shows as 432*1 because Lemmy formats text wrapped by * as italic, so it thinks you want to italicize the 3. You meant to write 4*3*2*1 (written as 4\*3\*2\*1). This is because \ is an escape character that tells lemmy not to take the * as a formatting character.

          • PresidentCamacho@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            1
            ·
            4 hours ago

            Is a factoral just 1X Because yeah i don’t think I learned that either, but I was taught exponentiation. Whats the value of factorals?

      • jaybone@lemmy.zip
        link
        fedilink
        English
        arrow-up
        14
        arrow-down
        1
        ·
        1 day ago

        Or if you don’t know order of operations, then you probably also don’t know factorials, so 20 / 5 = 4

    • Zorque@lemmy.world
      link
      fedilink
      English
      arrow-up
      14
      ·
      1 day ago

      I see no one has explained yet, so I’ll give it a shot. He is excited about math, and that needs to be encouraged.

    • Mastema@infosec.pub
      link
      fedilink
      English
      arrow-up
      11
      ·
      edit-2
      1 day ago

      The exclamation point makes it right. The formula, when worked with proper order of operations, equals 24, which is equal to 4 factorial (4!) 1 * 2 * 3 * 4=24