Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10957 > unrolled thread

Differential Equation: Not getting result

Started byRahul Chakraborty <rahul.6sept@gmail.com>
First post2012-07-17 05:33 +0000
Last post2012-07-18 05:41 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Differential Equation: Not getting result Rahul Chakraborty <rahul.6sept@gmail.com> - 2012-07-17 05:33 +0000
    Re: Differential Equation: Not getting result "Nasser M. Abbasi" <nma@12000.org> - 2012-07-18 05:41 +0000

#10957 — Differential Equation: Not getting result

FromRahul Chakraborty <rahul.6sept@gmail.com>
Date2012-07-17 05:33 +0000
SubjectDifferential Equation: Not getting result
Message-ID<ju2tfb$s65$1@smc.vnet.net>
Dear all,

 For the following code i'm not getting result. kindly tell me where i'm making mistake.

Clear[x];
r=1;
K=1;
eqn= (x^')[t]-r  x[t]  (1-x[t]/K)==0//Simplify;
sol=NDSolve[{eqn,x[0]==1/2,x'[0]==0},x[t],{t,0,50}][[1]]
ParametricPlot[Evaluate[{x[t]/.sol,D[x[t]/.sol,t]}],{t,0,50},Frame->True,AxesLabel->{"x",Overscript[x,"."]},AspectRatio->1]
ParametricPlot[Evaluate[{t,x[t]/.sol}],{t,0,50},Frame->True,AxesLabel->{"t","x"},AspectRatio->1]


Regards,
rc

[toc] | [next] | [standalone]


#10973

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-07-18 05:41 +0000
Message-ID<ju5ia7$3s7$1@smc.vnet.net>
In reply to#10957
On 7/17/2012 12:33 AM, Rahul Chakraborty wrote:
> Dear all,
>
>   For the following code i'm not getting result. kindly tell me where i'm making mistake.
>
> Clear[x];
> r=1;
> K=1;
> eqn= (x^')[t]-r  x[t]  (1-x[t]/K)==0//Simplify;
> sol=NDSolve[{eqn,x[0]==1/2,x'[0]==0},x[t],{t,0,50}][[1]]
> ParametricPlot[Evaluate[{x[t]/.sol,D[x[t]/.sol,t]}],{t,0,50},Frame->True,
>AxesLabel->{"x",Overscript[x,"."]},AspectRatio->1]
> ParametricPlot[Evaluate[{t,x[t]/.sol}],{t,0,50},Frame->True,AxesLabel->{"t","x"},AspectRatio->1]
>
>
> Regards,
> rc
>


Your code is not valid Mathematica code.
Please post code that has valid syntax first. You can check
that the syntax is not valid as Mathematica shows a red line
to the right side of the cell.

ps. I do not know what (x^')[t] is supposed to be, first time I see such
code)

--Nasser

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web