int.cam - a small CAMILA library for small integers
intSUM(l:INT-seq):INT
intMIN(s:INT-set):INT
intMAX(s:INT-set):INT
intMUL(l:INT-seq):INT
intPot(a:INT,b:INT):INT
intSet2IncIntSeq(s:INT-set):INT-seq
intSet2IntSeq(s:INT-set):INT-seq
intFF2index(ff:A->INT):A-seq
intAsRealRound(n:INT,i:INT):INT
intPerc(x:INT,y:INT,i:INT):INT
intAsReal2STR(x:INT,i:INT):STR
intAvg(l:INT-seq,p:INT):INT
This library provides a few functions useful in simple
integer arithmetics. Some functions in this library are obsolete.
The CAMILA type INT ranges from -maxint to maxint.
For long integer arithmetics other data types are required.
Last Update: 1999.11.11
The informal semantics of the operators are as follows:
intSUM(l)
sums sequence l of integers.
intMIN(s)
computes minimum of a set of INT.
intMIN(s)
computes maximum of a set of INT.
intMUL(l)
reduces sequence l of integers via multiplication.
intPot(a,b)
computes a^b.
intSet2IncIntSeq(s)
sorts s in INT-increasing order.
intSet2IntSeq(s)
sorts s in INT-decreasing order.
intFF2index(ff)
builds index of ff (range INT-increasing ordering).
intAsRealRound(n,i)
regards n as a real number with i decimal places
and rounds it.
intPerc(x,y,i)
computes x as percentage of y with i decimal places
intAsReal2STR(n,i)
regards n as a real number with i decimal places
and converts into to a string.
intAvg(l,p)
averages sequence l of integers, p adds decimal precision.
No include commands found.
J.N. Oliveira (jno@di.uminho.pt)