Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Signum

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.

f(x,y):= sin(x)^2+signum(cos(y));
plot3d(f(x,y), [x,-5,5], [y,-5,5]);

If <x> is not numeric then a simplified but equivalent form is returned. For example, signum(-x) gives -signum(x).

(%o1)                                true
(%i2) 

Related Examples

signum

signum(-1);

Calculate

signum

a: -2;

if abs(a)>0 then p...

signum(a);

Calculate

signum

signum(0);

Calculate

signum

q(x):=(signum(x)+1)*0.5;

Calculate

signum

signum(-5);

Calculate

signum

signum(-1);

Calculate

signum

signum(-4);

Calculate

signum

signum(2^-x);

Calculate

signum-sin

f(x):=signum(sin(x));

Calculate

signum

a: -2;

if abs(a)>0 then p...

signum(a);

Calculate