Previous Up Next

5.1.6  Transforming a list into a boolean expression

The list2exp command is the inverse of exp2list; it takes lists and tranforms them into boolean expressions. It can do this in two ways.

Examples

list2exp([0,1,2],a)
     
a=0∨ a=1∨ a=2           
list2exp(solve(x^2-1=0,x),x)
     
x=−1∨ x=1           
list2exp([[3,9],[-1,1]],[x,y])
     
x=3∧ y=9∨ x=−1∧ y=1           

Previous Up Next