Learn R Programming

LogicOpt (version 1.0.0)

tt2eqn: Equations from a Truth Table

Description

This function generates the ON set equations for a truth table. Inputs are uppercase if they are positive and lowercase for negative.

Usage

tt2eqn(tt, n_in, n_out, QCA = FALSE)

Arguments

tt
R data frame truth table.
n_in
Number of inputs in the tt.
n_out
Number of outputs in the tt.
QCA
Print in QCA format.

Value

Vector of equations strings. One for each output.

Examples

Run this code
data(l.small)
tt <- logicopt(l.small,n_in=4,n_out=3)
eqn <- tt2eqn(tt[[1]],4,3)

Run the code above in your browser using DataLab