Binary Operators - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Operations : Operators : operators/binary

Binary Operators

Description

• 

The binary (infix) operators in Maple are:

+

addition

-

subtraction

*

multiplication

/

division

^

exponentiation

mod

modulo

 

 

<

less than

<=

less than or equal

>

greater than

>=

greater than or equal

=

equal

<>

not equal

 

 

$

sequence operator

->

arrow operator

@

composition

@@

repeated composition

||

concatenation operator

.

non-commutative multiplication

..

ellipsis

,

expression separator

:=

assignment

::

type operator

:-

module member selector

assuming

compute value of expression under assumptions

 

 

and

logical and

or

logical or

xor

exclusive or

implies

implication

 

 

union

set union

subset

subset

intersect

set intersection

minus

set difference

in

set or list membership

 

 

&<name>

neutral operator

 

 

• 

Most binary operators can be made to apply elementwise by appending a tilde (~).  See operators[elementwise] for details.

Examples

a&plus;b&semi;2&plus;3

a&plus;b

5

(1)

ab&semi;23

ab

1

(2)

ab&semi;23

ab

6

(3)

ab&semi;23

ab

23

(4)

ab&semi;23

ab

8

(5)

amodb

modpa&comma;b

(6)

a<b

a<b

(7)

ab

ab

(8)

b<a

b<a

(9)

ba

ba

(10)

a&equals;b

a&equals;b

(11)

ab

ab

(12)

a&rarr;b

a&rarr;b

(13)

a&dollar;3

a&comma;a&comma;a

(14)

a&commat;b

a&commat;b

(15)

an&semi;f2

an

f2

(16)

a||b&semi;foo||bar

ab

foobar

(17)

a&period;b

a&period;b

(18)

a..b

a..b

(19)

a::b

a::b

(20)

aandb&semi;trueandfalse

aandb

false

(21)

aorb&semi;trueorfalse

aorb

true

(22)

axorb&semi;truexorfalse

axorb

true

(23)

ab&semi;truefalse

ab

false

(24)

a&sube;b&semi;2&comma;3&sube;1&comma;2&comma;3

a&sube;b

true

(25)

a&cup;b&semi;1&comma;2&cup;2&comma;3

a&cup;b

1&comma;2&comma;3

(26)

a&cap;b&semi;1&comma;2&cap;2&comma;3

a&cap;b

2

(27)

a&setmn;b&semi;1&comma;2&setmn;2&comma;3

a&setmn;b

1

(28)

`&x`:=x&comma;y&rarr;2x&plus;3y&semi;a &x b

&x:=x&comma;y&rarr;2x&plus;3y

2a&plus;3b

(29)

a&comma;b

a&comma;b

(30)

a:=b&semi;a

a:=b

b

(31)

See Also

index[expression], neutral, operators[elementwise], operators[nullary], operators[precedence], operators[unary]


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