integration equvilants for diff() and dsolve()?
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
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        / /
0 Commenti
Risposte (1)
  Dinesh Yadav
    
 il 23 Gen 2020
        1 Commento
  Walter Roberson
      
      
 il 23 Gen 2020
				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.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!