chickadee » srfi-179 » interval-volume

interval-volume intervalprocedure

If interval is an interval built with

(make-interval lower-bounds upper-bounds)

then, assuming the existence of vector-map, interval-volume returns

(apply * (vector->list (vector-map - upper-bounds lower-bounds)))

It is an error to call interval-volume if interval does not satisfy this condition.