我想提取线性方程式的步骤,而不仅仅是使用WolphramAlpha.Net的结果?

时间:2019-03-19 13:43:37

标签: c# wolframalpha

我正在使用Wolfram | Alpha.Net-2.0 API的完整实现与我的ASP MVC APP通信。幸运的是,我能够提交请求并获得结果,但是据我所知,Wolfram Alpha API具有ShowStepsApi,可用于提取代数问题的步骤。供参考,这是我的代码:

public ActionResult Index2()
{
    // Test the newer library here
    WolframAlphaNET.WolframAlpha wolfram = new WolframAlphaNET.WolframAlpha("JV35XH-QT3VLP5KEG");
    QueryResult results = wolfram.Query("solve 3x-7=11");
    List<Pod> pods = results.Pods;
    List<string> strList = new List<string>();
    Pod primaryPod = results.GetPrimaryPod();

    if (primaryPod != null)
    {
        strList.Add(primaryPod.Title);
        if (primaryPod.SubPods.HasElements())
        {
            foreach (SubPod subPod in primaryPod.SubPods)
            {
                strList.Add(subPod.Title);
                strList.Add(subPod.Plaintext);
            }
        }
    }

    return View();
}

当我调试查看SubPods值时,我找不到任何纯文本或图像格式的步骤!

0 个答案:

没有答案