private static void Main(string[] args) { var firstGen = new GenFunc1(10, 1); var secondGen = new GenFunc2(10, 2); var thirdGen = new GenFunc3(10); var fourthGen = new GenFunc4(1); var fifthGen = new GenFunc5(10); var sixthGen = new GenFunc6(10); Console.WriteLine(firstGen); Console.WriteLine("\n"); Console.WriteLine(secondGen); Console.WriteLine("\n"); Console.WriteLine(thirdGen); Console.WriteLine("\n"); Console.WriteLine(fourthGen); Console.WriteLine("\n"); Console.WriteLine(fifthGen); Console.WriteLine("\n"); Console.WriteLine(sixthGen); var cn = new CombinatorialNumber(10, 2); Console.WriteLine(cn.Eval()); Console.ReadLine(); }
public MainViewModel() { _firstCoefParam = 1; _firstFinalExp = 10; _firstGen = new GenFunc1(_firstFinalExp, _firstCoefParam); _secondExpParam = 1; _secondFinalExp = 10; _secondGen = new GenFunc2(_secondFinalExp, _secondExpParam); _thirdFinalExp = 10; _thirdGen = new GenFunc3(_thirdFinalExp); _fourthCoefParam = 1; _fourthGen = new GenFunc4(_fourthCoefParam); _fifthFinalExp = 1; _fifthGen = new GenFunc5(_fifthFinalExp); _sixthFinalExp = 1; _sixthGen = new GenFunc6(_sixthFinalExp); }