left-hand side of an expression - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Expressions : Structure : lhs

lhs - left-hand side of an expression

rhs - right-hand side of an expression

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  op1,expr.

• 

rhs(expr) returns the right-hand side of expr, which is equivalent to op2,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=ax2+b

e:=y=ax2+b

(1)

lhse

y

(2)

rhse

ax2+b

(3)

r:=2..5

r:=2..5

(4)

lhsr

2

(5)

rhsr

5

(6)

t:=a::integer

t:=a::integer

(7)

lhst

a

(8)

rhst

integer

(9)

h:=w&plus;z<6

h:=w&plus;z<6

(10)

lhsh

w&plus;z

(11)

rhsh

6

(12)

f:=y&equals;x2&plus;2x&plus;1

f:=y&equals;x2&plus;2x&plus;1

(13)

solvef&equals;0&comma;x

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

solverhsf&equals;0&comma;x

1&comma;1

(14)

See Also

::, equation, op, range, relation


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam