Unit Functions

Top  Previous  Next

The following unit-valued functions are supported in FlexPDE:

       

USTEP(arg)        

The unit step function requires one argument.  USTEP is 1 where the argument is positive and 0 where the argument is negative.  For example, USTEP(x-x0) is a step function at x=x0.

       

UPULSE(arg1,arg2)

The unit pulse function requires two arguments.  UPULSE is 1 where arg1 is positive and arg2 is negative and 0 everywhere else.  UPULSE(t-t0, t-t1) is a pulse from t0 to t1 if t1>t0.

       

URAMP(arg1,arg2)        

The unit ramp function requires two arguments.  URAMP is like UPULSE, except it builds a ramp instead of a rectangle..        

 

 

Examples:

Samples | Misc | Ufuntest.pde