# integration equvilants for diff() and dsolve()?

조회 수: 2 (최근 30일)
jg 2020년 1월 20일
댓글: Walter Roberson 2020년 1월 23일
hold all;
clear all;
clc;
close all;
hold on
syms A(z) N beta B0 gamma
cond = A(0) == B0;
eqns = diff(A,z) == beta*(A/N)*(N-A)-gamma*A;
S(z) = dsolve(eqns,cond);
pretty(S);
i used this to diffrentiate and get and equation, is there away to do the same thing with integration?
ie the integral of beta*(A/N)*(N-A)-gamma*A
that could return somthing in teh same way that the pretty() function does?
N (beta - gamma)
----------------------------------------------------------------------
/ / / N beta - N gamma \ \ \
| | log| beta - ---------------- | | |
| | z \ B0 / | |
beta - exp| -N (beta - gamma) | - - ------------------------------ | |
\ \ N N beta - N gamma / /

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

### 답변 (1개)

Hi jg,
As diff is used for differentiataion, similarly the command int is used for integration. As for dsolve it solves for a system of ODE's by integrating. So I dont understand what do you mean by dsolve's equivalent in integration.
Hope it helps.
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Walter Roberson 2020년 1월 23일
All that I have been able to think of is that instead of the problem structure
eqns = diff(A,z) == beta*(A/N)*(N-A)-gamma*A;
that they perhaps want to set up
eqns = int(A,z) == beta*(A/N)*(N-A)-gamma*A;
and solve that.

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

### 카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

### Community Treasure Hunt

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

Start Hunting!

Translated by