Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

plot a phase portrait

asked 3 years ago

green_l gravatar image

updated 3 years ago

slelievre gravatar image

How can we plot the phase portait?

I got a system of two differential equations:

du/dt=u(1u0.2v)

dv/dt=v(1v0.5u)

For a vector field:

var('u v')
plot_vector_field([u*(1-u-0.2*v),v*(1-v-0.5*u)],[u,0,2],[v,0,2])
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

eric_g gravatar image

updated 3 years ago

Use streamline_plot:

streamline_plot([u*(1-u-0.2*v),v*(1-v-0.5*u)], [u,0,2], [v,0,2])
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 3 years ago

Seen: 368 times

Last updated: Nov 13 '21