Package gmisclib :: Module parse_tree_number
[frames] | no frames]

Module parse_tree_number

source code

Classes
  Array
  output_mixin
  abstract_number
  Expression
  Name
  Float
  operator1
  elementof
  operatorNg1
Functions
 
is_mul_of(a, b, indent='')
Returns the ratio a/b if a contains b as a factor, returns None otherwise.
source code
 
abs(x) source code
 
cos(x) source code
 
sin(x) source code
 
exp(x) source code
 
log(x) source code
 
sqrt(x) source code
 
coerce_into(x) source code
 
operatorN(operator, operands) source code
Variables
  __package__ = 'gmisclib'
  __warningregistry__ = {('the sets module is deprecated', <type...

Imports: sets, math, OP


Function Details

is_mul_of(a, b, indent='')

source code 

Returns the ratio a/b if a contains b as a factor, returns None otherwise. The routine does not promise to find all possible factors.


Variables Details

__warningregistry__

Value:
{('the sets module is deprecated',
  <type 'exceptions.DeprecationWarning'>,
  1): True}