rect |
(function for equations) |

Usage: |
rect (x, a, b) |

Definition: |
(a ⋜ x && x < b) ? 1 : 0 |

Required: |
a ⋜ b |

Returns 1 if x is between a and b, otherwise 0.

This function is often multiplied by another to "capture a piece" of the other function.

Also known as the "rectangular function" because of the rectangular shape of its graph.

This function is the same as the probability distribution UniformDist, except height of UniformDist the is normalized so that the area under its curve is 1.

If b is infinity, the "unit step function" is formed.