Evaluation of Powers https://janmr.com/posts/evaluation-of-powers/ #programming #algorithm #cpp #exponentiation #optimality

• \( x^0 = 1 \)
• \( x^{2k} = (x^k)^2 \)
• \( x^{2k+1} = x \cdot x^{2k} \)

janmr.com | Evaluation of Powers

Understanding Exponents (Why does 0^0 = 1?) – BetterExplained

Attn Calc II students: This is a fun little integral. \( \int 2^{\ln(x)}dx \) A substitition \( u=\ln(x) \) won't work since there is no \( \frac{1}{x} \) to make the match. #integration #exponentiation

Think about before reading on.

Nifty trick! Since \( 2=e^{\ln(2)} \), then \( 2^{\ln(x)} = (e^{\ln(2)})^{\ln(x)}=(e^{\ln(x)})^{\ln(2)}=x^{\ln(2)} \)

Now the integral becomes \( \int x^{\ln(2)}dx = \frac{1}{1+ln(2)} x^{1+\ln(2)} + C \)

Swapping from an constant-to-variable to a variable-to-constant made a world of difference. Sweet!

...we can put this perhaps more effectively by understanding that the general public does not really "get" the duo interplay of #Exponentiation and #Transmission, wherein a virus that lies within an arbitrary upper bound for #Mortality but still in the *same interval* a worst case #COVID19 variant might achieve- represents an #UnrecoverableError in the absence of effective #Vaccination rates and public #Compliance with protective measures

#functionalprogramming

Many people's vote for most #beautiful construct in #math is \[ e^{i\pi}+1=0. \]

Yeah, maybe. But I think a close contender (if you include the #CS realm) is \[ \lambda b.\lambda e.eb . \]

This serves as the complete #Church encoding of #exponentiation in #LambdaCalculus, driving home subtler points about #function #mapping and ordered pairs and the primacy of exponentiation over add/mult, both of which have uglier #LC representations.

https://en.wikipedia.org/wiki/Lambda_calculus#Arithmetic_in_lambda_calculus

Lambda calculus - Wikipedia

#math #education #school #arithmetic

At risk of pointing out the obvious, here's something that didn't occur to me in these plain terms until last week:

Everyone from little kids on up understands base-10 numbers to one degree or another, and yet decoding place-value #numbers requires using #addition, #multiplication, and #exponentiation in concert.