Random Thoughts

← back to main page

What is the factorial of decimals or negative integers?

October 2024

The value of 5! can be simply calculated as 5×4×3×2×1, and similarly for 7!, the result is 7×6×5×4×3×2×1. Special cases such as 0! and 1! are both equal to 1.

This can be generalized as n! = n×(n−1)×(n−2)× … ×1.

While this generalized expression holds true for all positive integers, it becomes challenging when estimating factorials of non-integer values, especially those between 0 and 1. If you think about it, even the approach to calculate (or estimate) 0! may be different.

I only realized today that the gamma function is the way to go for values like these. It's a more universal approach for calculating the factorial of any real number, including values between 0 and 1, and even negative numbers (excluding non-positive integers where factorials are undefined).

Gamma function plot

Credits: Wikipedia

Food tastes better when hot, what about ice creams?

August 2024

Being a foodie, I've been thinking about this question for a while.

My initial guess as to why hot food tastes better is that the heat opens up pores on the tongue, increasing the surface area and enhancing the taste. But if that's the case, why do ice creams or cold desserts taste so good?

Maybe it has nothing to do with temperature at all.

If not temperature, then perhaps it's a combination of other sensory responses, like smell. While ice creams do have aromas coming from flavoring substances even when cold, it's probably not just the smell. It could be a combination of both smell and taste.

What if your mind is tricking you into believing certain foods taste the way you imagine them, even before they enter your mouth?