List of variables and of expressions: lvar

### 6.59.3 List of variables and of expressions: lvar

The lvar command finds the variables and non-rational that make up an expression.

- lvar takes one argument: expr, an expression.
- lvar(expr) returns a list of variable names and non-rational expressions such that expr its argument is a rational function with respect to the variables and expressions of the list.

Examples.

- Input:
  lvar(x*y*sin(x)^2)
  Output:

  ⎡ ⎣ | x,y,sinx | ⎤ ⎦

- Input:
  lvar(x*y*sin(x)^2+ln(x)*cos(y))
  Output:

  ⎡ ⎣ | x,y,sinx,lnx,cosy | ⎤ ⎦

- Input:
  lvar(y+x*sqrt(z)+y*sin(x))
  Output:

  ⎡ ⎢ ⎣ | y,x, | √ |
  z
  | ,sinx | ⎤ ⎥ ⎦