1lytics

Functions for setting up truth table

Functions in this group allows to set up truth table - adding input values and output functions.

  • gkAddInputVarList - adds one or more input variables to truth table (logic functions set)
  • gkAddInputVar - adds one or more indexed input variables to truth table (logic functions set)
  • gkAddFunctionList - adds one or more output functions to truth table (logic functions set)
  • gkAddFunction - adds one or more indexed output functions to truth table (logic functions set)
  • gkAddRandomFunction - adds one random defined output function to logic functions set
  • gkAddCloneFunction - adds copy of taken output function with new name

gkAddInputVarList

The gkAddInputVar adds one or more input variables to truth table (logic functions set).

gkAddInputVar('A'[,'B'...] ) 

Parameters

  • A, B ... - variable names list

See Also

gkAddInputVar

The gkAddInputVar adds one or more indexed input variables to truth table (logic functions set). It has four forms:

-- 1) adds one input variable with exact name 'NewVarName'
---   This form takes the same action as calling gkAddInputVarList
--    with one variable name
gkAddInputVar('NewVarName') 

-- 2) adds NumVars input variables with prefix 'NewVarName' 
--    and indexes IndexFirst, IndexFirst+1, IndexFirst+2 etc
--    Index 'IndexFirst' automaticaly detected on allready 
--    existed variables
gkAddInputVar('NewVarName',NumVars)

-- 3) adds NumVars input variables with prefix 'NewVarName' 
--    and indexes IndexFirst, IndexFirst+1, IndexFirst+2 etc
gkAddInputVar('NewVarName',NumVars,IndexFirst)

-- 4) same as 3, but var order depend on 'direction' parameter 
gkAddInputVar('NewVarName',NumVars,IndexFirst,direction)
-- normal  - x1,x2,x3... etc for direction=1
-- reverse - x3,x2,x1... etc for direction=-1

Parameters

  • NewVarName - variable name or name prefix
  • NumVars - number of variables to add
  • IndexFirst - first variable index
  • direction - define indexes order:
    • 1 - ascending order
    • -1 - descending order

See Also

gkAddFunctionList

The gkAddFunction adds one or more output functions to truth table (logic functions set).

gkAddFunctionList('A'[,'B'...] )

Parameters

  • A, B ... - function names list

See Also

gkAddFunction

The gkAddFunction adds one or more indexed output functions to truth table (logic functions set). It has four forms:

-- 1) adds one output function with exact name 'NewVarName'
---   This form takes the same action as calling gkAddFunctionList
--    with one function name
-- 2) adds NumFns output functions with prefix 'NewFnName' 
--    and indexes IndexFirst, IndexFirst+1, IndexFirst+2 etc
--    Index 'IndexFirst' automaticaly detected on allready 
--    existed functions
gkAddFunction('NewFnName',NumFns)

-- 3) adds NumFns output functions with prefix 'NewFnName' 
--    and indexes IndexFirst, IndexFirst+1, IndexFirst+2 etc
gkAddFunction('NewFnName',NumFns,IndexFirst)

-- 4) same as 3, but function order depend on 'direction' parameter 
-- normal  - y1,y2,y3... etc for direction=1
-- reverse - y3,y2,y1... etc for direction=-1
gkAddFunction('NewFnName',NumFns,IndexFirst,direction)

Parameters

  • NewFnName - function name or function name prefix
  • NumFns - number of functions to add
  • IndexFirst - first function index
  • direction - define indexes order:
    • 1 - ascending order
    • -1 - descending order

See Also

gkAddRandomFunction

The gkAddRandomFunction adds one random defined output function to logic functions set.

gkAddRandomFunction('NewFnName'[,PercentOnes[,PercentZeros] ])

Parameters

  • NewFnName - exact name for function to be added;
  • PercentOnes - percent of '1' values, integer from 0 to 100;
  • PercentZeros - percent of '0' values, integer from 0 to 100.

gkAddCloneFunction

The gkAddCloneFunction adds copy of taken output function with new name.

gkAddCloneFunction('FnCopyFromName','NewFnName')

Parameters

  • FnCopyFromName - name of existing function to copy;
  • NewFnName - name of new function to copy to.