Question: Heaviside not pattern matching

Hi,

 

I am having trouble getting a pattern match to the Heaviside function.

patmatch(Heaviside(x), Heaviside(a::algebraic))

returns "false" whereas I would expect it to return true.

On the other hand:

patmatch(Heaviside(x), Heaviside(x::algebraic))

returns true.

 

What am I missing?

 

Regards.

 

Please Wait...