Skip to main content
13 events
when toggle format what by license comment
Mar 27, 2012 at 1:22 history edited rm -rf CC BY-SA 3.0
added 636 characters in body
Mar 27, 2012 at 1:15 history edited rm -rf CC BY-SA 3.0
added 1095 characters in body
Mar 26, 2012 at 13:07 comment added acl @image_doctor Mathematica apparently recognizes that some functions are special and plots them in a special way if you let it; see the middle of this answer for an example of what happens if you do not allow the plotter to see the actual function but only evaluate it numerically: stackoverflow.com/a/6332142/559318
Mar 26, 2012 at 9:30 comment added image_doctor This behaviour seems to be associated with the way plot treats points/discontinuities rather than the the underlying function.
Mar 26, 2012 at 9:24 comment added night owl @R.M: So there is no hope then for a continuous (measure/distribution) plot of the impulse? Only will work for discrete?
Mar 26, 2012 at 9:14 comment added image_doctor This seems to work with ListPlot and DeltaD set to 10000. ListPlot[DiracD /@ Range[-10, 10], Filling -> Axis]. But Plot seems more stubborn.
Mar 26, 2012 at 9:03 comment added night owl @image_doctor: This seems to not work. I used Plot[DiracD[x], {x,-1,1}, PlotStyle:> Thick] to get this: i.sstatic.net/Yh6r8.png
Mar 26, 2012 at 9:00 comment added night owl @R.M: Here is the output graph of the Delta function. i.sstatic.net/VSEr9.png
Mar 26, 2012 at 8:36 comment added image_doctor You can define your own Dirac Delta function which has the behaviour that you would like. DiracD[x_] := DiracDelta[x] /. DiracDelta[0] -> Infinity . You can swap infinity for any large value that suits your application if you wish.
Mar 26, 2012 at 8:30 comment added rm -rf Can you show your output plot that you generated in your other program?
Mar 26, 2012 at 8:29 history edited rm -rf CC BY-SA 3.0
added 404 characters in body
Mar 26, 2012 at 8:26 comment added night owl Okay, so what your saying is, is that it cannot be plotted over $\mathbb{R}$? I can accomplish it in another program, but wanted to do it in Mathematica.
Mar 26, 2012 at 8:23 history answered rm -rf CC BY-SA 3.0