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:

Unit_step

Function: unit_step (<x>) The left-continuous unit step function; thus unit_step (<x>) vanishes for <x> <= 0 and equals 1 for <x> > 0.

load(orthopoly) ;
f(x):=10*unit_step(x-1/2)+10*unit_step(x-1)+10*unit_step(x-3/2)+10*unit_step(x-2)+10*unit_step(x-5/2);
g(x):=15+10*unit_step(x-1)+10*unit_step(x-2)+10*unit_step(x-3);
plot2d([f(x),g(x)],[x,0,3],[y,0,100]);

If you want a unit step function that takes on the value 1/2 at zero, use (1 + signum (<x>))/2.

(%o1)                                true
(%i2) 

Related Examples

unit_step

? unit_step;

Calculate

unit_step

f(x):= 0.1*unit_step(...

f(1.2);

Calculate

unit_step

? unit_step;

Calculate

unit_step

f(x):= 0.1*unit_step(...

f(1.2);

Calculate