breaks down an equation into elementary bricks
resout=analyse_eq(equation)
* equation = a string, the text of an equation
* resout = a tlist, whose type is equation, with as 2nd argument the type of the operation, which can be:
- 'operation' (such as '+', '*', '.*' , ...); in that case there are the following fields:
. 'lhs': an 'equation' tlist relative to the left hand side of the operation
. 'operator': the operator (!)
. 'rhs': an 'equation' tlist relative to the right hand side of the operation
- 'unary' (when a unary '-', as opposed to the operator, has been found); in that case there is the following field:
. 'rhs': the equation' tlist relative to the expression after the '-'
- 'parentheses'; in that case there is the following field:
. 'exp': the equation' tlist relative to expression between the parentheses
- 'function'; in that case there is the following field:
. 'input': the 'equation' tlist relative to the input of the function
- 'scalar'; in that case there is the following field:
. 'val': a string, the value of the number that represents the equation
- 'variable'; in that case there is the following field:
. 'name vari': a string, the name of the found variable, assessed as such if it is a matrix or a ts
- 'unknown'; in that case there is the following field:
. 'name unknown': a string, the name of the found unknown object