|
|
> You don't need a macro for this, a plain old function will do fine.
>
> #declare Heaviside = function {if(x - y, 1, 0)}
> // x=the value, y=the jump threshold, z=nothing
I was wondering about the macro, that would make it more general, but,
as has been demonstrated, they cannot be used inside functions :-)
Thanks to all, I got exactly what I needed, one-stop shopping :-))
Post a reply to this message
|
|