Inheritance: IEvaluateable
Beispiel #1
0
        public MainModel()
        {
            var f1 = new FunctionWrapper(x => Math.Sin(x));
            var f2 = new FunctionWrapper(x => 2 * Math.Cos(x));
            var f3 = new FunctionWrapper(x => - Math.Sin(x));
            var f4 = new FunctionWrapper(x => - 2 * Math.Cos(x));

            Test1 = new ContinuousPlotDataSource()
            {
                Function = f1
            };
            Test2 = new ContinuousPlotDataSource()
            {
                Function = f2
            };
            Test3 = new ContinuousPlotDataSource()
            {
                Function = f3
            };
            Test4 = new ContinuousPlotDataSource()
            {
                Function = f4
            };
            Test5 = new DynamicPlotDataSource();
        }
Beispiel #2
0
		public MainModel()
		{
			var f1 = new FunctionWrapper(x => Math.Sin(x));
			var f2 = new FunctionWrapper(x => 2 * Math.Cos(x));
			var f3 = new FunctionWrapper(x => -Math.Sin(x));
			var f4 = new FunctionWrapper(x => -2 * Math.Cos(x));

			Test1 = new ContinuousPlotDataSource() { Function = f1 };
			Test2 = new ContinuousPlotDataSource() { Function = f2 };
			Test3 = new ContinuousPlotDataSource() { Function = f3 };
			Test4 = new ContinuousPlotDataSource() { Function = f4 };
			Test5 = new DynamicPlotDataSource();
		}