Relacionales y Operadores Lógicos
x == y | igual |
x != y | diferente (≠) |
x>y | mayor que |
x>=y | mayor o igual (≥) |
x<y | menor que |
x<=y | menor o igual (≤) |
x == y == z | todos iguales |
x != y != z | todos distintos |
x>y>z> ... | estrictamente decreciente |
In[72]:=
Out[72]=
In[73]:=
Out[73]=
In[74]:=
Out[74]=
In[75]:=
Out[75]=
! p | negación (¬p) |
p && q && ... | y (p ∧q∧ ...) |
p || q || .. | o (p∨q∨ ...) |
Xor[p, q, ...] | o exclusivo (p ⊻q⊻ ...) |
Nand[p, q, ...] y Nor[p, q, ...] | no y y no o (⊼ y ⊽) |
If[p, entonces, sino] | evaluar entonces si p es True, sino si en False |
LogicalExpand[expr] | expande expresiones lógicas |
In[76]:=
Out[76]=
In[77]:=
Out[77]=
In[78]:=
Out[78]=
In[79]:=
Out[79]=
Created by Mathematica (August 6, 2004)