如何画分岔图

微分方程组 ODEs

Toggle switch 模型:

\begin{aligned}

\newcommand{\dd}{\mathrm{d}}

\frac{\dd X}{\dd t} & = \frac{a_1}{1 + Y^n} - d_1 X + b_1 S,\\

\frac{\dd Y}{\dd t} & = \frac{a_2}{1 + X^n} - d_2 Y + b_2.

\end{aligned}

代码

#!/usr/bin/env python

impor......