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.

a1:(not TF) and (not TG) and TC;
a2:(not TF) and TG and (not TC);
a3:TF and (not TG) and (not TC);
accessible:a1 or a2 or a3;

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

a3 and (not a2) and a...

Calculate

and-integrate-log-ratsimp

/* Integral for the F...

f2(xi):= log(1/xi);

integrate(2*xi*f1(xi)...

Calculate

and-block-ev-expand-fortran-not-or-subst-var

bp_and(x,y) := x * y;

bp_not(x) := 1 - x;

bp_or(x,y) := (1 -...

Calculate

and

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

t2: (not a1) and (not...

thirty:t1 or t2;

Calculate

and-true

t1: a3 and (not a0);

t2: (not A2) and a1 a...

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

Calculate

and

b1: (not a0) and (a1 ...

b1, a0=true,a1=false,...

b1, a0=true,a1=false,...

Calculate

and-lhs-or

ans1:[X=y,Y=x];

eqn1:ans1[1];

eqn2:ans1[2];

Calculate

and

g: (a or f) and ( b o...

g, a = true, b = fals...

g, a = false, b = tru...

Calculate

and-or

b0:(not a1) or ((not ...

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

Calculate

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

:lisp (defun sum (ter...

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

:lisp (let ((m nil) ...

Calculate