I recently tried to find polynomials with given points and stumbled upon the problem that I can’t use strings like normal mathematical operations: "3 + 1" + "2 + 1"
because it will return "3 + 12 + 1"
. I than tried to just iterate over the string but had the next difficulty that I cant just unstringify operations like "+"
or "-"
.
Does anyone know how to do solve the problem?