Boxcar Function

Author

Eric W. Weisstein
September 16, 2007

This notebook downloaded from http://mathworld.wolfram.com/notebooks/SpecialFunctions/BoxcarFunction.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/BoxcarFunction.html.

©2007 Wolfram Research, Inc. except for portions noted otherwise

Definition

Boxcar[a_,b_,c_,x_]:=c(UnitStep[x-a]-UnitStep[x-b])

Plot

<<Utilities`Plot`
<<Utilities`Typesetting`

Plot[Boxcar[1/2,1,1,x],{x,-.5,1.5},ExclusionsStyle->Red,AxesLabel->{(Subscript[Π, Sequence[InlineFraction[1,2],1]])[x],x},ImageSize->300]

Special Cased

Boxcar[-1/2,1/2,1,x]//FullSimplify