Skip to content

FromContinuedFraction

FromContinuedFraction({n1, n2, ...})

reconstructs a number from the list of its continued fraction terms {n1, n2, ...}.

See

Examples

>> FromContinuedFraction({2,3,4,5})
157/68
>> ContinuedFraction(157/68)
{2,3,4,5}
>> FromContinuedFraction({3, 7, 15, 1, 292, 1, 1, 1, 2, 1})
1146408/364913
>> FromContinuedFraction(Range(5))
225/157

ContinuedFraction

Implementation status

  • ✅ - full supported

Github