lhs - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


lhs

left-hand side of an expression

rhs

right-hand side of an expression

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

lhs(expr)

rhs(expr)

Parameters

expr

-

equation, inequality, relation, range, or type test/declaration

Description

• 

lhs(expr) returns the left-hand side of expr, which is equivalent to  op⁡1,expr.

• 

rhs(expr) returns the right-hand side of expr, which is equivalent to op⁡2,expr.

Thread Safety

• 

The lhs and rhs commands are thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

> 

e≔y=a⁢x2+b

e≔y=a⁢x2+b

(1)
> 

lhs⁡e

y

(2)
> 

rhs⁡e

a⁢x2+b

(3)
> 

r≔2..5

r≔2..5

(4)
> 

lhs⁡r

2

(5)
> 

rhs⁡r

5

(6)
> 

t≔a::integer

t≔a::ℤ

(7)
> 

lhs⁡t

a

(8)
> 

rhs⁡t

integer

(9)
> 

h≔w+z<6

h≔w+z<6

(10)
> 

lhs⁡h

w+z

(11)
> 

rhs⁡h

6

(12)
> 

f≔y=x2+2⁢x+1

f≔y=x2+2⁢x+1

(13)
> 

solve⁡f=0&comma;x

Error, invalid input: solve expects its 1st argument, eqs, to be of type {`and`, `not`, `or`, rtable, algebraic, relation(algebraic), relation({rtable, algebraic}), {list, set}({`and`, `not`, `or`, algebraic, relation(algebraic)})}, but received (y = x^2+2*x+1) = 0

> 

solve⁡rhs⁡f=0&comma;x

−1,−1

(14)

See Also

::

equation

op

range

relation