MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Continued Fractions


On 4/16/07 at 4:13 AM, ghcgwgwg at singnet.com.sg (Wu Weidong) wrote:

>I'm working on a function which takes 2 integer values as input, a and
>b and outputs a list of integers corresponding to the continued
>fraction representation of the rational number a/b.

Unless you are doing this as some sort of programming exercise,
there is little point in writing such a function since it
already exists as a built in function, i.e.,

In[9]:=
ContinuedFraction[45/16]

Out[9]=
{2,1,4,3}
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: what does this error message mean
  • Next by Date: minmum of a function
  • Previous by thread: Continued Fractions
  • Next by thread: Re: Continued Fractions