Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Inverse of the Boole function
Apply BooleInverse to a 0 and a 1:
| In[1]:= |
| Out[1]= |
Convert a list of 1s and 0s to truth values:
| In[2]:= |
| Out[2]= |
BooleInverse is useful when testing a condition based on bit values:
| In[3]:= |
| Out[3]= |
BooleInverse[expr] is effectively equivalent to Switch[expr,1,True,0,False]:
| In[4]:= |
| Out[4]= |
BooleInverse is the inverse function of Boole:
| In[5]:= |
| Out[5]= |
BooleInverse deals with Rule in the same way that Boole does:
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
Only one argument is expected:
| In[8]:= |
| Out[8]= |
| In[9]:= |
| Out[9]= |
If the sole argument provided is neither 0 nor 1, the expression is not evaluated:
| In[10]:= |
| Out[10]= |
This work is licensed under a Creative Commons Attribution 4.0 International License