Reply: a couple of gripes

*To*: mathgroup at smc.vnet.net*Subject*: [mg29761] Reply: [mg29751] a couple of gripes*From*: "Abhijit Borah" <abhijitborah at beer.com>*Date*: Sun, 8 Jul 2001 01:00:06 -0400 (EDT)*Sender*: owner-wri-mathgroup at wolfram.com

Joshua, ---- Begin Included Message ---- From: "Joshua A. Solomon" To: mathgroup at smc.vnet.net ... ... When I evaluate Integrate[f[x]*If[x==y,1,0],{x,-Infinity,Infinity}] I don't get f[y]. ---------------------------------- As an alternative solution to the 1st part of your problem you may try "Integrate[f[x]*DiracDelta[x-y],{x,-Infinity,Infinity}]" in Mathematica 4, but in Mathematica 3.0 you have to load "<<Calculus`DiracDelta`" first. Abhijit n' ol' guzzler Beer Mail, brought to you by your friends at beer.com.