Menu

#3875 sign(z) for complex z should be an error

None
open
nobody
5
2021-10-11
2021-10-11
No
declare(z,complex)$
sign(z) => pnz
sign(sqrt(z)) => pz

These are incorrect; they should both give an error the way sign(%i) does.

csign is correct:

declare(z,complex)$
csign(z) => complex
csign(sqrt(z)) => complex

Discussion


Log in to post a comment.