Main Content

Evaluate string representing symbolic expression

`str2sym`

assumes the`=`

operator represents an equation, not an assignment.`str2sym`

does not create variables contained in the input.`str2sym('inf')`

returns infinity (`Inf`

).`str2sym('i')`

returns the imaginary number`1i`

.