开发者

How to convert string to math equation? [duplicate]

开发者 https://www.devze.com 2023-02-25 09:54 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Java: Parse a mathematical expression given as a string and return a number
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Java: Parse a mathematical expression given as a string and return a number

Hello there,

I would like to ask you, if exist some way how to convert string "1+开发者_C百科2+3" to math equation? Exist for this purpose some function or method in Java?

Thanks for hints.


It's not part of the standard API.

But I implemented it in my project, you can have a look here. https://github.com/MarkyVasconcelos/Towel/wiki/Expression


This would necessarily depend on the implementation of the Equation class you're using. Check its API.

0

精彩评论

暂无评论...
验证码 换一张
取 消