java - How to calculate a arithmetic expression (String) and return the answer? -


i know how calculate easy expression without variables. how do, when in line have expression "x"? example

(x+1)*(x-1) 

in example program should return: x^2 - 1

it's non-trivial endeavor. suggest @ what's out there. example symja


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -