Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Or

-- Operator: or The logical disjunction operator. or is an n-ary infix operator; its operands are Boolean expressions, and its result is a Boolean value.

or forces evaluation (like is) of one or more operands, and may force evaluation of all operands.

eq1:f=((h and not c) or (p and not c));
 subs( h=false, c=false, p=false, f);

Operands are evaluated in the order in which they appear. or evaluates only as many of its operands as necessary to determine the result. If any operand is true, the result is true and no further operands are evaluated.

The global flag prederror governs the behavior of or when an evaluated operand cannot be determined to be true or false. or prints an error message when prederror is true. Otherwise, operands which do not evaluate to true or false are accepted, and the result is a Boolean expression.

or is not commutative: a or b might not be equal to b or a due to the treatment of indeterminate operands.

There are also some inexact matches for or. Try ?? or to see them.

(%o1)                                true
(%i2) 

Related Examples

or-true

f: b and (not c) or (...

f,a=false, b=false, c...

f,a=false, b=false, c...

Calculate

or

a:(((not a1 and a2) o...

a,a0=false,a1=false,a...

a,a0=true,a1=false,a2...

Calculate

or

O0:(I0 and I1 and I2 ...

O0,I0=false,I1=false,...

Calculate

or

f:(h and not c) or (p...

f,h=false,c=false,p=f...

f,h=true,c=false,p=fa...

Calculate

or

f: (h and not c) or (...

f, h=false,c=false,p=...

f: (h and not c) or (...

Calculate

or

f: not a and b and no...

g:(a and not b and no...

h: (not a and not b a...

Calculate

or

bo:(a2) or (a1) or (a...

bo, a0=false,a1=true,...

bo, a0=true,a1=false,...

Calculate

or

f:(h and not c) or (p...

f,h=false,c=false,p=f...

f,h=true,c=true,p=true;

Calculate

or

f:(not x1 and not x0 ...

f,x1=false,x0=false,y...

Calculate

or

f:(h and not c) or (p...

f,h=false,c=false,p=f...

f,h=false,c=false,p=f...

Calculate