Numerical Methods, Mathematics, Engineering, Python, Chemical Engineering.
ln. Equations for Example 2. (Image by the author). Once again we formulate the equations: def fun_2(x, y, dy, d2y, k1, k2): return np.array([d2y[0] + k1 * y[1] + 1, d2y[1] + k2 * np.log(1 + y[0])]) def bc_2(x, y, dy, d2y, k1, k2): return np.array([y[0], y[1] - 1]) I’m using k1=1 and k2=-1 here to