LHS INDEX

LHS _ _ _ _ _ _ _ _ _ _ _ _ operator

The lhs operator returns the left-hand side of an equation, such as those returned in a list by solve.

syntax:

lhs(<equation>) or lhs <equation>

<equation> must be an equation of the form

left-hand side=right-hand side.

examples:


polly := (x+3)*(x^4+2x+1); 

            5      4      2
  POLLY := X  + 3*X  + 2*X  + 7*X + 3 


pollyroots := solve(polly,x); 

  POLLYROOTS := {X=ROOT F(X3 - X2 + X + 1,X ,
                       O                   )
                 X=-1,
                 X=-3}


variable := lhs first pollyroots; 

  VARIABLE := X