Vb.net vb中对分法的指数型弦方程

Vb.net vb中对分法的指数型弦方程,vb.net,string,math,equation,bisection,Vb.net,String,Math,Equation,Bisection,我想创造一些类似的东西, 现在,我的问题是指数,有人能帮我吗,或者有没有更简单的方法把这个字符串转换成数学方程 func = (function).Text 'ex: x^4-x^3+x-5 tol = TextBox2.Text <- you can ignore this one mloop = TextBox3.Text <- you can ignore this one a = rangeA.Text b = rangeB.Text fu

我想创造一些类似的东西, 现在,我的问题是指数,有人能帮我吗,或者有没有更简单的方法把这个字符串转换成数学方程

func = (function).Text 'ex: x^4-x^3+x-5
tol = TextBox2.Text           <- you can ignore this one
mloop = TextBox3.Text         <- you can ignore this one
a = rangeA.Text
b = rangeB.Text
funcA = Replace(func, "x", a)
funcB = Replace(func, "x", b)
func=(函数).Text'ex:x^4-x^3+x-5

tol=TextBox2。文本链接到的答案有一个案例陈述。只需添加“^”大小写。运算符的优先级如何?因此您还需要添加一个“(…)”大小写。创建一个初始循环来解析“^”,然后返回并解析其余部分。搜索
vb.net表达式计算器
,第一个结果: