MathGroup Archive 2005

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

Search the Archive

Re: Getting crude approximation to a function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58905] Re: Getting crude approximation to a function
  • From: "sashap" <pavlyk at gmail.com>
  • Date: Sat, 23 Jul 2005 05:32:13 -0400 (EDT)
  • References: <dbkkpu$s6a$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Mukhtar,

Rationalize is trying to find rational number which is "close enough"
to the supplied number. If none is found the original number is
returned.
To force Rationalize to always return rational number use second
argument
to Rationalize

In[2]:=
(Rationalize[#1, 0] & )[
  Chop[Expand[Normal[Series[0.71*p*x + (1/3)*x^2 - 4,
      {x, 1, 1}]]]]]

Out[2]=
-(13/3) + (2*x)/3 + (71*p*x)/100

Oleksandr Pavlyk
Wolfram Research


  • Prev by Date: Best style sheet for MS Word looking documents ?
  • Next by Date: Re: Combinatorica functions doc
  • Previous by thread: Re: Getting crude approximation to a function
  • Next by thread: "Many Digits" Friendly Competition 2005