예제 #1
0
        private void LinearArcsin()
        {
            LinearAlgorithms.N = CountOfIterations;
            Stopwatch sw = new Stopwatch();

            sw.Start();
            LinearValue = LinearAlgorithms.GetLeibniz().ToString();
            sw.Stop();
            LinearTime = sw.Elapsed.TotalSeconds.ToString();
            RaisePropertyChanged("LinearTime");
        }
예제 #2
0
        private void LinearIntegral()
        {
            LinearAlgorithms.N = CountOfIterations;
            Stopwatch sw = new Stopwatch();

            sw.Start();
            LinearValue = $"{LinearAlgorithms.GetIntegral()}";
            sw.Stop();
            LinearTime = $"{sw.Elapsed.TotalSeconds}";
            RaisePropertyChanged("LinearValue");
            RaisePropertyChanged("LinearTime");
        }
예제 #3
0
        private void LinearMonteCarlo()
        {
            LinearAlgorithms.N = CountOfIterations;
            Stopwatch sw = new Stopwatch();

            sw.Start();
            LinearValue = $"{LinearAlgorithms.GetMonteCarlo()}";
            sw.Stop();
            LinearTime = sw.Elapsed.TotalSeconds.ToString();
            RaisePropertyChanged("LinearValue");
            RaisePropertyChanged("LinearTime");
        }