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:

And

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

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

b0:(a0 and (not a1) and (not a2))or((not a0) and (not a1) and a2)or(a0 and a1 and a2)or ((not a0) and a1 and (not a2));
b1:(a0 and (not a1) and (not a2)) or ((not a0) and a1 and a2);
b2: a2 and a0;
b3: a2 and a1;
b0, a0=false,a1=false,a2=false;
b1, a0=false,a1=false,a2=false;
b2, a0=false,a1=false,a2=false;
b3, a0=false,a1=false,a2=false;
b0, a0=true,a1=false,a2=false;
b1, a0=true,a1=false,a2=false;
b2, a0=true,a1=false,a2=false;
b3, a0=true,a1=false,a2=false;
b0, a0=false,a1=true,a2=false;
b1, a0=false,a1=true,a2=false;
b2, a0=false,a1=true,a2=false;
b3, a0=false,a1=true,a2=false;

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

The global flag prederror governs the behavior of and when an evaluated operand cannot be determined to be true or false. and 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.

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

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

(%o1)                                true
(%i2) 

Related Examples

and-fib

eq1:(not a3) and (not...

eq2:(not a1) and a0 a...

eq3:(not a1) and (not...

Calculate

and-apply-cardinality-every-integer_partitions-integerp-lambda-map-subset

integer_partitions (4);

s: integer_partition...

cardinality (s);

Calculate

and-true

g: (a or b or d or e ...

g,a=false, b=false, c...

g, a = false, b = fal...

Calculate

and

hydrogen: (a) and (b)...

helium: (a) and (b) a...

lithium: (a) and (not...

Calculate

and-or

a=1;

x=( 0 < a ) and ( ...

Calculate

and-cos-do-if-load-makelist-max-min

load (newton1);

x_min : -10;

x_max : 10;

Calculate

and

p3: a0 and (not a2) a...

Calculate

and

(3 = 4)and(5=5);

Calculate

and

t1: (not a3) and (not...

(not a...

(not ...

Calculate

and

o1:(r1 or not p1 or n...

o1,r1=false,p1=false,...

Calculate