C# 如何分析解决“包含”的系统&燃气轮机&引用;在数学中.Net符号?
我需要评估以下内容:C# 如何分析解决“包含”的系统&燃气轮机&引用;在数学中.Net符号?,c#,math.net,mathdotnet-symbolics,C#,Math.net,Mathdotnet Symbolics,我需要评估以下内容: 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");
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);
}
}
}
使用系统;
使用System.Collections.Generic;
使用MathNet.Symbolics;
名称空间GtEq{
静态类程序{
私有静态void Main(字符串[]args){
var eq=中缀.ParseOrThrow(“a>b”);
var result=Evaluate.Evaluate(新字典(){
{“a”,5.0},
{“b”,1.0}
},eq);
控制台写入线(结果);
}
}
}
它在解析器行中抛出了“>”的含义。
我想知道是否有一种方法可以扩展MathNet.Symbolics以支持“><>=