salt_and_brine_tanks#

Introduces the problem of salt and brine tanks.

Salt and brine tanks models the amount of salt and brine in a tank with a volume of \(V\) and a flow rate of \(r\).

deriv(_t: float, y: list[float], arguments: dict[str, float]) tuple[float, float]#

Defines the derivative of the function at the point _.

Parameters:
  • y – Current y vector.

  • arguments – Dictionary of arguments configuring the problem.

Returns:

Tuple[float, float]