Re: non zero result after multiplying with zero.

*To*: mathgroup at smc.vnet.net*Subject*: [mg36447] Re: non zero result after multiplying with zero.*From*: "David W. Cantrell" <DWCantrell at sigmaxi.org>*Date*: Sat, 7 Sep 2002 02:54:03 -0400 (EDT)*Organization*: NewsReader.Com Subscriber*References*: <al9l3l$b1d$1@smc.vnet.net>*Sender*: owner-wri-mathgroup at wolfram.com

rajgupta121 at rediffmail.com (Raj) wrote: > When I multiply an expression with 0 it is giving 0.expression which > is creating problem in the further calculation. No. Your trouble comes when you multiply an expression by the floating-point number 0.0, rather than by the precise symbolic 0 (having no decimal point). Merely make the coefficient 0 (rather than 0.0) and everything should work as you wish. David > eg. > > In[1]:=func1[r_]:=Exp[-r/2] > In[2]:coeff[[1,1]]=0.0; > ; > ; > In[34]:=func1[r]coeff[[1,1]] > > Out[34]:=0.Exp[-r/2] > > I want anything to be multiply by zero must be zero. > > How can I do that? -- -------------------- http://NewsReader.Com/ -------------------- Usenet Newsgroup Service