GAS(1G) COMMAND REFERENCE GAS(1G)
NAME
gas - generate additive sequence
SYNOPSIS
gas [ -cn ] [ -in ] [ -nn ] [ -sn ] [ -tn ]
DESCRIPTION
Output is a vector of number elements determined by the
parameters start, terminate, and interval, and by the
formula
x[i]=start+(i*interval MOD (terminate-start+interval))
The parameters number, start, terminate, and interval are
set by command options.
OPTIONS
-cn n elements per output line.
-in interval:=n. If not given, interval:=1.
-nn number:=n. If not given, number:=10, unless terminate
is given, then number:=|terminate-start|/interval.
-sn start:=n. If not given, start:=1.
-tn terminate:=n. If not given, terminate:=positive
infinity. The default value of number usually
terminates generation before positive infinity is
reached.
EXAMPLES
The following example generates the numbers 1 to 10
gas
The following example generates .01,.02,.03,.04,.05
gas -s.01,t.05,i.01
The following example generates 3,5,3,5
gas -s3,t5,i2,n4
SEE ALSO
abs(1g), af(1g), bar(1g), bel(1g), bucket(1g), ceil(1g),
cor(1g), cusum(1g), cvrtopt(1g), dtoc(1g), erase(1g),
exp(1g), floor(1g), gamma(1g), gd(1g), ged(1g),
graphics(1g), gtop(1g), hardcopy(1g), hilo(1g), hist(1g),
Printed 10/17/86 1
GAS(1G) COMMAND REFERENCE GAS(1G)
hpd(1g), intro(1g), label(1g), list(1g), log(1g), lreg(1g),
mean(1g), mod(1g), pair(1g), pd(1g), pie(1g), plot(1g),
point(1g), power(1g), prime(1g), prod(1g), ptog(1g),
qsort(1g), quit(1g), rand(1g), rank(1g), remcom(1g),
root(1g), round(1g), siline(1g), sin(1g), subset(1g),
td(1g), tekset(1g), title(1g), total(1g), ttoc(1g), var(1g),
vtoc(1g), whatis(1g), yoo(1g), and gps(5g).
Printed 10/17/86 2
%%index%%
na:72,68;
sy:140,195;
de:335,553;
op:888,779;
ex:1667,296;
se:1963,554;2661,919;
%%index%%000000000114