Method on @sym: lhs (f)

Left-hand side of symbolic expression.

Example:

syms x
eqn = 5*x <= 3*x + 6
  ⇒ eqn = (sym) 5⋅x ≤ 3⋅x + 6
lhs(eqn)
  ⇒ ans = (sym) 5⋅x

Input f can also be a matrix:

A = [eqn  8*x==6]
  ⇒ A = (sym) [5⋅x ≤ 3⋅x + 6  8⋅x = 6]  (1×2 matrix)
lhs(A)
  ⇒ ans = (sym) [5⋅x  8⋅x]  (1×2 matrix)

Gives an error if any of the symbolic objects have no left-hand side.

See also: @sym/rhs, @sym/children, @sym/formula, @sym/argnames.

Package: symbolic