How to solve two differential equations

조회 수: 3 (최근 30일)
Mohammad Sh
Mohammad Sh 2021년 12월 27일
편집: Torsten 2021년 12월 27일
I wrote this to solve two differential equations but does'nt work
clc
clear
syms B(t) S(t)
K=0.000001;
k=0.3;
DB=diff(B);
DS=diff(S);
eq1=DB==k*B*S/(K+DS);
eq2=DS==-0.75*k*B*S/(K+S);
cond=[S(0)==5,B(0)==0.05];
[B,S]=dsolve([eq1,eq2],cond)
  댓글 수: 1
Torsten
Torsten 2021년 12월 27일
편집: Torsten 2021년 12월 27일
I doubt there is an analytical solution for your system because of the S and DS-terms in the denominators.
Use one of the numerical integrators instead, e.g. ODE45, ODE15S.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by