SegmentFunctions2(R, S)ΒΆ

seg.spad line 176 [edit on github]

This package provides operations for mapping functions onto segments.

map: (R -> S, Segment R) -> List S if R has OrderedRing

map(f, s) expands the segment s, applying f to each value. For example, if s = l..h by k, then the list [f(l), f(l+k), ..., f(lN)] is computed, where lN <= h < lN+k.

map: (R -> S, Segment R) -> Segment S

map(f, l..h) returns a new segment f(l)..f(h).