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.

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-or-ratsimp

ratsimp(( 0 < a ) ...

Calculate

and-or

V2: a2 and ((not a3 a...

V2, a3 = false, a2 = ...

V2, a3 = false, a2 = ...

Calculate

and-cos-do-if-lambda-print-sin

:lisp (defun sum (ter...

:lisp (do ((x -4 (+ x...

Calculate

and

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

t2: a3 and (not a2) a...

t3: a3 and a2 and (no...

Calculate

and-or

t1:(not a2);

t2:(not a3) or ((not ...

t3: (a3) or (a1 and a4);

Calculate

and-or

D:((not a1) and (not ...

E:((not a1) and (not ...

F:a4 or ((not a1) and...

Calculate

and-true

l0: (not a0) and (not...

l0, a0=false,a1=false...

l0, a0=false,a1=false...

Calculate

and-true

eq1:(not a0);

eq2: a0 and (not a1) ...

output: eq1 or eq2;

Calculate

and

ZERO: (not ON) and (n...

ONE: (not ON) and (no...

THREE: (not ON) and (...

Calculate