예제 #1
0
        private void btnTask4_Click(object sender, EventArgs e)
        {
            double R;

            double.TryParse(txtTask4.Text, out R);
            lblTask4X.Text = calculator.task4(R).ToString();
        }
예제 #2
0
        public void Execute(lab1Calc Laba1)
        {
            double X;

            Console.WriteLine("Введите число X");
            double.TryParse(Console.ReadLine(), out X);
            Console.WriteLine("Ответ:  " + Laba1.task4(X));
        }
예제 #3
0
        public void test1()
        {
            double result = obj.task4(1.5);

            Assert.AreEqual(1, result, 0.0001);
        }