|
|
|||
|
|
|
| MATHEMATICA TUTORIAL | Related Tutorials »|More About »|Functions » |
| x==y | equal (also input as x |
| x!=y | unequal (also input as x |
| x>y | greater than |
| x>=y | greater than or equal to (also input as x |
| x<y | less than |
| x<=y | less than or equal to (also input as x |
| x==y==z | all equal |
| x!=y!=z | all unequal (distinct) |
| x>y>z, etc. | strictly decreasing, etc. |
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
| !p | not (also input as |
| p&&q&&... | and (also input as p |
| p||q||... | or (also input as p |
| Xor[p,q,...] | exclusive or (also input as p |
| Nand[p,q,...] and Nor[p,q,...] | nand and nor (also input as |
| If[p,then,else] | give then if p is True, and else if p is False |
| LogicalExpand[expr] | expand out logical expressions |
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
| In[9]:= |
| Out[9]= |