SlideShare a Scribd company logo
1 of 4
Download to read offline
Test file for mfpic4ode package
                                 Robert Maˇ´
                                          rık
                                 April 15, 2009


     See the source file demo.tex for comments in the TEX code.


1      Logistic equation
Here we draw a simple picture which describes stability of stationary points of
teh equation and then draw phase portrait of the equation.


                                             x
                                x =r· 1−       x                            (1)
                                             K
     Stability and sign of the right–hand side.
      f (x)



                                                        x
                                       K
     Phase portrait
     x




 K




                                                                    t




                                         1
2    Logistic equation with harvesting
        Similar to the previous picture, but both pictures are drawn together to see the
        relations between them.


                                                   x
                                    x =r· 1−         x−p                             (2)
                                                   K
    x                                                                           x



K                                                                           K




                                                                                     f (x)
                                                                       t


        3    Three numerical methods for ODEs
        Here we draw solution of ODE using all three available numerical methods. We
        use big step to see the difference between Euler, Runge–Kutta and fourth order
        Runge–Kutta method.



                                                   xn+1 = xn + h
                                y = x + y3
                                                   yn+1 = yn + kh
                              y(0) = 1
                                                      h = 0.2




                                               2
2.4                                   Exact solution

    2.2
                                                            RK4
                                                            RK
      2

    1.8

    1.6                                                     Euler


    1.4

    1.2                           k1 for second step
                     k2
      1 k
         1

          0                     0.2                        0.4
    0.8


4    Autonomous systems
We draw the phase portrait of autonomous system, nulclines, invariant set be-
tween nulclines, trajectories. We draw arrows in regular grid and add few more
arrows on nulclines and outside the regular grid.




                                      3
y         Competing species

    a
    c




    α
    β




                             α    a
                                                 x
                             γ    b




    Pedator prey system with HollingII response function
y




                                             x




                             4

More Related Content

What's hot

237654933 mathematics-t-form-6
237654933 mathematics-t-form-6237654933 mathematics-t-form-6
237654933 mathematics-t-form-6homeworkping3
 
11 x1 t12 07 primitive function
11 x1 t12 07 primitive function11 x1 t12 07 primitive function
11 x1 t12 07 primitive functionNigel Simmons
 
11X1 T09 07 primitive functions
11X1 T09 07 primitive functions11X1 T09 07 primitive functions
11X1 T09 07 primitive functionsNigel Simmons
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Zeta function for perturbed surfaces of revolution
Zeta function for perturbed surfaces of revolutionZeta function for perturbed surfaces of revolution
Zeta function for perturbed surfaces of revolutionPedro Morales
 
LYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTIONLYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTIONrohit kumar
 
Numerical Technique, Initial Conditions, Eos,
Numerical Technique, Initial Conditions, Eos,Numerical Technique, Initial Conditions, Eos,
Numerical Technique, Initial Conditions, Eos,Udo Ornik
 
Dsp U Lec06 The Z Transform And Its Application
Dsp U   Lec06 The Z Transform And Its ApplicationDsp U   Lec06 The Z Transform And Its Application
Dsp U Lec06 The Z Transform And Its Applicationtaha25
 

What's hot (17)

Lec10
Lec10Lec10
Lec10
 
237654933 mathematics-t-form-6
237654933 mathematics-t-form-6237654933 mathematics-t-form-6
237654933 mathematics-t-form-6
 
Rpra1
Rpra1Rpra1
Rpra1
 
residue
residueresidue
residue
 
Lyapunov stability
Lyapunov stability Lyapunov stability
Lyapunov stability
 
11 x1 t12 07 primitive function
11 x1 t12 07 primitive function11 x1 t12 07 primitive function
11 x1 t12 07 primitive function
 
Chapter 2 (maths 3)
Chapter 2 (maths 3)Chapter 2 (maths 3)
Chapter 2 (maths 3)
 
11X1 T09 07 primitive functions
11X1 T09 07 primitive functions11X1 T09 07 primitive functions
11X1 T09 07 primitive functions
 
Mathematics basics
Mathematics basicsMathematics basics
Mathematics basics
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
 
Fourier series 1
Fourier series 1Fourier series 1
Fourier series 1
 
Zeta function for perturbed surfaces of revolution
Zeta function for perturbed surfaces of revolutionZeta function for perturbed surfaces of revolution
Zeta function for perturbed surfaces of revolution
 
LYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTIONLYAPUNOV STABILITY PROBLEM SOLUTION
LYAPUNOV STABILITY PROBLEM SOLUTION
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Numerical Technique, Initial Conditions, Eos,
Numerical Technique, Initial Conditions, Eos,Numerical Technique, Initial Conditions, Eos,
Numerical Technique, Initial Conditions, Eos,
 
Dsp U Lec06 The Z Transform And Its Application
Dsp U   Lec06 The Z Transform And Its ApplicationDsp U   Lec06 The Z Transform And Its Application
Dsp U Lec06 The Z Transform And Its Application
 

Viewers also liked

Presentation sap by orooj
Presentation sap by oroojPresentation sap by orooj
Presentation sap by oroojOrooj Ghayoor
 
Preparing Testimony about Cellebrite UFED In a Daubert or Frye Hearing
Preparing Testimony about Cellebrite UFED In a Daubert or Frye HearingPreparing Testimony about Cellebrite UFED In a Daubert or Frye Hearing
Preparing Testimony about Cellebrite UFED In a Daubert or Frye HearingCellebrite
 

Viewers also liked (6)

Ipnguide
IpnguideIpnguide
Ipnguide
 
Presentation sap by orooj
Presentation sap by oroojPresentation sap by orooj
Presentation sap by orooj
 
Demo
DemoDemo
Demo
 
Lynas
LynasLynas
Lynas
 
Demo
DemoDemo
Demo
 
Preparing Testimony about Cellebrite UFED In a Daubert or Frye Hearing
Preparing Testimony about Cellebrite UFED In a Daubert or Frye HearingPreparing Testimony about Cellebrite UFED In a Daubert or Frye Hearing
Preparing Testimony about Cellebrite UFED In a Daubert or Frye Hearing
 

Similar to Demo

Chapter 1 (functions).
Chapter 1 (functions).Chapter 1 (functions).
Chapter 1 (functions).Eko Wijayanto
 
02 2d systems matrix
02 2d systems matrix02 2d systems matrix
02 2d systems matrixRumah Belajar
 
Lect4 ellipse
Lect4 ellipseLect4 ellipse
Lect4 ellipseBCET
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
Algorithm chapter 8
Algorithm chapter 8Algorithm chapter 8
Algorithm chapter 8chidabdu
 
Existence of Hopf-Bifurcations on the Nonlinear FKN Model
Existence of Hopf-Bifurcations on the Nonlinear FKN ModelExistence of Hopf-Bifurcations on the Nonlinear FKN Model
Existence of Hopf-Bifurcations on the Nonlinear FKN ModelIJMER
 
Alternating direction
Alternating directionAlternating direction
Alternating directionDerek Pang
 
A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...
A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...
A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...IJMER
 
Systems Of Differential Equations
Systems Of Differential EquationsSystems Of Differential Equations
Systems Of Differential EquationsJDagenais
 
Ode powerpoint presentation1
Ode powerpoint presentation1Ode powerpoint presentation1
Ode powerpoint presentation1Pokkarn Narkhede
 
Eigenvalue eigenvector slides
Eigenvalue eigenvector slidesEigenvalue eigenvector slides
Eigenvalue eigenvector slidesAmanSaeed11
 
A new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiffA new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiffAlexander Decker
 
Varian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution bookVarian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution bookJosé Antonio PAYANO YALE
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...ijceronline
 
Polynomial functions modelllings
Polynomial functions modelllingsPolynomial functions modelllings
Polynomial functions modelllingsTarun Gehlot
 

Similar to Demo (20)

Chapter 1 (functions).
Chapter 1 (functions).Chapter 1 (functions).
Chapter 1 (functions).
 
Rdnd2008
Rdnd2008Rdnd2008
Rdnd2008
 
Adc
AdcAdc
Adc
 
02 2d systems matrix
02 2d systems matrix02 2d systems matrix
02 2d systems matrix
 
Lect4 ellipse
Lect4 ellipseLect4 ellipse
Lect4 ellipse
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Algorithm chapter 8
Algorithm chapter 8Algorithm chapter 8
Algorithm chapter 8
 
Existence of Hopf-Bifurcations on the Nonlinear FKN Model
Existence of Hopf-Bifurcations on the Nonlinear FKN ModelExistence of Hopf-Bifurcations on the Nonlinear FKN Model
Existence of Hopf-Bifurcations on the Nonlinear FKN Model
 
Alternating direction
Alternating directionAlternating direction
Alternating direction
 
A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...
A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...
A Study of Periodic Points and Their Stability on a One-Dimensional Chaotic S...
 
Systems Of Differential Equations
Systems Of Differential EquationsSystems Of Differential Equations
Systems Of Differential Equations
 
Ode powerpoint presentation1
Ode powerpoint presentation1Ode powerpoint presentation1
Ode powerpoint presentation1
 
Eigenvalue eigenvector slides
Eigenvalue eigenvector slidesEigenvalue eigenvector slides
Eigenvalue eigenvector slides
 
A new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiffA new class of a stable implicit schemes for treatment of stiff
A new class of a stable implicit schemes for treatment of stiff
 
Funcion gamma
Funcion gammaFuncion gamma
Funcion gamma
 
Varian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution bookVarian, microeconomic analysis, solution book
Varian, microeconomic analysis, solution book
 
YSC 2013
YSC 2013YSC 2013
YSC 2013
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
Polynomial functions modelllings
Polynomial functions modelllingsPolynomial functions modelllings
Polynomial functions modelllings
 

Demo

  • 1. Test file for mfpic4ode package Robert Maˇ´ rık April 15, 2009 See the source file demo.tex for comments in the TEX code. 1 Logistic equation Here we draw a simple picture which describes stability of stationary points of teh equation and then draw phase portrait of the equation. x x =r· 1− x (1) K Stability and sign of the right–hand side. f (x) x K Phase portrait x K t 1
  • 2. 2 Logistic equation with harvesting Similar to the previous picture, but both pictures are drawn together to see the relations between them. x x =r· 1− x−p (2) K x x K K f (x) t 3 Three numerical methods for ODEs Here we draw solution of ODE using all three available numerical methods. We use big step to see the difference between Euler, Runge–Kutta and fourth order Runge–Kutta method. xn+1 = xn + h y = x + y3 yn+1 = yn + kh y(0) = 1 h = 0.2 2
  • 3. 2.4 Exact solution 2.2 RK4 RK 2 1.8 1.6 Euler 1.4 1.2 k1 for second step k2 1 k 1 0 0.2 0.4 0.8 4 Autonomous systems We draw the phase portrait of autonomous system, nulclines, invariant set be- tween nulclines, trajectories. We draw arrows in regular grid and add few more arrows on nulclines and outside the regular grid. 3
  • 4. y Competing species a c α β α a x γ b Pedator prey system with HollingII response function y x 4