Bart Vandewoestyne
2006-09-12 11:26:17 UTC
Does Maple have a standard command for the indicator function
(characteristic function)? For example in 2 dimensions,
every point inside the rectangle (-infty..a, -infty..b)
should give a function value of 0 and everything outside this rectangle
should give a 1.
I am currently doing it like this:
ind := (x, y, a, b) -> Heaviside(x-a)*Heaviside(y-b);
Is this the correct Maple-way to do this, or would there be a
better way or a standard Maple command?
Thanks,
Bart
(characteristic function)? For example in 2 dimensions,
every point inside the rectangle (-infty..a, -infty..b)
should give a function value of 0 and everything outside this rectangle
should give a 1.
I am currently doing it like this:
ind := (x, y, a, b) -> Heaviside(x-a)*Heaviside(y-b);
Is this the correct Maple-way to do this, or would there be a
better way or a standard Maple command?
Thanks,
Bart
--
"Share what you know. Learn what you don't."
"Share what you know. Learn what you don't."