pyoculus 0.1.1
Loading...
Searching...
No Matches
continued_fraction.py File Reference

Contains functions related to the continued fraction expansion. More...

Namespaces

namespace  pyoculus
 
namespace  pyoculus.irrationals
 
namespace  pyoculus.irrationals.continued_fraction
 

Functions

 pyoculus.irrationals.continued_fraction.expandcf (irrational, n, thres_ai=1000)
 Expand an (positive) irrational using the continued fraction expansion.
 
 pyoculus.irrationals.continued_fraction.fromcf (ai)
 Obtain the fraction pp/qq of the continued fraction ai.
 

Detailed Description

Contains functions related to the continued fraction expansion.

Author
Zhisong Qu (zhiso.nosp@m.ng.q.nosp@m.u@anu.nosp@m..edu.nosp@m..au)