解决数学方程式的最简单方法
I want to solve a mathematical problem that contains a lot of algebra.
用户将输入6个变量,需要进行计算
The user will input 6 variables and the computation needs to occur
这是一个方程式的例子-
Here is an example of an equation -
E=2/(((p1/sp2)*(R2/p1))*((s1+2*R1))*((s2+2*Rt2))-((ts2+Rp2))/((Ry1+up1))*((R1+2*Ry1))/((Re2+2*Rt2)))
我知道在Visual Basic中,您必须打开val()才能进行加法运算,因为我需要50多个这样的方程式进行计算.
I know that in Visual basic you have to open a val() for additions which can take for ever to code because I have over 50 equations like that to compute.
我想解决一个数学问题,其中包含很多代数.
I want to solve a mathematical problem that contains a lot of algebra.
Three options are described here:
https://social.msdn.microsoft.com/Forums/en-US/41466b93-56cb-4dd0-8a16-d53aec3c4a2f/evaluating-a-string-expression-in-vbnet?forum=vblanguage
托管库可能是最好的选择-设置可能需要一些时间,但是一旦完成,它的使用就非常简单.
The managed library is probably the best option - it may take a little time to set up, but once done it is extremely simple to use.