解决数学方程式的最简单方法 [英] Solve mathematical equations the easiest way

查看:119
本文介绍了解决数学方程式的最简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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.

此处介绍了三个选项:
https://social.msdn.microsoft.com/Forums/zh-CN/41466b93-56cb-4dd0-8a16-d53aec3c4a2f/evaluating-a-string-expression-in-vbnet?forum=vblanguage

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.


这篇关于解决数学方程式的最简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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