Ejemplo n.º 1
0
        private static void Exercitiul2()
        {
            vector a = new vector();
            vector b = new vector();
            vector c = new vector();

            a.init(); b.init(); c.init();
            while (b.isEqual(c))
            {
                c.init();
            }

            Console.WriteLine(a.tostring("a"));
            Console.WriteLine(b.tostring("b"));
            Console.WriteLine(c.tostring("c"));
            int sum = volum(a, b, c);

            Console.WriteLine("volum: " + Math.Abs(sum));
        }
Ejemplo n.º 2
0
        private static void Exercitiul1()
        {
            vector a = new vector();
            vector b = new vector();

            a.init(); b.init();
            if (b.isNull())
            {
                b.init();
            }

            Console.WriteLine(a.tostring("a"));
            Console.WriteLine(b.tostring("b"));

            string sum = produsScalar(a, b);

            Console.WriteLine("axb= " + sum);
            Console.WriteLine("a*b= " + produsScalarVector(a, b));
            Console.WriteLine("||a||= " + norma(a));
            Console.WriteLine("||b||= " + norma(b));
        }
Ejemplo n.º 3
0
        private static void Exercitiul1()
        {
            vector a = new vector();
            vector b = new vector();

            a.init(); b.init();

            Console.WriteLine(a.tostring("a"));
            Console.WriteLine(b.tostring("b"));
            string sum = produsScalar(a, b);

            Console.WriteLine("axb= " + sum);
        }
Ejemplo n.º 4
0
        public static void init()
        {
            if (!Directory.Exists(DATA_PATH))
            {
                Directory.CreateDirectory(DATA_PATH);
            }

            configowo.init(new map_pair[4] {
                new map_pair("token", "put_ur_token_here"),
                new map_pair("prefix", '!'),
                new map_pair("ownerid", "put_ur_discord_id_here"),
                new map_pair("trash_cooldown_sec", 1800)
            });
            serversowo.init();
            logchannelsowo.init();
            allowedusersowo.init();

            token              = configowo.get_value <string>("token");
            prefix             = configowo.get_value <string>("prefix");
            ownerid            = configowo.get_value <string>("ownerid");
            trash_cooldown_sec = configowo.get_value <int>("trash_cooldown_sec");
        }