Language operators and functions
Description
The kinetic scripting language provides many useful operators and functions:
Operators
Logic operators:
Bit operators:
Functions
- Arithmetic functions:
- y = exp(x)
- y = ln(x)
- y = log10(x)
- y = log2(x)
- y = logn(x, n)
- y = lnxp1(x)
- y = ldexp(x, z)
- y = power(x, p)
- y = intpower(x, p)
- y = oneoveroneplusexp(x)
- y = sigmoid(low, high, slope, half, x)
Rounding functions:
y = min(x)
y = max(x)
y = frac(x)
y = int(x)
y = round(x)
y = trunc(x)
y = ceil(x)
y = floor(x)
Trigonometric functions:
y = cos(x)
y = tan(x)
y = cotan(x)
y = atn(x)
y = arctan2(x)
y = arcsin(x)
y = arccos(x)
y = sinh(x)
y = cosh(x)
y = tanh(x)
y = arcsinh(x)
y = arccosh(x)
y = arctanh(x)
y = hypot(x1, x2)
y = degtorad(x)
y = radtodeg(x)
y = gradtorad(x)
y = radtograd(x)
y = cycletorad(x)
y = radtocycle(x)
Distributions and random numbers:
y = gaussianp(x, m, s)
y = random
y = randomrange(low, high)
y = randomg(m, s)
y = randomexp
y = randseed(s)
Logical functions:
- y = choice(value, trueexp, falseexp)
Cast and format functions:
y = val(x)
y = format(x, f)
String functions:
y = pos(x, s)
y = copy(x, f, c)
y = trim(x)
y = ltrim(x)
y = rtrim(x)
y = lower(x)
y = upper(x)
y = stringreplace(x, s1, s2)
Time and date functions:
y = datetostr
y = timetostr
y = timecounter
File name functions:
y = extractfilepath(x)
y = extractfilename(x)
y = extractfileext(x)
y = changefileext(x, e)
Color functions:
- y = rgbtocolor(red, green, blue);
Examples
See also
(C) 2008-2009 Lorin Milescu. Last modified: 01-06-09