The golden function is the upper branch of the hyperbola.
ASP
function gold(x)gold = (x + sqr(x^2 + 4)) / 2end function
PHP
function gold($x){return ($x + sqrt($x^2 + 4)) / 2;}
Sorry if this is not exciting stuff. I've got some better stuff coming, but I want to clear out some older stuff that has been waiting a while.
No comments:
Post a Comment