Skip to main content
1 of 4
user avatar
user avatar

Calculate golden ratio

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 
user4974