/// <summary>
 /// The Prepare.
 /// </summary>
 /// <param name="m">The m<see cref="LeftFormula"/>.</param>
 /// <param name="partial">The partial<see cref="bool"/>.</param>
 /// <returns>The <see cref="CombinedFormula"/>.</returns>
 public CombinedFormula Prepare(LeftFormula m, bool partial = false)
 {
     CombinedFormula              = new CombinedFormula(m, this, partial);
     CombinedFormula.LeftFormula  = m;
     CombinedFormula.RightFormula = this;
     return(CombinedFormula);
 }
 /// <summary>
 /// The Prepare.
 /// </summary>
 /// <param name="f">The f<see cref="Formula"/>.</param>
 /// <param name="m">The m<see cref="LeftFormula"/>.</param>
 /// <param name="partial">The partial<see cref="bool"/>.</param>
 /// <returns>The <see cref="CombinedFormula"/>.</returns>
 public CombinedFormula Prepare(Formula f, LeftFormula m, bool partial = false)
 {
     CombinedFormula              = new CombinedFormula(m, f, partial);
     CombinedFormula.LeftFormula  = m;
     CombinedFormula.RightFormula = f;
     return(CombinedFormula);
 }
        /// <summary>
        /// The CreateEvaluator.
        /// </summary>
        /// <param name="f">The f<see cref="Formula"/>.</param>
        /// <param name="m">The m<see cref="LeftFormula"/>.</param>
        /// <returns>The <see cref="Evaluator"/>.</returns>
        public Evaluator CreateEvaluator(Formula f, LeftFormula m)
        {
            CombinedMathset mathline = CombineMathset(f, m);
            Evaluator       ev       = new Evaluator(mathline.Compute);

            return(ev);
        }
        /// <summary>
        /// The CombineMathset.
        /// </summary>
        /// <param name="f">The f<see cref="Formula"/>.</param>
        /// <param name="m">The m<see cref="LeftFormula"/>.</param>
        /// <returns>The <see cref="CombinedMathset"/>.</returns>
        public CombinedMathset CombineMathset(Formula f, LeftFormula m)
        {
            CombinedMathset mathline = Compiler.Compile(new CombinedFormula(m, f));

            return(mathline);
        }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CombinedFormula"/> class.
 /// </summary>
 /// <param name="m">The m<see cref="LeftFormula"/>.</param>
 /// <param name="e">The e<see cref="Formula"/>.</param>
 /// <param name="partial">The partial<see cref="bool"/>.</param>
 public CombinedFormula(LeftFormula m, Formula e, bool partial = false)
 {
     lexpr        = m;
     expr         = e;
     this.partial = partial;
 }