_index.org

Freshwater economists

Last edited: August 8, 2025

Saltwater economists are economists from coastal schools that are mostly classical Keynsians

Freshwater economists are economists who are mostly Neoclassical Economists

function

Last edited: August 8, 2025

function pointers

typedef bool (*should_swap) (int, int);

all function’s names are pointers to first address of the function’s machine code in memory.

When writing a generic function, if we don’t know about the behavior of something (such as comparison), etc., we have to rely on the client to specify the information in terms of a function.

  • function writer: writes algorithmic function, relies on caller data
  • function caller: knows data, and doesn’t know how algorithm knows

functor

Last edited: August 8, 2025

fundamental investing

Last edited: August 8, 2025

If your style is not math driven, fundamental investing are the strategies you can use.

BTW: the game of investing in the stock market has gotten harder because we have too much data with the historical data. (Efficient) markets tend to eliminate opportunities to make a profit.

Looking at 300 banks would be a good idea.

Value Investing

Value Investing is a fundamental investing strategy to value each company by going through the accounting/books of the company and buying companies that are theoretically undervalued.

fundamental theorem of arithmetic

Last edited: August 8, 2025

factorization motivator

If \(p\) is prime and \(p | ab\), then \(p|a\) or \(p|b\).

If \(p|a\), we are done.

Consider the case where \(p|ab\) yet \(a\) is not divisible by \(p\). Then, \(a\) and \(p\) are coprime. This means that, we have:

\begin{equation} \gcd (a,p) = 1 = s a + tp \end{equation}

We note that:

\begin{align} b &= 1 \cdot b \\ &= (sa+tp) b \\ &= sab + tpb \\ &= s(ab) + tb(p) \end{align}