how to convert a string to a mathematical expression programmatically

后端 未结 5 1999
时光说笑
时光说笑 2020-12-20 23:32

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. An

5条回答
  •  难免孤独
    2020-12-21 00:16

    There are plenty methods for formula evaluation, take a look. Just take your input, replace a, b, n chars in your string to values provided by user and resolve equation with one of methods mentioned.

提交回复
热议问题