关于mathematica画图的基本问题!
式子
dn/dt=r n(1-n/k)-(m (n/a)^2)/(1+(n/a)^2)
a)
On one graph,plot the new predation term (2nd term on right hand side of equation (2)) between n = 0 and n = 100 with m = 5 and a = 1,10,20,50.Remember to label your axes and include a descriptive legend,and make sure the whole axis is shown.
b)
Solve equation (2) numerically between t = 0 and t = 10,using the initial condition n = 1 at t = 0 and the parameter values r = 0.1,k = 100,m = 5 and a = 20.Plot your solution on axes between n = 0 and n = 10,and with appropriate labels.
人气:421 ℃ 时间:2020-06-21 05:57:16
解答
第一问:Plot[(m (n/a)^2)/(1 + (n/a)^2) /.{m -> 5,a -> {1,10,20,50}} // Evaluate,{n,0,100},AxesLabel -> {"横坐标","纵坐标"},PlotLegends -> {"a=1","a=10","a=20","a=50"},PlotRange->All]第二问:s = NDSolv...
推荐
猜你喜欢
- 长方形的长和宽的比为3:2,说明长方形的长为3dm,宽为2dm._ (判断对错)
- 我国也有许多娇艳美丽、值得夸耀的花.请你仿照课文第3或4节,介绍一种“中国的花”.
- I haven't got any sisters.
- 已知8支球队有3支弱队,以抽签方式将8支球队分为AB组,每组4支,求
- 靓丽商店同时卖出两件标价均为240元的商品,其中一件赚了20%,另一件亏了20%,那么这个商店是赚还是亏?赚(亏)了多少元
- 如图,在直角坐标系中,射线Ox绕原点O逆时针旋转330°到OA的位置,若OP=2,则点P的坐标为
- 那个字打不出来`言字旁`右边一个甚``是读SHENG?
- 2sin^2 x/2等于1-cosx 还是cosx-1