;ò
…Rã?c           @   sY   d  Z  d k Z d f  d „  ƒ  YZ d „  Z d „  Z d „  Z d „  Z d d	 d
 „ Z d S(   sæ
  This module provides automatic differentiation for functions with
any number of variables up to any order. An instance of the class
DerivVar represents the value of a function and the values of its partial
derivatives with respect to a list of variables. All common
mathematical operations and functions are available for these numbers.
There is no restriction on the type of the numbers fed into the
code; it works for real and complex numbers as well as for
any Python type that implements the necessary operations.

If only first-order derivatives are required, the module
FirstDerivatives should be used. It is compatible to this
one, but significantly faster.

Example:

  'print sin(DerivVar(2))'

  produces the output

  '(0.909297426826, [-0.416146836547])'

The first number is the value of sin(2); the number in the following
list is the value of the derivative of sin(x) at x=2, i.e. cos(2).

When there is more than one variable, DerivVar must be called with
an integer second argument that specifies the number of the variable.

Example:

  >>>x = DerivVar(7., 0)
  >>>y = DerivVar(42., 1)
  >>>z = DerivVar(pi, 2)
  >>>print (sqrt(pow(x,2)+pow(y,2)+pow(z,2)))

  produces the output

  >>>(42.6950770511, [0.163953328662, 0.98371997197, 0.0735820818365])

The numbers in the list are the partial derivatives with respect
to x, y, and z, respectively.

Higher-order derivatives are requested with an optional third
argument to DerivVar.

Example:

  >>>x = DerivVar(3., 0, 3)
  >>>y = DerivVar(5., 1, 3)
  >>>print sqrt(x*y)

  produces the output

  >>>(3.87298334621,
  >>>    [0.645497224368, 0.387298334621],
  >>>      [[-0.107582870728, 0.0645497224368],
  >>>        [0.0645497224368, -0.0387298334621]],
  >>>          [[[0.053791435364, -0.0107582870728],
  >>>            [-0.0107582870728, -0.00645497224368]],
  >>>           [[-0.0107582870728, -0.00645497224368],
  >>>            [-0.00645497224368, 0.0116189500386]]])

The individual orders can be extracted by indexing:

  >>>print sqrt(x*y)[0]
  >>>3.87298334621
  >>>print sqrt(x*y)[1]
  >>>[0.645497224368, 0.387298334621]

An n-th order derivative is represented by a nested list of
depth n.

When variables with different differentiation orders are mixed,
the result has the lower one of the two orders. An exception are
zeroth-order variables, which are treated as constants.

Caution: Higher-order derivatives are implemented by recursively
using DerivVars to represent derivatives. This makes the code
very slow for high orders.

Note: It doesn't make sense to use multiple DerivVar objects with
different values for the same variable index in one calculation, but
there is no check for this. I.e.

  >>>print DerivVar(3, 0)+DerivVar(5, 0)

  produces

  >>>(8, [2])

but this result is meaningless.
Ns   DerivVarc           B   sa  t  Z d  Z d d e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d	 „  Z
 d
 „  Z d „  Z d „  Z d „  Z d „  Z e Z d „  Z d „  Z d „  Z e Z d „  Z d „  Z e d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d  „  Z# d! „  Z$ d" „  Z% d# „  Z& d$ „  Z' d% „  Z( RS(&   s  Variable with derivatives

    Constructor: DerivVar(|value|, |index| = 0, |order| = 1)

    Arguments:

    |value| -- the numerical value of the variable

    |index| -- the variable index (an integer), which serves to
               distinguish between variables and as an index for
               the derivative lists. Each explicitly created
               instance of DerivVar must have a unique index.

    |order| -- the derivative order

    Indexing with an integer yields the derivatives of the corresponding
    order.
    i    i   c         C   sû   | |  _  | o
 d } n d } t | ƒ t g  ƒ j o | |  _ n© | d j o g  |  _ n� | d j o | d g | g |  _ ng g  |  _ x7 t | ƒ D]) } |  i i
 t d | | d d ƒ ƒ qž W|  i i
 t | | | d d ƒ ƒ | |  _ d  S(   Ni    i   (   s   values   selfs	   recursives   ds   types   indexs   derivs   orders   ranges   is   appends   DerivVar(   s   selfs   values   indexs   orders	   recursives   ds   i(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __init__~   s     	
	 '#c         C   s]   |  i | j o |  Sn | d j o |  i Sn t |  i t | d d „ |  i ƒ | ƒ Sd S(   s8   Returns a DerivVar object with a lower derivative order.i    i   c         C   s   |  i | ƒ S(   N(   s   xs   toOrders   o(   s   xs   o(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>—   s    N(   s   selfs   orders   values   DerivVars   maps   deriv(   s   selfs   order(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   toOrder‘   s     	 c         C   s`   | d j  p | |  i j o t d ‚ n | d j o |  i Sn t | d d „ |  i ƒ Sd  S(   Ni    s   Index out of rangei   c         C   s   t  |  | ƒ S(   N(   s   _indexDerivs   ds   i(   s   ds   i(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>    s    (   s   items   selfs   orders
   ValueErrors   values   maps   deriv(   s   selfs   item(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __getitem__š   s
    c         C   s0   t  t t |  d „ t |  i d ƒ ƒ ƒ ƒ Sd  S(   Nc         C   s   | |  S(   N(   s   xs   n(   s   ns   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>£   s    i   (   s   reprs   tuples   maps   selfs   ranges   order(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __repr__¢   s    c         C   s0   t  t t |  d „ t |  i d ƒ ƒ ƒ ƒ Sd  S(   Nc         C   s   | |  S(   N(   s   xs   n(   s   ns   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>¦   s    i   (   s   strs   tuples   maps   selfs   ranges   order(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __str__¥   s    c         C   s�   t  | ƒ ov |  i | i j p |  i d j p | i d j o |  | f Sn t |  i | i ƒ } |  i | ƒ | i | ƒ f Sn |  t | g  d ƒ f Sd  S(   Ni    (   s
   isDerivVars   others   selfs   orders   mins   toOrders   DerivVar(   s   selfs   others   order(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys
   __coerce__¨   s    3 c         C   s   t  |  i | i ƒ Sd  S(   N(   s   cmps   selfs   values   other(   s   selfs   other(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __cmp__±   s    c         C   s*   t  |  i t d „  |  i ƒ |  i ƒ Sd  S(   Nc         C   s   |  S(   N(   s   a(   s   a(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>µ   s    (   s   DerivVars   selfs   values   maps   derivs   order(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __neg__´   s    c         C   s   |  Sd  S(   N(   s   self(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __pos__·   s    c         C   s?   t  |  i ƒ } t | t |  i | d „ |  i ƒ |  i ƒ Sd  S(   Nc         C   s   | |  S(   N(   s   ds   a(   s   as   d(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>¼   s    (   s   abss   selfs   values   absvalues   DerivVars   maps   derivs   order(   s   selfs   absvalue(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __abs__º   s    	 c         C   s   |  i d j Sd  S(   Ni    (   s   selfs   value(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __nonzero__¿   s    c         C   sB   t  |  i | i t d „  |  i | i ƒ t |  i | i ƒ ƒ Sd  S(   Nc         C   s   |  | S(   N(   s   as   b(   s   as   b(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>Ä   s    (   s   DerivVars   selfs   values   others	   _mapderivs   derivs   maxs   order(   s   selfs   other(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __add__Â   s    c         C   sB   t  |  i | i t d „  |  i | i ƒ t |  i | i ƒ ƒ Sd  S(   Nc         C   s   |  | S(   N(   s   as   b(   s   as   b(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>Ê   s    (   s   DerivVars   selfs   values   others	   _mapderivs   derivs   maxs   order(   s   selfs   other(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __sub__È   s    c         C   sB   t  | i |  i t d „  | i |  i ƒ t |  i | i ƒ ƒ Sd  S(   Nc         C   s   |  | S(   N(   s   as   b(   s   as   b(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>Ï   s    (   s   DerivVars   others   values   selfs	   _mapderivs   derivs   maxs   order(   s   selfs   other(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __rsub__Í   s    c         C   sÆ   |  i d j  o |  i } n |  i |  i d ƒ } | i d j  o | i } n | i | i d ƒ } t |  i | i t d „  t	 | d „ |  i
 ƒ t	 | d „ | i
 ƒ ƒ t |  i | i ƒ ƒ Sd  S(   Ni   i   c         C   s   |  | S(   N(   s   as   b(   s   as   b(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>Ü   s    c         C   s   | |  S(   N(   s   fs   x(   s   xs   f(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>Ý   s    (   s   selfs   orders   values   s1s   toOrders   others   o1s   DerivVars	   _mapderivs   maps   derivs   max(   s   selfs   others   o1s   s1(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __mul__Ò   s    	c      
   C   sù   | i o t d ‚ n |  i d j  o |  i } n |  i |  i d ƒ } | i d j  o d | i } n d | i | i d ƒ } t t	 |  i ƒ | i t
 d „  t | d „ |  i ƒ t | t | d ƒ d „ | i ƒ ƒ t |  i | i ƒ ƒ Sd  S(   Ns   DerivVar divisioni   i   f1.0c         C   s   |  | S(   N(   s   as   b(   s   as   b(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>î   s    c         C   s   |  | S(   N(   s   xs   f(   s   xs   f(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>ï   s    c         C   s   | |  S(   N(   s   fs   x(   s   xs   f(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>ð   s    (   s   others   values   ZeroDivisionErrors   selfs   orders   s1s   toOrders   o1is   DerivVars   _toFloats	   _mapderivs   maps   derivs   pows   max(   s   selfs   others   o1is   s1(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __div__â   s    	c         C   s   | |  Sd  S(   N(   s   others   self(   s   selfs   other(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __rdiv__ó   s    c         C   só   | t j	 o t d ‚ n t | i ƒ d j o t i t i |  ƒ | ƒ Sn¢ |  i
 d j  o$ | i t |  i | i d ƒ } n. | i t |  i |  i
 d ƒ | i d ƒ } t t |  i | i ƒ t | d „ |  i ƒ t |  i
 | i
 ƒ ƒ Sd  S(   Ns'   DerivVar does not support ternary pow()i    i   i   c         C   s   | |  S(   N(   s   fs   x(   s   xs   f(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>  s    (   s   zs   Nones	   TypeErrors   lens   others   derivs   Numerics   exps   logs   selfs   orders   values   pows   ps1s   toOrders   DerivVars   maps   max(   s   selfs   others   zs   ps1(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __pow__ö   s    $-c         C   s   t  | |  ƒ Sd  S(   N(   s   pows   others   self(   s   selfs   other(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   __rpow__  s    c         C   sq   |  i d j  o | |  i ƒ } n | |  i |  i d ƒ ƒ } t | |  i ƒ t | d „ |  i	 ƒ |  i ƒ Sd  S(   Ni   i   c         C   s   | |  S(   N(   s   fs   x(   s   xs   f(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>  s    (
   s   selfs   orders   ds   values   fds   toOrders   DerivVars   fs   maps   deriv(   s   selfs   fs   ds   fd(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys	   _mathfunc  s
    $c         C   s   |  i t i t i ƒ Sd  S(   N(   s   selfs	   _mathfuncs   Numerics   exp(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   exp  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d |  S(   Nf1.0(   s   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>  s    (   s   selfs	   _mathfuncs   Numerics   log(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   log  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d |  t i d ƒ S(   Nf1.0i
   (   s   xs   Numerics   log(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>  s    (   s   selfs	   _mathfuncs   Numerics   log10(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   log10  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d t  i |  ƒ S(   Nf0.5(   s   Numerics   sqrts   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>  s    (   s   selfs	   _mathfuncs   Numerics   sqrt(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   sqrt  s    c         C   s7   |  i d j o t d ‚ n |  i t i d „  ƒ Sd  S(   Ni    s"   can't differentiate sign() at zeroc         C   s   d S(   Ni    (    (   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>  s    (   s   selfs   values
   ValueErrors	   _mathfuncs   Numerics   sign(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   sign  s    c         C   s   |  i t i t i ƒ Sd  S(   N(   s   selfs	   _mathfuncs   Numerics   sins   cos(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   sin   s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   t  i |  ƒ S(   N(   s   Numerics   sins   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>$  s    (   s   selfs	   _mathfuncs   Numerics   cos(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   cos#  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d t  t i |  ƒ d ƒ S(   Nf1.0i   (   s   pows   Numerics   tans   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>'  s    (   s   selfs	   _mathfuncs   Numerics   tan(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   tan&  s    c         C   s   |  i t i t i ƒ Sd  S(   N(   s   selfs	   _mathfuncs   Numerics   sinhs   cosh(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   sinh)  s    c         C   s   |  i t i t i ƒ Sd  S(   N(   s   selfs	   _mathfuncs   Numerics   coshs   sinh(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   cosh,  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d t  t i |  ƒ d ƒ S(   Nf1.0i   (   s   pows   Numerics   coshs   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>0  s    (   s   selfs	   _mathfuncs   Numerics   tanh(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   tanh/  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d t  i d t |  d ƒ ƒ S(   Nf1.0i   (   s   Numerics   sqrts   pows   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>4  s    (   s   selfs	   _mathfuncs   Numerics   arcsin(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   arcsin3  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d t  i d t |  d ƒ ƒ S(   Nf-1.0f1.0i   (   s   Numerics   sqrts   pows   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>8  s    (   s   selfs	   _mathfuncs   Numerics   arccos(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   arccos7  s    c         C   s   |  i t i d „  ƒ Sd  S(   Nc         C   s   d d t  |  d ƒ S(   Nf1.0i   i   (   s   pows   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda><  s    (   s   selfs	   _mathfuncs   Numerics   arctan(   s   self(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   arctan;  s    c         C   sô   |  i d j  o |  i } n |  i |  i d ƒ } | i d j  o | i } n | i | i d ƒ } | | | | } | | } | | } t t	 i
 |  i | i ƒ t d „  t | d „ |  i ƒ t | d „ | i ƒ ƒ t |  i | i ƒ ƒ Sd  S(   Ni   i   c         C   s   |  | S(   N(   s   as   b(   s   as   b(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>L  s    c         C   s   |  | S(   N(   s   xs   f(   s   xs   f(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   <lambda>M  s    (   s   selfs   orders   values   s1s   toOrders   others   o1s   dens   DerivVars   Numerics   arctan2s	   _mapderivs   maps   derivs   max(   s   selfs   others   dens   o1s   s1(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   arctan2?  s    

	()   s   __name__s
   __module__s   __doc__s   Nones   __init__s   toOrders   __getitem__s   __repr__s   __str__s
   __coerce__s   __cmp__s   __neg__s   __pos__s   __abs__s   __nonzero__s   __add__s   __radd__s   __sub__s   __rsub__s   __mul__s   __rmul__s   __div__s   __rdiv__s   __pow__s   __rpow__s	   _mathfuncs   exps   logs   log10s   sqrts   signs   sins   coss   tans   sinhs   coshs   tanhs   arcsins   arccoss   arctans   arctan2(    (    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   DerivVari   sL    																																		c         C   s1   t  |  d ƒ o t  |  d ƒ o t  |  d ƒ Sd S(   s&   Returns 1 if |x| is a DerivVar object.s   values   derivs   orderN(   s   hasattrs   x(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys
   isDerivVarS  s     c         C   se   t  t | ƒ t | ƒ ƒ } | | t | ƒ d g } | | t | ƒ d g } t |  | | ƒ Sd  S(   Ni    (   s   maxs   lens   as   bs   nvarss   maps   func(   s   funcs   as   bs   nvars(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys	   _mapderivZ  s    c         C   s/   t  |  ƒ t  d ƒ j o t |  ƒ Sn |  Sd  S(   Ni    (   s   types   xs   float(   s   x(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   _toFloatb  s    c         C   s;   t  |  ƒ o |  | Sn | d j o t d ‚ n |  Sd  S(   Ni    s   Internal error(   s
   isDerivVars   ds   is
   ValueError(   s   ds   i(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   _indexDerivi  s
    i    i   c         C   sˆ   d k  l } t |  ƒ o t | ƒ o
 t | ƒ o | |  | | ƒ Sn= | t |  | | ƒ t | | d | ƒ t | | d | ƒ ƒ Sd S(   s  Returns a vector whose components are DerivVar objects.

    Arguments:

    |x|, |y|, |z| -- vector components (numbers)

    |index| -- the DerivVar index for the x component. The y and z
               components receive consecutive indices.

    |order| -- the derivative order
    (   s   Vectori   i   N(	   s   Scientific.Geometry.Vectors   Vectors
   isDerivVars   xs   ys   zs   DerivVars   indexs   order(   s   xs   ys   zs   indexs   orders   Vector(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   DerivVectorr  s     '(   s   __doc__s   Numerics   DerivVars
   isDerivVars	   _mapderivs   _toFloats   _indexDerivs   DerivVector(   s	   _mapderivs   Numerics   _indexDerivs   _toFloats   DerivVars
   isDerivVars   DerivVector(    (    sK   /mit/python/lib/python2.3/site-packages/Scientific/Functions/Derivatives.pys   ?a   s   	ê					