Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta
    • Thread Starter
    Offline

    0
    ReputationRep:
     \frac {dx}{dt} = k_1x-k_2xy
     \frac {dy}{dt} = k_3xy-k_4x

    k_1 = 0.02
    k_2 = \frac {0.00004}{day \times no. of foxes}
    k_3 = \frac {0.00004}{day \times no. of rabbits}
    k_1 = 0.04
    x_0 = 500 rabbits
    y_0 = 200 foxes

    Plot the concentration of rabbits and foxes as a function of time for a period of 500 days, and 800 days.

    How do I express k2 and k3 though?

    I have polymath and matlab so I don't need to separate them. It will do everything for me. I just don't know what to write for k2 and k3
    Offline

    11
    ReputationRep:
    LOL was doing similar thing with MATLAB - predator-prey model am I right? Well I used ode45 and defined the diff equations as a separate function. The syntax can be found on the product help bit. Make sure you store the intial conditions as a matrix. PM if you perhaps want a similar .m file (for epidemic modelling though). Also what do you mean by concentration?
 
 
 
Reply
Submit reply
Turn on thread page Beta
Updated: September 28, 2010
Poll
Do I go to The Streets tomorrow night?
Useful resources

Make your revision easier

Maths

Maths Forum posting guidelines

Not sure where to post? Read the updated guidelines here

Equations

How to use LaTex

Writing equations the easy way

Student revising

Study habits of A* students

Top tips from students who have already aced their exams

Study Planner

Create your own Study Planner

Never miss a deadline again

Polling station sign

Thinking about a maths degree?

Chat with other maths applicants

Can you help? Study help unanswered threads

Groups associated with this forum:

View associated groups

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.