Math expressions

From BioNetWiki

Jump to: navigation, search

Parameters may be defined by mathematical expressions in terms of numbers and other parameters. When the value of a parameter used in such a definition changes, the value of the expression is also updated. Here's an example involving unit conversion:

begin parameters
  V 10e-12  # Volume of cell in liters
  Na 6.02e23 # Avogadro's number
  kp1 5.5e6 # Second order rate constant in M^-1 s^-1
  kp1_mol kp1/(Na*V)  # Second order rate constan in (molec/cell)^-1 s^-1
end parameters

If V or kp1 is changed using setParameter, kp1_mol will be changed automatically.

Personal tools