Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
CellMLToNektar.pycml.mathml_operator Class Reference
Inheritance diagram for CellMLToNektar.pycml.mathml_operator:
Inheritance graph
[legend]
Collaboration diagram for CellMLToNektar.pycml.mathml_operator:
Collaboration graph
[legend]

Public Member Functions

def wrong_number_of_operands
 
- Public Member Functions inherited from CellMLToNektar.pycml.mathml
def __init__
 
def __repr__
 
def __deepcopy__
 
def clone_self
 
def get_original_of_clone
 
def get_component
 
def model
 
def eval
 
- Public Member Functions inherited from CellMLToNektar.pycml.element_base
def __init__
 
def __delattr__
 
def __setattr__
 
def rootNode
 
def cmeta_id
 
def xml_remove_child_at
 
def xml_doc
 
def xml_properties
 

Additional Inherited Members

- Static Public Member Functions inherited from CellMLToNektar.pycml.mathml
def clone
 
- Public Attributes inherited from CellMLToNektar.pycml.element_base
 xml_attributes
 
- Properties inherited from CellMLToNektar.pycml.mathml
 component = property(get_component)
 

Detailed Description

Base class for MathML operator elements.

Definition at line 5403 of file pycml.py.

Member Function Documentation

def CellMLToNektar.pycml.mathml_operator.wrong_number_of_operands (   self,
  found,
  wanted 
)
Raise an EvaluationError due to wrong operand count.

found is the number of operands found; wanted is a list of suitable
numbers of operands.

Definition at line 5405 of file pycml.py.

Referenced by CellMLToNektar.pycml.mathml_eq._get_binding_time(), CellMLToNektar.pycml.mathml_divide._reduce(), CellMLToNektar.pycml.mathml_eq._reduce(), CellMLToNektar.pycml.mathml_minus.evaluate(), CellMLToNektar.pycml.mathml_divide.evaluate(), CellMLToNektar.pycml.mathml_exp.evaluate(), CellMLToNektar.pycml.mathml_ln.evaluate(), CellMLToNektar.pycml.mathml_log.evaluate(), CellMLToNektar.pycml.mathml_abs.evaluate(), CellMLToNektar.pycml.mathml_power.evaluate(), CellMLToNektar.pycml.mathml_root.evaluate(), CellMLToNektar.pycml.mathml_leq.evaluate(), CellMLToNektar.pycml.mathml_lt.evaluate(), CellMLToNektar.pycml.mathml_geq.evaluate(), CellMLToNektar.pycml.mathml_gt.evaluate(), CellMLToNektar.pycml.mathml_neq.evaluate(), CellMLToNektar.pycml.mathml_eq.evaluate(), CellMLToNektar.pycml.mathml_rem.evaluate(), CellMLToNektar.pycml.mathml_sin.evaluate(), CellMLToNektar.pycml.mathml_cos.evaluate(), CellMLToNektar.pycml.mathml_tan.evaluate(), CellMLToNektar.pycml.mathml_arcsin.evaluate(), CellMLToNektar.pycml.mathml_arccos.evaluate(), and CellMLToNektar.pycml.mathml_arctan.evaluate().

5406  def wrong_number_of_operands(self, found, wanted):
5407  """Raise an EvaluationError due to wrong operand count.
5408 
5409  found is the number of operands found; wanted is a list of suitable
5410  numbers of operands.
5411  """
5412  raise EvaluationError(u''.join([
5413  "Wrong number of operands for <", self.localName, "> ",
5414  "(found ", str(found), "; wanted", ' or '.join(map(str, wanted)), ")"]))
5415