Skip to content

Instantly share code, notes, and snippets.

@Myndex
Last active September 16, 2023 12:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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:

{{bi|left=1.6| \phi = 5^{0.5} \times 0.5 + 0.5 }}

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.

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