Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Coefficients of previous result

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53117] Re: Coefficients of previous result
  • From: "Steve Luttrell" <steve_usenet at _removemefirst_luttrell.org.uk>
  • Date: Fri, 24 Dec 2004 05:59:04 -0500 (EST)
  • References: <cqeglg$l0g$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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