Package sympycore :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code

Provides various implementation specific constants.

Variables [hide private]
  str_SUM = -1
  str_PRODUCT = -2
  str_POWER = -3
  str_APPLY = -4
  str_SYMBOL = -5
  str_NUMBER = -6
  OR = ' or '
  AND = ' and '
  NOT = 'not '
  LT = '<'
  LE = '<='
  GT = '>'
  GE = '>='
  EQ = '=='
  NE = '!='
  BAND = '&'
  BOR = '|'
  BXOR = '^'
  INVERT = '~'
  POS = '+'
  NEG = '-'
  ADD = ' + '
  TERMS = ' + '
  SUB = ' - '
  MOD = '%'
  MUL = '*'
  FACTORS = '*'
  DIV = '/'
  POW = '**'
  NUMBER = 'N'
  SYMBOL = 'S'
  APPLY = 'A'
  TUPLE = 'T'
  LAMBDA = 'L'
  head_to_string = {' + ': 'ADD', ' - ': 'SUB', ' and ': 'AND', ...
Variables Details [hide private]

head_to_string

Value:
{' + ': 'ADD',
 ' - ': 'SUB',
 ' and ': 'AND',
 ' or ': 'OR',
 '!=': 'NE',
 '%': 'MOD',
 '&': 'BAND',
 '*': 'MUL',
...