Functions at a Glance

Mathematical Functions

Basic

abs arg conj Re Im
sgn signum sqrt cbrt
toDeg toDegrees toRad toRadians
isFinite isInfinite isNaN
sum prod product rsr rms
random randomRange randomDecimal

Rounding

ceil floor
aug trunc
round rint
int frac

Logarithms & Exponentials

exp exp1 exp2 exp10
ln ln1 log2 log10
log pow root

Trigonometry

sin cos tan cot sec csc
asin acos atan acot asec acsc
sinh cosh tanh coth sech csch
asinh acosh atanh acoth asech acsch

Coordinate Transformation

hypot atan2
radius theta
xcoord ycoord

Statistics

avg average
geom geomean
min minimum
max maximum
stddev variance
pstddev pvariance
sstddev svariance

Finance

annuity compound

Factorials & Probability

fact factorial Γ gamma β beta
lnfact lnfactorial lnΓ lngamma lnβ lnbeta
nCr choose nPr pick

Number Theory & Representation

agm gcd lcm
bin oct hex bc
decbin decoct dechex
bindec octdec hexdec
reverseBits reverseBytes
bitMingle bitSelect

Infinite-arity Relative & Boolean Operators

and or xor equal
asc ascending desc descending
inc increasing dec decreasing

String Functions

String Manipulation

len length reverse
concat concatsp implode
strcmp csStrcmp regMatch trMatch
offset csOffset regOffset trOffset
instr csInstr regInstr trInstr
rinstr csRinstr regRinstr trRinstr
countFields csCountFields regCountFields trCountFields
nthField csNthField regNthField trNthField
explode csExplode regExplode trExplode
replace csReplace regReplace trReplace
replaceAll csReplaceAll regReplaceAll trReplaceAll
left center right
mid substr substring
lpad cpad rpad
trim ltrim rtrim
ucase tcase lcase
' format

Text Encoding

numToChar charToNum
numToUni uniToNum
binToChar charToBin
binToUni uniToBin

Encode & Decode

hash rot13
htmlEncode htmlDecode
urlEncode urlDecode
urlQueryEncode urlQueryDecode
ygnEncode ygnDecode

Other Functions

Date & Time

date time dateItems
secs seconds ticks

Lists

head tail number
lconcat lreverse llength
map filter reduce

Binary Data

atob btoa pack unpack

Sound

sound speech voice
sounds tone voices

Parameter & Return Value Passing

paramCount param params
parent result value

System Information

systemName systemVersion
vmName vmVersion
javaName javaVersion
xionName xionVersion
version getenv
heapSpace serialPorts

File System

appPath applicationPath progPath programPath
appFile applicationFile progFile programFile
docPath documentPath docFile documentFile
appOrDocPath applicationOrDocumentPath progOrDocPath programOrDocumentPath
appOrDocFile applicationOrDocumentFile progOrDocFile programOrDocumentFile
includePath includeFile path