Re: Plot DiracDelta[]
- To: mathgroup at smc.vnet.net
- Subject: [mg28478] Re: [mg28465] Plot DiracDelta[]
- From: maarten.vanderburgt at icos.be
- Date: Sun, 22 Apr 2001 01:30:12 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Max, Plot initially evaluates f at a number of equally spaced sample points specified by PlotPoints. Then it uses an adaptive algorithm to choose additional sample points, attempting to produce a curve in which the bend between successive segments is less than MaxBend. It subdivides a given interval by a factor of at most PlotDivision. You should realize that with the finite number of sample points used, it is possible for Plot to miss features in your function. To check your results, you should increase the setting for PlotPoints. Since the delta function is infinitely narrow increasing PlotPoints will generally not help. Instead, try: list = {{1,1}}; ListPlot[list]; I assume this is what you want to see. Maarten van der Burgt Leuven, Belgium Max Ulbrich <ulbrich at biochem.mpg.de> on 20-04-2001 10:24:14 AM cc: Subject: [mg28478] [mg28465] Plot DiracDelta[] Hi, does anybody know if there is a possibility to include the DiracDelta[] in a Plot? If I have Plot[DiracDelta[x-1],{x,0,2}] I see nothing, but I would like to see a vertical line at x=1. Max