Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is there any reason why DiracDelta isn't a NumericFunction but DiracComb is?

I just ate a bug because of that inconsistency

share|improve this question
    
UndirectedEdge has the same problem. –  Murta Aug 24 '13 at 12:47
add comment

1 Answer 1

You're right, applying FullDefinition I see that DiracDelta lacks the NumericFunction attribute. And indeed, NumericQ[DiracComb[1]] yields True whereas NumericQ[DiracDelta[0]] doesn't.

Although I'm not sure why that difference exists, you may perhaps be able to get the desired result (you didn't say what your bug was) by setting SetAttributes[DiracDelta, NumericFunction]. At least it then allows you to work with the knowledge that NumericQ[DiracDelta[0]] is True.

Actually, maybe it would be more correct to remove the NumericFunction from both... depends on what you want, I guess.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.