Skip to content

Instantly share code, notes, and snippets.

@Myndex
Last active April 29, 2024 11:14
Show Gist options
  • Save Myndex/63a4925a6cc118d5acdcc471f9c52f3d to your computer and use it in GitHub Desktop.
Save Myndex/63a4925a6cc118d5acdcc471f9c52f3d to your computer and use it in GitHub Desktop.
A simplified version of the formula for phi that you will remember easilly

Phi Alternate Expression

The formula for phi can be reduced to a positive exponent, multiplication, and addition:

$$\begin{align} \phi = 5^{0.5} \times 0.5 + 0.5 \end{align}$$

This is clear and easy to remember, demonstrates interesting relationships, and is less obtuse than the formula as usually written. This can also improve computational efficiency (of admittedly marginal importance). Here is an example for javascript:

    const phi = Math.pow(5, 0.5) * 0.5 + 0.5;   // Somers simplification

What is phi?

Phi is a mathmatical constant that defines the golden ratio. It is approximately 1.618, with the interesting property that its recipricol is 0.618

Phi is also used in the perceptual contrast method "DeltaPhiStar"

I don't have any good phi puns, but give me some time to phi-end one.

Oh wait, what do you call a stereo that plays math?

A: a HiPhi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment