Download User Manual
Transcript
cond[x:bool, y:T, z:T]: T;
cos[x:real]: real;
(basic) if x then y else z (condition)
(basic) (x)
del[x:T, y:$T]: $T;
(basic) y \ { x }, x is deleted from the set y
denominator[x:num]: num;
(basic) the denominator of a rational number
div[x:num, y:num]: num;
dom[x:T->S]: $T;
elt[x:T, y:$T]: bool;
elt[x:T, y:*T]: bool;
eq[x:T, y:T]: bool;
erlang[m:real, k:real, seed:real]: real;
even[n:num]: bool;
exp[x:real]: real;
false: bool;
fcomp[x:T->S, y:S->R]: T->R;
frc[x:num]: num;
frc[x:real]: real;
frest[x:S->T]: S->T;
front[x:*T]: *T;
gamma[l:real, k: real, seed:real]
gcd[x:num, y:num]: num;
(basic) x div y (truncated)
(utils) domain of x
(basic) x y
(utils) x occurs in y
(basic) x = y
(stat) a random number (erlang)
(utils) is n even?
(basic) e^x
(basic) falsehood
(utils) x o y, '
function'composition
(utils) fractional part of x
(utils) fractional part of x
(utils) x \ {pick(x)}, x without the element pick(x)
(utils) x with the last member removed
(stat) draw from a gamma distribution with mean l/k
and variance l/k^2.
(basic) x y, greatest common divisor
ge[x:num, y:num]: bool;
ge[x:real, y:real]: bool;
gt[x:num, y:num]: bool;
gt[x:real, y:real]: bool;
head[x:str]: str;
head[x:*T]: T;
iff[x:bool, y:bool]: bool;
impl[x:bool, y:bool]: bool;
ins[x:T, y:$T]: $T;
ins[x:T, y:*T]: *T;
inv[x:T->S, y: S]: $T;
(utils) x >= y
(utils) x >= y
(utils) x > y
(utils) x > y
(basic) first char in string x
(basic) the first member of x
(utils) x == y (logical equivalence)
(utils) x -> y (logical implication)
(basic) y union { x } (insert x into y)
(basic) y with x added as head
(basic) { z | z ∈ dom(x) and x(z) = y } (inverse)
*