MathGroup Archive 2004

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

Search the Archive

Re: Coefficients of previous result


expr = (1. + 2.*x + 2.*x^2 + 2.*x^3)/(1. + 2.*x + 2.*x^2)

gives

(1. + 2.*x + 2.*x^2 + 2.*x^3)/(1. + 2.*x + 2.*x^2)

then

Rationalize[expr]

gives

(1 + 2*x + 2*x^2 + 2*x^3)/(1 + 2*x + 2*x^2)

Steve Luttrell

"Milind Gupta" <milind.gupta at gmail.com> wrote in message 
news:cqeglg$l0g$1 at smc.vnet.net...
> The result of my previous step is something like this:
>
> expr =    1. + 2. x + 2. x^2 +  2. x^3
>            -----------------------------------------
>               1. + 2. x + 2. x^2
>
>   But I need it to be like this:
>
>
> expr =    1 + 2 x + 2 x^2 +  2 x^3
>            -----------------------------------------
>               1 + 2 x + 2 x^2
>
> so that I can use it with another function properly. Is there any way
> to do that?
>
> Milind
> 



  • Prev by Date: Re: plotting two functions on the one graph
  • Next by Date: Re: Re: Mathematica is destroying my sanity....
  • Previous by thread: Re: Coefficients of previous result
  • Next by thread: Re: Coefficients of previous result