• kn0wmad1c ( kn0wmad1c@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    7
    ·
    4 days ago

    Are we doing pizza math? Here’s my entry.

    Did you know that two 12 inch pizzas is less pizza than one 18 inch pizza?

    We can use pi to determine the area of a 12" pie:

    A = πr² = π * 36 = 113.1in²

    Multiply that by 2 because we want two of them, so that’s 226 square gooey, cheesey inches of delicious pizza.

    Now let’s look at one 18" pie:

    A = πr² = π * 81 = 254.47in²

    So if it’s cheaper to get one 18" pizza as opposed to two 12" pizzas, you should always get the 18".