nexpand-interval |
| interval amount
| [Function] |
Purpose
Expand an interval by amount.
Package :gbbopen
Module :gbbopen-core
Arguments and values
interval | An interval | |
amount | A number |
Returns
The expanded interval.
Description
An interval that is contracted (expanded negatively) by an
amount greater than one-half of its width will result in a zero-width
interval at the center point of the original interval.
See also
*coerce-contracted-interval-rationals-to-floats*
copy-interval
expand-interval
expand-point
infinite-interval
interval-start
interval-values
interval-end
make-interval
nshift-interval
shift-interval
Examples
> (nexpand-interval '(2 5) 2) (0 7) > (nexpand-interval '(2 . 5) -1) (3 . 4) > (nexpand-interval #(2 5) .5) #(1.5 5.5) > (nexpand-interval '(2 . 5) -3) (3.5 . 3.5) >
The GBBopen Project
nexpand-interval |