4 ms·
If you are willing to use Sage, here is how to get the list of convergents of pi: pcf = continued_fraction(pi) pcv = pcf.convergents() pcv[10]
by ykonstant 3y ago
If you are willing to use Sage, here is how to get the list of convergents of pi:
pcf = continued_fraction(pi)
pcv = pcf.convergents()
pcv[10] # prints your approximant
- kragen 3y agothanks!