A node in the expression tree representing an arbitrary function.
function (method) – A function can have 0 or many inputs. If no inputs are given, self.evaluate() simply returns func(). Otherwise, self.evaluate(t, y, u) returns func(child0.evaluate(t, y, u), child1.evaluate(t, y, u), etc).
children (pybamm.Symbol
) – The children nodes to apply the function to
derivative (str, optional) – Which derivative to use when differentiating (“autograd” or “derivative”). Default is “autograd”.
differentiated_function (method, optional) – The function which was differentiated to obtain this one. Default is None.
**Extends (** pybamm.Symbol
) –
See pybamm.Symbol.diff()
.
Obtains the unique domain of the children. If the children have different domains then raise an error
Parent class for the specific functions, which implement their own diff operators directly.
function (method) – Function to be applied to child
child (pybamm.Symbol
) – The child to apply the function to
Returns max function of child. Not to be confused with pybamm.maximum()
, which
returns the larger of two objects.
Returns min function of child. Not to be confused with pybamm.minimum()
, which
returns the smaller of two objects.