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


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

Re: How to rectify the error for NDSolve ?

Started byRahul Chakraborty <rahul.6sept@gmail.com>
First post2012-07-05 10:12 +0000
Last post2012-07-05 10:12 +0000
Articles 1 — 1 participant

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


Contents

  Re: How to rectify the error for NDSolve ? Rahul Chakraborty <rahul.6sept@gmail.com> - 2012-07-05 10:12 +0000

#10795 — Re: How to rectify the error for NDSolve ?

FromRahul Chakraborty <rahul.6sept@gmail.com>
Date2012-07-05 10:12 +0000
SubjectRe: How to rectify the error for NDSolve ?
Message-ID<jt3pb2$11a$1@smc.vnet.net>
Following is the code as modified:

 Clear[x,Q,\[CapitalGamma],\[Phi]];
Q=100;
\[CapitalGamma]=50;
Subscript[\[Omega], 0]=10;
Subscript[V, p]=1/2;
Subscript[C, 0]=406 * 10^-6;
\[Phi]=90;
\[Gamma]=1/Q;
Subscript[V, 1][t]=Sqrt[2] Subscript[V, p]Sin[2Subscript[\[Omega], 0]t];
eqn= x''[t]+Subscript[\[Gamma]\[Omega], 0]x'[t]+(Subscript[\[Omega], 0]^2)[1+Subscript[c, 0]Subscript[V, 1][t]]x[t]-\[CapitalGamma] Sin[Subscript[\[Omega], 0]t+\[Phi]]==0//Simplify;
sol=NDSolve[{eqn,x[0]==1/2,x'[0]==0},x[t],{t,0,25}][[1]]
ParametricPlot[Evaluate[{x[t]/.sol,D[x[t]/.sol,t]}],{t,0,25},Frame->True,AxesLabel->{"t",Overscript[\[Theta],"."]},AspectRatio->1]


 ERROR showing as follows:

 NDSolve::ndnum: Encountered non-numerical value for a derivative at t == 0.`. >>

 Plz advice me how to correct this error.
  
Regards,

 rc

[toc] | [standalone]


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


csiph-web