Say i inputted "1+2x+3x^2"
or "1-2x+3x^2"
How do i make a function that splits and makes a list of each term like [1, 2x, 3x^2]
or [1, -2x, 3x^2]
.
I have been stumped at this for a while, for now the function im using currently, seperates only at the "+" so to get a list like [1, -2x, 3x^2]
i have to input
"1+-2x+3x^2"
Note: I won't be using complex polynomials but simple looking ones that doesn't include parenthesis or fractions.