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