private void CreateSpiceFunctions() { var functions = new List <IFunction> { MathFunctions.CreatePos(), RandomFunctions.CreateAGauss(), RandomFunctions.CreateAUnif(), MathFunctions.CreateBuf(), MathFunctions.CreateCbrt(), MathFunctions.CreateCeil(), MathFunctions.CreateDb(Mode), ControlFunctions.CreateDef(), RandomFunctions.CreateFlat(), MathFunctions.CreateFloor(), RandomFunctions.CreateGauss(), RandomFunctions.CreateExtendedGauss(), MathFunctions.CreateHypot(), ControlFunctions.CreateIf(), MathFunctions.CreateInt(), MathFunctions.CreateInv(), MathFunctions.CreateLn(), MathFunctions.CreateLimit(), RandomFunctions.CreateLimit(), MathFunctions.CreateMax(), RandomFunctions.CreateMc(), MathFunctions.CreateMin(), MathFunctions.CreateNint(), MathFunctions.CreateRound(), MathFunctions.CreatePwr(Mode), MathFunctions.CreatePwrs(), RandomFunctions.CreateRandom(), MathFunctions.CreateSgn(), MathFunctions.CreateTable(), MathFunctions.CreateU(), RandomFunctions.CreateUnif(), MathFunctions.CreateURamp(), MathFunctions.CreatePoly(), }; foreach (var function in functions) { AddFunction(function.Name, function); } }