3

何が簡単になるかを評価する必要があります。

using System;
using System.Collections.Generic;
using MathNet.Symbolics;

namespace GtEq {
    static class Program {
        private static void Main(string[] args) {
            var eq = Infix.ParseOrThrow("a > b");
            var result = Evaluate.Evaluate(new Dictionary<string, FloatingPoint>() {
                {"a", 5.0},
                {"b", 1.0}
            }, eq);
            Console.WriteLine(result);
        }
    }
}

そして、パーサー行で ">" の意味を取得できません。 ここに画像の説明を入力 "> < >= <=" 操作をサポートするために MathNet.Symbolics を拡張する一般的な方法があるのだろうか?

4

0 に答える 0