/[escript]/trunk/escript/py_src/util.py
ViewVC logotype

Diff of /trunk/escript/py_src/util.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 442 by gross, Fri Jan 20 04:39:43 2006 UTC revision 443 by gross, Fri Jan 20 06:22:38 2006 UTC
# Line 4210  def jump(arg,domain=None): Line 4210  def jump(arg,domain=None):
4210      """      """
4211      if domain==None: domain=arg.getDomain()      if domain==None: domain=arg.getDomain()
4212      return interpolate(arg,escript.FunctionOnContactOne(domain))-interpolate(arg,escript.FunctionOnContactZero(domain))      return interpolate(arg,escript.FunctionOnContactOne(domain))-interpolate(arg,escript.FunctionOnContactZero(domain))
4213    
4214    def L2(arg):
4215        """
4216        returns the L2 norm of arg at where
4217        
4218        @param arg: function which L2 to be calculated.
4219        @type arg: L{escript.Data} or L{Symbol}
4220        @return: L2 norm of arg.
4221        @rtype:  L{float} or L{Symbol}
4222        @note: L2(arg) is equivalent to sqrt(integrate(inner(arg,arg)))
4223        """
4224        return sqrt(integrate(inner(arg,arg)))
4225  #=============================  #=============================
4226  #  #
4227  # wrapper for various functions: if the argument has attribute the function name  # wrapper for various functions: if the argument has attribute the function name

Legend:
Removed from v.442  
changed lines
  Added in v.443

  ViewVC Help
Powered by ViewVC 1.1.26