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: unit_step (<x>) The left-continuous unit step function; thus unit_step (<x>) vanishes for <x> <= 0 and equals 1 for <x> > 0.
![Unit_step Example 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]);](http://maxima-online.org//plot.html?g=p407172693.png&t=img&db=r-1638161914)
If you want a unit step function that takes on the value 1/2 at zero, use (1 + signum (<x>))/2.
(%o1) true (%i2)