Skip to content

Instantly share code, notes, and snippets.

@Wikunia
Created July 2, 2020 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wikunia/dd53f8bcbc61d02ba6d44041f91c7e95 to your computer and use it in GitHub Desktop.
Save Wikunia/dd53f8bcbc61d02ba6d44041f91c7e95 to your computer and use it in GitHub Desktop.
Binet Matt Parker
using Plots
const Φ = (1+√5)/2
const ξ = (1-√5)/2
function binet(n)
c = Complex(n)
return (Φ^c - ξ^c)/√5
end
function draw(r = -5:0.001:5)
points = binet.(r)
x = real.(points)
y = imag.(points)
plot(x,y; legend=false, framestyle = :zerolines)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment