Java math expression parser that can take complex numbers as a variable?

后端 未结 7 847
广开言路
广开言路 2021-01-21 10:58

I am writing a program in Processing that transforms complex numbers. However, I want to have a method of taking an input string and calculating the transformation using a compl

7条回答
  •  被撕碎了的回忆
    2021-01-21 11:22

    Here is a link to a straight-forward math expression parser (64 lines): http://javadots.blogspot.com/2008/11/arithemetic-expressions-solver-in-64.html

    Tweaking it to support your needs should not be too difficult

提交回复
热议问题