Esempio n. 1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            TexFormulaParser.Initialize();
            this.formulaParser = new TexFormulaParser();

            var testFormula1 = "\\int_0^{\\infty}{x^{2n} e^{-a x^2} dx} = \\frac{2n-1}{2a} \\int_0^{\\infty}{x^{2(n-1)} e^{-a x^2} dx} = \\frac{(2n-1)!!}{2^{n+1}} \\sqrt{\\frac{\\pi}{a^{2n+1}}}";
            var testFormula2 = "\\int_a^b{f(x) dx} = (b - a) \\sum_{n = 1}^{\\infty}  {\\sum_{m = 1}^{2^n  - 1} { ( { - 1} )^{m + 1} } } 2^{ - n} f(a + m ( {b - a}  )2^{-n} )";
            var testFormula3 = "L = \\int_a^b \\sqrt[4]{ |\\sum_{i,j=1}^ng_{ij}(\\gamma(t)) (\\frac{d}{dt}x^i\\circ\\gamma(t) ) (\\frac{d}{dt}x^j\\circ\\gamma(t) ) |}dt";

            this.inputTextBox.Text = testFormula3;
        }
Esempio n. 2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="Project" /> class.
 /// </summary>
 public Project()
 {
     TexFormulaParser.Initialize();
     this.filterData = new Dictionary <ChartType, FilterData> {
         { ChartType.YoverX, new FilterData() }
     };
     this.CalibrationData = new CalibrationData();
     this.CalibrationData.PropertyChanged += this.CalibrationDataPropertyChanged;
     this.ProcessingData = new ProcessingData();
     this.VideoData      = new VideoData {
         LastPoint = new Point[this.ProcessingData.NumberOfTrackedObjects]
     };
     this.CurrentFilterData = new FilterData();
     this.currentChartType  = ChartType.YoverX;
 }