sbmlmath.cfunction

Handling of <csymbol> functions

Module Attributes

delay(*args)

The SBML delay() function.

rate_of

The SBML rateOf() function.

Classes

CFunction(*args[, definition_url, encoding])

Represents <csymbol> functions.

Delay(*args, **kwargs)

Produces a SBML delay() function.

RateOf(*args, **kwargs)

Produces a SBML rateOf() function.

class sbmlmath.cfunction.CFunction(*args, definition_url=None, encoding='text', **kwargs)[source]

Bases: UndefinedFunction

Represents <csymbol> functions.

Examples: rateOf(), delay(), distributions from the distrib package.

See also https://www.w3.org/TR/MathML2/chapter4.html#contm.deffun.

class sbmlmath.cfunction.Delay(*args, **kwargs)[source]

Bases: CFunction

Produces a SBML delay() function.

Usually, it’s preferable to use the delay() function. This class can be used if a delay function with a different name is needed.

Examples

>>> from sympy.abc import a
>>> my_delay = Delay("my_delay")
>>> my_delay(a)
my_delay(a)
>>> delay(a) == my_delay(a)
True
class sbmlmath.cfunction.RateOf(*args, **kwargs)[source]

Bases: CFunction

Produces a SBML rateOf() function.

Usually, it’s preferable to use the rate_of() function. This class can be used if a rateOf function with a different name is needed.

Examples

>>> from sympy.abc import a
>>> my_rate_of = RateOf("my_rate_of")
>>> my_rate_of(a)
my_rate_of(a)
>>> rate_of(a) == my_rate_of(a)
True
>>> rate_of(1)
0
class sbmlmath.cfunction.delay(*args)

Bases: AppliedUndef

The SBML delay() function.

sbmlmath.cfunction.rate_of

The SBML rateOf() function.