如何将字符串转换为数学表达式程序化 - 使用 [英] How Do I Can Convert A String To A Mathematical Expression Programmatic-Ally Using

查看:325
本文介绍了如何将字符串转换为数学表达式程序化 - 使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I am a beginner at C#. I am facing a problem while converting a string to a mathematical expression. I have a UI where user can create formula using random formula field. And in another UI user will give input of those formula field.

like for example at first time the formula may b (a+b)^n and another the formula may b ((a+b+c)^n+b).

In my calculation UI for the first time user will give input for a,b,n and for 2nd formula user will give input for a,b,c,n. Can anyone please help me about how to get the result for both of the formula programmatic-ally? Thanks in advance

推荐答案

查看这些以供参考



http:/ /devreminder.wordpress.com/net/net-framework-fundamentals/c-dynamic-math-expression-evaluation/ [ ^ ]



http://www.c-sharpcorner.com/UploadFile/mgold/CodeDomCalculator08082005003253AM/CodeDomCalculator.aspx [ ^ ]



逃离 - 快速轻量级表达评估器 [ ^ ]
Check these for a reference

http://devreminder.wordpress.com/net/net-framework-fundamentals/c-dynamic-math-expression-evaluation/[^]

http://www.c-sharpcorner.com/UploadFile/mgold/CodeDomCalculator08082005003253AM/CodeDomCalculator.aspx[^]

Flee - Fast Lightweight Expression Evaluator[^]


这篇关于如何将字符串转换为数学表达式程序化 - 使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆