Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: signum (<x>) For numeric <x>, returns 0 if <x> is 0, otherwise returns -1 or +1 as <x> is less than or greater than 0, respectively.
![Signum Example f(x,y):= sin(x)^2+signum(cos(y));
plot3d(f(x,y), [x,-5,5], [y,-5,5]);](http://maxima-online.org//plot.html?g=p925872109.png&t=img&db=r-1042704006)
If <x> is not numeric then a simplified but equivalent form is returned. For example, signum(-x) gives -signum(x).
(%o1) true (%i2)