Beispiel #1
0
        public BaseTools()
        {
            Name = "База";

            Keywords["Add"] = new Info
            {
                Title = "Сложение",
                Description = "Add(a<sub>1</sub>,a<sub>2</sub>,...,a<sub>n</sub>)"
            };
            Keywords["Mul"] = new Info
            {
                Title = "Умножение",
                Description = "Mul(a<sub>1</sub>,a<sub>2</sub>,...,a<sub>n</sub>)"
            };
            Keywords["Sub"] = new Info
            {
                Title = "Вычитание",
                Description = "Sub(a,b)"
            };
            Keywords["Div"] = new Info
            {
                Title = "Деление",
                Description = "Div(a,b)"
            };
            Keywords["Mod"] = new Info
            {
                Title = "Взятие остатка",
                Description = "Mod(a,module)"
            };
        }
        public FactorizationTool()
        {
            Name = "Факторизация";

            Keywords["GCD"] = new Info
            {
                Title = "Наибольший общий делитель",
                Description = "GCD(a<sub>1</sub>,a<sub>2</sub>,...,a<sub>n</sub>)"
            };
            Keywords["LCM"] = new Info
            {
                Title = "Наименьшее общее кратное",
                Description = "lcm(a<sub>1</sub>,a<sub>2</sub>,...,a<sub>n</sub>)"
            };
            Keywords["Euclid"] = new Info
            {
                Title = "Расширенный алгоритм Евклида",
                Description = "Euclid(a,b)"
            };
            Keywords["GaussCriterion"] = new Info
            {
                Title = "Критерий Гаусса",
                Description = "<div>Символ Лежандра</div><div>GaussCriterion(a,n)</div>"
            };
            Keywords["Fermat"] = new Info
            {
                Title = "Тест Ферма",
                Description = "<div>Fermat(n)</div><div>Fermat(n,iterations)</div>"
            };
            Keywords["SolovayStrassen"] = new Info
            {
                Title = "Тест Соловея-Штрассена",
                Description = "<div>SolovayStrassen(n)</div><div>SolovayStrassen(n,iterations)</div>"
            };
            Keywords["RabinMiller"] = new Info
            {
                Title = "Тест Рабина-Миллера",
                Description = "<div>RabinMiller(a,rounds)</div>"
            };
            //Keywords["cfraction"] = new Info
            //{
            //    Title = "Цепная дроби",
            //    Description = "cfraction(a,b)"
            //};
        }