Solving a Variable Equation defined by the User

前端 未结 3 519
无人及你
无人及你 2021-02-04 14:28

Answers in C, Python, C++ or Javascript would be very much appreciated. I\'ve read a few books, done all the examples. Now I\'d like to write a simple program. But, I already ra

3条回答
  •  后悔当初
    2021-02-04 15:09

    There isn't a simple way to do this in C but I think muParser may be useful to you, it is written in C++ but has C binding. ExprTk is also an option but looks like it is C++ only, on the plus side it looks much easier to get interesting results with.

    Another option may be the Expression Evaluation which is part of Libav. It is in C and the eval.h header has some good descriptions of the interface.

提交回复
热议问题