parameters: (a,b)
docstring: Elementwise division with another vector, or with a scalar.
docstring_summary: Elementwise division with another vector, or with a scalar.
docstring_tokens: Elementwise division with another vector or with a scalar .
function: def div(a,b):
      """Elementwise division with another vector, or with a scalar."""
      if hasattr(b,'__iter__'):
          if len(a)!=len(b):
              raise RuntimeError('Vector dimensions not equal')
          return [ai/bi for ai,bi in zip(a,b)]
      else:
          return [ai/b for ai in a]
function_tokens: def div ( a , b ) : if hasattr ( b , '__iter__' ) : if len ( a ) != len ( b ) : raise RuntimeError ( 'Vector dimensions not equal' ) return [ ai / bi for ai , bi in zip ( a , b ) ] else : return [ ai / b for ai in a ]