Quantcast
Viewing all articles
Browse latest Browse all 127

How do I plot a predator-prey model in Maple?

Suppose that an organism reacts to a stimulusonly when the stim ulus exceeds a certain threshold. Assume that
the stimulus is a function of time t and that it is given by s(t) = sin(πt), t ≥ 0.The organism reacts to the stimulus and shows a certain reactio nwhen s(t) ≥ 1/2.

Define a function g(t) such  that g(t) = 0 when the organism shows no reaction at time t and g(t) = 1 when theorganism shows the reaction.

I already got the function g(t) manually.

g(t)= {  1 for 1/6 + 2k<=x<= 5/6 + 2k, k=0,1,2,...

           0  otherwise

  How do I plot s(t) and g(t) in the same coordinate system?
 


Viewing all articles
Browse latest Browse all 127

Trending Articles