Re: Program to calculate rational function with imbedded continued fraction
- To: mathgroup at smc.vnet.net
- Subject: [mg69900] Re: Program to calculate rational function with imbedded continued fraction
- From: dh <dh at metrohm.ch>
- Date: Wed, 27 Sep 2006 06:04:06 -0400 (EDT)
- References: <efarkg$7up$1@smc.vnet.net>
Hi Diana, the function "FromContinuedFraction" will convert a countinued fraction into a "ordinary" number representation. You can then use this number in your formula. Of course this will only work if the infinite continued fraction is periodic (or terminates, but then it is not infinite). Otherwise, you can not represent the number in a form "FromContinuedFraction" will swallow. Daniel Diana wrote: > Hello all, > > Would someone be able to help me write a program to calculate the > rational function of (2x + 3)/(2x + 4), for example? > > Also, (tx + 2t)(3t^2x + t), for example. > > x is actually an infinite continued fraction, and I am trying to figure > out how to divide one infinite continued fraction by another. > > (t [0, 1, 2, 1, 3, 1, 2, 1, 4, ...] + 2t)/(3t^2 [0, 1, 2, 1, 3, 1, 2, > 1, 4, ...] +t) > > Any help would be appreciated. > > Diana M. >