Skip to main content
Notice removed Reward existing answer by caird coinheringaahing
Bounty Ended with Michael Chatiskatzi's answer chosen by caird coinheringaahing
Notice added Reward existing answer by caird coinheringaahing
Bounty Started worth 50 reputation by caird coinheringaahing
edited tags
Link
Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697
Replaced formula image with TeX
Source Link
Wheat Wizard
  • 102.9k
  • 23
  • 299
  • 697

Write the shortest code, in number of bytes, to display, return, or evaluate to the golden ratio (that is, the positive root of the quadratic equation: x^2-x-1=0\$x^2-x-1=0\$, approximately 1.618033988749895), to at least 15 significant figures. No input will be given to your program.

Sample in Stutsk programming language:

1 100 { 1 + 1 swp / } repeat print 

Write the shortest code, in number of bytes, to display, return, or evaluate to the golden ratio (that is, the positive root of the quadratic equation: x^2-x-1=0, approximately 1.618033988749895), to at least 15 significant figures. No input will be given to your program.

Sample in Stutsk programming language:

1 100 { 1 + 1 swp / } repeat print 

Write the shortest code, in number of bytes, to display, return, or evaluate to the golden ratio (that is, the positive root of the quadratic equation: \$x^2-x-1=0\$, approximately 1.618033988749895), to at least 15 significant figures. No input will be given to your program.

Sample in Stutsk programming language:

1 100 { 1 + 1 swp / } repeat print 
Tweeted twitter.com/#!/StackCodeGolf/status/257088769885368320
Straighten out the question definition
Source Link
C. K. Young
  • 5k
  • 4
  • 32
  • 36

The goal isWrite the shortest code, in number of bytes, to calculatedisplay, return, or evaluate to the golden ratio, that (that is, the positive root of the quadratic equation: x^2-x-1=0, which is approximately 1 1.61803399618033988749895), to at least 15 significant figures. No input will be given to your program.

Sample in Stutsk programming language:

1 100 { 1 + 1 swp / } repeat print 

The goal is to calculate the golden ratio, that is the positive root of the quadratic equation: x^2-x-1=0, which is approximately 1.61803399

Sample in Stutsk programming language:

1 100 { 1 + 1 swp / } repeat print 

Write the shortest code, in number of bytes, to display, return, or evaluate to the golden ratio (that is, the positive root of the quadratic equation: x^2-x-1=0, approximately 1.618033988749895), to at least 15 significant figures. No input will be given to your program.

Sample in Stutsk programming language:

1 100 { 1 + 1 swp / } repeat print 
Source Link
user4974
user4974
Loading