RHS INDEX

RHS _ _ _ _ _ _ _ _ _ _ _ _ operator

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

syntax:

rhs(<equation>) or rhs <equation>

<equation> must be an equation of the form left-hand side = right-hand side.

examples:


roots := solve(x**2 + 6*x*y + 5x + 3y**2,x); 


                              2
                     SQRT(24*Y  + 60*Y + 25) + 6*Y + 5
      ROOTS := {X= - ---------------------------------,
                                     2
                             2
                    SQRT(24*Y  + 60*Y + 25) - 6*Y - 5
                 X= ---------------------------------}
                                    2


root1 := rhs first roots; 

                      2
             SQRT(24*Y  + 60*Y + 25) + 6*Y + 5
  ROOT1 := - --------------------------------- 
                             2


root2 := rhs second roots; 

                    2
           SQRT(24*Y  + 60*Y + 25) - 6*Y - 5
  ROOT2 := ----------------------------------
                           2

An error message is given if rhs is applied to something other than an equation.