SUM
f = SUM (var1 [, …, varN])
Sum of value(s) var1
to varN
.
var1
to varN
are single numbers or arrays.
Example
1, 2, 3]
A = [print sum(1, 2, 3) ' Output: 6
print sum(A) ' Output: 6
print sum(A, 1, 2, 3) ' Output: 12
Code samples using SUM
006 arrays+.bas
Balleta 2-11-15.bas
betrayal: crows ii.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
crow.bas
dmsareareadmd.bas
gray scale test.bas
GUI RPSLS v2.bas
integral.bas
leastq.bas
neolithic.bas
nim.bas
permtest.bas
realpolitik.bas
screen labels.bas
subversion.bas
treason.bas
War and Peace.bas
Math
ABS
ABSMAX
ABSMIN
ACOS
ACOSH
ACOT
ACOTH
ACSC
ACSCH
ASEC
ASECH
ASIN
ASINH
ATAN
ATAN2
ATANH
ATN
CEIL
COS
COSH
COT
COTH
CSC
CSCH
DEG
DERIV
DETERM
DIFFEQN
EXP
EXPRSEQ
FIX
FLOOR
FRAC
INT
INTERSECT
INVERSE
LINEQN
LOG
LOG10
M3APPLY
M3IDENT
M3ROTATE
M3SCALE
M3TRANS
MAX
MIN
POLYAREA
POLYCENT
POLYEXT
POW
PTDISTLN
PTDISTSEG
PTSIGN
RAD
RND
ROOT
ROUND
SEC
SECH
SEGCOS
SEGLEN
SEGSIN
SEQ
SGN
SIN
SINH
SQR
STATMEAN
STATMEANDEV
STATMEDIAN
STATSPREADP
STATSPREADS
STATSTD
SUM
SUMSQ
TAN
TANH
TRANSPOSE
If there is insufficient information on this page and you wish learn more about SUM,
please send an email to smallbasic@gmail.com. You can help to improve information about
SUM by submitting a pull request,
click View Source for details. Note, an offline language reference text file is also available - see the Download section.