Mathematica Plot function can detect exclusion points automatically. How was that realized? How can I generalize that to included discontinuity of DiracDelta functions as well?
For example, I would like to have something like
ExclusionPoints[UnitStep[x + 2] + DiracDelta[x - 1] + Piecewise[{{1, x > 0}}], x]
(* returns {-2, 0, 1} *)
DiracDelta– Nasser Feb 20 '17 at 23:58FunctionDomainseems to work for mathematical expressions that do not involve some special functions (e.g.,HeavisideTheta[x]orDiracDelta[x]). – David G. Stork Feb 21 '17 at 00:14