MathPrimitives:
PROC [self: Root] ~ {
Register[self, "add", Padd];
Register[self, "div", Pdiv];
Register[self, "idiv", Pidiv];
Register[self, "mod", Pmod];
Register[self, "mul", Pmul];
Register[self, "sub", Psub];
Register[self, "abs", Pabs];
Register[self, "neg", Pneg];
Register[self, "ceiling", Pceiling];
Register[self, "floor", Pfloor];
Register[self, "round", Pround];
Register[self, "truncate", Ptruncate];
Register[self, "sqrt", Psqrt];
Register[self, "atan", Patan];
Register[self, "cos", Pcos];
Register[self, "sin", Psin];
Register[self, "exp", Pexp];
Register[self, "ln", Pln];
Register[self, "log", Plog];
Register[self, "rand", Prand];
Register[self, "srand", Psrand];
Register[self, "rrand", Prrand];
Register[self, "and", Pand];
Register[self, "not", Pnot];
Register[self, "or", Por];
Register[self, "xor", Pxor];
Register[self, "bitshift", Pbitshift];
RegisterVal[self, "true", true];
RegisterVal[self, "false", false];
};