Ejemplo n.º 1
0
        public LinearEquation(Equation equation) : base(equation.LeftSide, equation.RightSide)
        {
            VariableIdentifierCollection resultingVariable;

            SolvableEquationFunctions.CheckIfValid(this, 1, 1, new double[0], out resultingVariable);

            ResultingVariable = resultingVariable;
        }
        public QuadraticEquation(Equation equation) : base(equation.LeftSide, equation.RightSide)
        {
            VariableIdentifierCollection resultingVariable;

            SolvableEquationFunctions.CheckIfValid(this, 1, 2, new[] { 2d }, out resultingVariable);

            ResultingVariable = resultingVariable;
        }