Table of Contents

Class: StringFunction1 py4cs/StringFunction.py

As StringFunction1, but a dictionary of variables is used instead of self._code. >>> f = StringFunction1('a+bx', a=1, b=4) >>> f(2) # 1 + 42 9 >>> f.set_parameters(a=-1, b=1) >>> f(1) # -1 + 1*1 0

Methods   
__call__
__init__
set_parameters
  __call__ 
__call__ ( self,  x )

  __init__ 
__init__ (
        self,
        expression,
        **kwargs,
        )

  set_parameters 
set_parameters ( self,  **kwargs )


Table of Contents

This document was automatically generated on Sun Mar 14 15:31:01 2004 by HappyDoc version 2.1