Hot answers tagged


Are you sure it is supposed to be sign function ? According to this in section 1.8, condassign(a,b,c,d) is equal to a = (b > 0) ? c : d So the function posted is actually giving Heaviside function and not the sign function. It implements this function $$ f(x) =...

Only top voted, non community-wiki answers of a minimum length are eligible