home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!agate!ames!sun-barr!news2me.EBay.Sun.COM!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!ericom!sunic!dkuug!diku!torbenm
- From: torbenm@diku.dk (Torben AEgidius Mogensen)
- Newsgroups: sci.math
- Subject: Re: To express Q(x)/P(x) into continued fraction
- Message-ID: <1992Nov5.131433.18445@odin.diku.dk>
- Date: 5 Nov 92 13:14:33 GMT
- References: <1992Nov5.064414.28859@griffin.itc.gu.edu.au>
- Sender: torbenm@freke.diku.dk
- Organization: Department of Computer Science, U of Copenhagen
- Lines: 81
-
- jchen@sct.gu.edu.au (Jinghong CHEN) writes:
-
-
- >Suppose there are two n-th order polynomials Q(x) and P(x), how can we
- >express Q(x)/P(x) into a continued fraction, i.e.
-
- > Q(x) a0
- > ------ = ----------------------
- > P(x) a1
- > x + -----------------
- > an
- > x + ... + ------
- > x + a
-
- Normally, a continued fraction has the form
-
- a0 + 1
- ------------
- a1 + 1
- --------
- a2 + 1
- ----
- ...
- --
- an
-
- where the ai are polynomia in x.
-
- We need not even assume that P and Q have the same order. I assume
- that you are familiar with the standard polynomial division algorithm,
- and is able to find the quotient and remainder polynomia. That is,
- find K(x) and R(x), such that
-
- Q(x)/P(x) = K(x) + R(x)/P(x)
-
- where R has a strictly lower order than P.
-
- K(x) is the first term (a0) of the continued fraction. The remaining
- terms are found by letting a1,... be the continued fraction of
- P(x)/R(x).
-
- Example:
-
- consider Q(x)=2x^3+x^2-3x+1, P(x)=x^3-2x^2-x-4
-
- By normal division we get
-
- K(x) = 2, R(x) = 5x^2-x+9
-
- so a0 = 2. Now we try P(x)/R(x), ad get
-
- K'(x) = (1/5)x+(11/25), R'(x) = (-1/5)x-199/25
-
- so a1 = (1/5)x+(11/25). Doing R(x)/R'(x) we get
-
- K''(x) = -25x+1000, R''(x) = 3969
-
- Now we only need to do R'(x)/R''(x) = (-1/19845)x-199/92400
-
- Thus our complete continued fraction is
-
- Q(x) 1
- ---- = 2 + ------------------------------------------------
- P(x) (1/5)x+(11/25) + 1
- --------------------------------
- -25x+1000 + 1
- ---------------------
- (-1/19845)x-199/92400
-
-
- All but the first term is guaranteed to have an order of at least 1.
- All quotients of polynomia have finite continud fractions, with n+1
- terms (a0,...,an), where n is the order of the polynomium. I think all
- C-infinity functions can be written as a (possibly infinite) continous
- fraction.
-
- Torben Mogensen (torbenm@diku.dk)
-
- P.S.
- There is probably a method for constructing a fraction of the form you
- memtioned.
-