Derived Parameter Submenu
Functions in Derive New Parameter Dialog and Their Definitions:
sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, exp, ln, log, abs, sqrt, neg:
for the above functions, the syntax for FSC-H parameter would be
FXN(FSC-H) where FXN is replaced with one of the strings above.
rand(x):
rand() is the same as rand(1), generates random number from 0 to x
if(a,b,c):
evaluate "a": if true, then return "b" else "c"
max, max, sd, cv:
FXN(a,b,c,...) returns the function value on all parameters
norm(a,b):
random number (normal distribution) with mean = a and sd = b
sub(s,a,b):
substring of s, starting at a and length b characters
find(s,a[,i]):
returns the character position of "a" in "s", start searching at i
(first char = 1; 0 = no occurence)
char(n):
returns a string equivalent of numeric value n
num(s):
converts the string s to a number
word(s,i,d):
finds word #i in s, delimited by "d"
repl(s,a,b):
replace all occurrences of "a" in "s" with "b"
rep1(s,a,b):
replace first occurrence of "a" in "s" with "b"
len(s):
length of s
del(s,o,j):
delete j characters in s starting at i
ins(s,a,i):
insert string a into s at position i
start, end, contains (a,b):
1 if a starts/ends/contains string b
uppercase/lowercase(a):
returns upper/lower (a)
truncate(a, i):
truncate a to i chars (if i < 0, trim last -i chars from end)
var(v, n):
define variable v, give value n
for(Ei, Eq, Et, El, Er):
Ei = initial expression; Eq = loop qualifier (must be numeric); El = loop;
Et = loop terminal statement; Er = fxn result
Execution:
Ei, then test Eq:
if true, then (El and then Et and repeat test) else Er
for (var(c,1); var(x,0), x < 3, var(x, x+1), var(c, c*2), c) ... returns 4
HardExits afer 1,000 loops UNLESS the variable "MaxLoops" is defined

