With the help of
sympy.S.GoldenRatio value, We can directly use the value of Golden Ratio constant which is 1.618033989 or we can say that in sympy Golden Ratio constant is a singleton value.
Value of Golden Ratio constant –
Example #1 :
In this example we can see that by using singleton value of Golden Ratio constant, we are able to get the value of Golden Ratio constant.
Example #2 :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.