seqops.icn: Procedures to manipulate T-sequences

procedure copyl:           copy list of lists
procedure get_scollate:    find collation in sequence
procedure get_splace:      find motif along a path in sequence
procedure get_srepeat:     find repeat in sequence
procedure is_scompact:     test sequence for compactness
procedure remod:           handle modulus
procedure sbinop:          binary operation on terms
procedure sbound:          compute sequence upper bound  FIX!
procedure scollate:        sequence term collation
procedure scompress:       compact sequence
procedure sconcat:         concatenate sequences
procedure sconcatp:        concatenate sequences as pattern
procedure sconstant:       test for constant sequence
procedure scpal:           closed sequence palindrome
procedure sdecimate:       decimate sequence
procedure sdecollate:      sequence decollation
procedure sdelta:          sequence delta
procedure sdirection:      sequence delta "direction"
procedure sextend:         extend sequence
procedure sground:         ground sequence to i
procedure shaft_period:    shaft period
procedure simage:          string image of sequence
procedure simageb:         bracketed sequence image
procedure sinit:           initialize sequence operations
procedure sintermix:       sequence intermixing
procedure slayer:          layer sequences
procedure slength:         compute sequence length
procedure slocate:         sequences of first positions of terms
procedure smap:            map terms in sequence
procedure smin:            compute sequence lower bound	FIX
procedure smissing:        missing terms in sequence  BOGUS??
procedure smod:            modular reduction
procedure smutate:         mutation
procedure snormal:         normalize sequence
procedure sopal:           create open sequence palindrome
procedure sorder:          positions of first occurrence
procedure sparity:         adjust parity
procedure speriod:         period of sequence
procedure splace:          place motif along a path
procedure splacep:         place motif along a path
procedure splaceg:         generalized motifs along a path
procedure spositions:      positions of values in sequence
procedure spromote:        promote term to sequence
procedure srandom:         random selection
procedure sreflecth:       reflect sequence horizontally
procedure sreflectv:       reflect sequence vertically
procedure sremdupl:        remove duplicate adjacent terms
procedure ssplitdupl:      split duplicate adjacent terms
procedure srepeat:         repeat sequence
procedure srotatev:        rotate sequence vertically
procedure srun:            create connected runs
procedure sscale:          scale terms in sequence
procedure sscollate:       entire sequence collation
procedure sselect:         select terms from sequence
procedure sshift:          shift terms sequence
procedure sundulate:       make undulating sequence
procedure sunmod:          modular expansion
procedure sunop:           unary operation on terms
procedure sbefriend:       make a sequence friendly
procedure connect:         connect friends
procedure wander:          friendly meander

link seqops
March 4, 2003; Ralph E. Griswold
Requires: Courage.
This file is in the public domain.

These procedures perform operations related to T-Sequences and to
analyze T-Sequences.
____________________________________________________________

copyl(xargs[])       copy list of lists
eval_tree(n)         evaluate expression tree
expression_tree(n)   create expression tree
fragment(s, i, p, arg)
get_analysis(s)      analyze sequence
get_scollate(s)      analyze for collation
get_splace(s)        analyze for motif along a path
get_srepeat(s)       analyze for repeat
get_srun(s)          analyze for run
get_sruns(s)         analyze for simple runs
is_scompact(x)       test sequence for compactness
pimage(x)
remod(s, p)
sanalout()           output analysis
sanalysis(x)         over-all analysis
sbefriend(x, p)      befriend sequence
sbinop(op, xargs[])  binary operation on terms
sbound(xargs[])      compute sequence upper bound  FIX!
scollate(xargs[])    sequence collation
scompress(xargs[])   compact sequence
sconcat(xargs[])     concatenate sequences
sconcatp(xargs[])    concatenate sequences, pattern style
scpal(xargs[])       closed sequence palindrome
sdecimate(xargs[])   decimate sequence
sdecollate(order, x) decollate sequence
sdelta(x)            get delta sequence
sdirection(x)        "direction" of delta(x)
sequiv(x1, x2)       test sequence equivalence
sextend(xargs[])     extend sequence
sflatten(x)          flatten nested sequence
sground(s, i)        ground sequence to i
shaft_period(x1, x2) shaft period
simage(x, limit)     string image of sequence
sinit()              initialize sequence operations
sintermix(xargs[])   intermix sequences
slayer(xargs[])      layer sequences
slength(x)           compute sequence length
slocate(xargs[])     sequences of first positions of terms
smap(xargs[])        map terms in sequence
smin(xargs[])        compute sequence lower bound   FIX
smissing(x)          missing terms in sequence  BOGUS??
smod(xargs[])        modular reduction
smutate(xargs[])     mutation
snormal(x)           normalize sequence
sopal(xargs[])       create open sequence palindrome
sorder(x)            positions of first occurrence
sparity(xargs[])     adjust parity
speriod(s, i)        sequence period
splace(xargs[])      place motif along a path
splaceg(xargs[])     generalized motifs along a path
splacep(xargs[])     place motif along a path
ssplitdupl(xargs[])  split duplicate adjacent terms
spositions(x1, x2)   shaft positions
spromote(x)          promote term to sequence
srandom(x)           random selection
sreflecth(xargs[])   reflect sequence horizontally
sreflectr(xargs[])
sreflectv(xargs[])   reflect sequence vertically
sremdupl(xargs[])    remove duplicate adjacent terms
srepeat(xargs[])     repeat sequence
srepl(xargs[])       replicate sequence terms
srotatev(xargs[])    rotate sequence vertically
srun(xargs[])        create connected run
sruns(xargs[])       create simple runs
sscale(xargs[])      scale terms in sequence
sscollate(xargs[])   collate entire sequences
sselect(xargs[])     select terms from sequence
sshift(x, i)         shift terms sequence
sundulate(x)         make undulating sequence
sunmod(x)            modular expansion
sunop(op, xargs[])   unary operation on terms
walk_tree(n, tree_list, tree_ptrs, depth)
                     walk expression tree

Source code | Program Library Page | Icon Home Page