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: [mg53130] Re: [mg53096] Coefficients of previous result
  • From: yehuda ben-shimol <benshimo at bgu.ac.il>
  • Date: Fri, 24 Dec 2004 05:59:25 -0500 (EST)
  • References: <200412231258.HAA21139@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Taken directly from Mathematica's help
NumericRound[x_] := MapAll[If[NumericQ[#], Round[#], #] &, x]
so NumericRound[expr] will give you exactly what you need.
yehuda

Milind Gupta wrote:

>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: Intersection Problem With Version 5.1
  • Next by Date: Re: plotting two functions on the one graph
  • Previous by thread: Re: Coefficients of previous result
  • Next by thread: Re: Coefficients of previous result